/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
D | It_process_plimits_pid_002.cpp | 70 char writeBuf[3]; in ItProcessPlimitsPid002() local 78 (void)memset_s(writeBuf, sizeof(writeBuf), 0, sizeof(writeBuf)); in ItProcessPlimitsPid002() 79 ret = sprintf_s(writeBuf, sizeof(writeBuf), "%d", pidnum); in ItProcessPlimitsPid002() 81 ret = PidWrite(pidMaxPath, writeBuf); in ItProcessPlimitsPid002() 84 (void)memset_s(writeBuf, sizeof(writeBuf), 0, sizeof(writeBuf)); in ItProcessPlimitsPid002() 85 ret = sprintf_s(writeBuf, sizeof(writeBuf), "%d", getpid()); in ItProcessPlimitsPid002() 87 ret = PidWrite(procsPath, writeBuf); in ItProcessPlimitsPid002()
|
D | It_process_plimits_devices_001.cpp | 44 char writeBuf[8]; in ItProcessPlimitsDevices001() local 52 (void)memset_s(writeBuf, sizeof(writeBuf), 0, sizeof(writeBuf)); in ItProcessPlimitsDevices001() 53 ret = sprintf_s(writeBuf, sizeof(writeBuf), "%d", getpid()); in ItProcessPlimitsDevices001() 56 ret = WriteFile(procsTestPath.c_str(), writeBuf); in ItProcessPlimitsDevices001()
|
D | It_process_plimits_pid_003.cpp | 54 char writeBuf[3]; in ItProcessPlimitsPid003() local 59 (void)memset_s(writeBuf, sizeof(writeBuf), 0, sizeof(writeBuf)); in ItProcessPlimitsPid003() 60 ret = sprintf_s(writeBuf, sizeof(writeBuf), "%d", pidnum); in ItProcessPlimitsPid003() 63 ret = PidWrite(pidMaxPath, writeBuf); in ItProcessPlimitsPid003()
|
D | It_process_plimits_pid_001.cpp | 77 char writeBuf[3]; in ItProcessPlimitsPid001() local 84 (void)memset_s(writeBuf, sizeof(writeBuf), 0, sizeof(writeBuf)); in ItProcessPlimitsPid001() 85 ret = sprintf_s(writeBuf, sizeof(writeBuf), "%d", pidnum); in ItProcessPlimitsPid001() 87 ret = PidWrite(pidMaxPath, writeBuf); in ItProcessPlimitsPid001()
|
/kernel/liteos_m/testsuites/unittest/posix/src/fs/api/ |
D | posix_fs_pwrite_test.c | 42 char writeBuf[TEST_BUF_SIZE] = "fsPwrtiteTest"; variable 47 ret = pwrite(fd, writeBuf, TEST_BUF_SIZE, 0); /* 0, offset distance */ 69 char *writeBuf = NULL; variable 74 ret = pwrite(fd, writeBuf, TEST_BUF_SIZE, 0); /* 0, offset distance */ 97 char writeBuf[TEST_BUF_SIZE] = "fsPwriteTest"; variable 102 ret = pwrite(fd, writeBuf, TEST_BUF_SIZE, 0); /* 0, offset distance */
|
D | posix_fs_write_test.c | 42 const char writeBuf[TEST_BUF_SIZE] = "hello"; variable 47 ret = write(fd, writeBuf, TEST_BUF_SIZE); 100 const char writeBuf[TEST_BUF_SIZE] = "hello"; variable 105 ret = write(fd, writeBuf, TEST_BUF_SIZE);
|
D | posix_fs_ftruncate_test.c | 42 const char writeBuf[TEST_BUF_SIZE] = "hello"; variable 47 ret = write(fd, writeBuf, TEST_BUF_SIZE);
|
D | posix_fs_lseek_test.c | 174 char writeBuf[TEST_BUF_SIZE] = { TEST_SEEK_WRITE_BUF }; variable 180 ret = write(fd, writeBuf, TEST_BUF_SIZE);
|
/kernel/liteos_m/testsuites/unittest/posix/src/fs/full/ |
D | posix_fs_full_test.c | 89 char *writeBuf = (char *)malloc(READ_WRITE_BUF_SIZE * sizeof(char)); 92 (void)memset_s(writeBuf, READ_WRITE_BUF_SIZE, 'w', READ_WRITE_BUF_SIZE); 98 ret = write(fd, writeBuf, READ_WRITE_BUF_SIZE / 2); /* 2, number of writes */ 100 ret = write(fd, writeBuf, READ_WRITE_BUF_SIZE / 2); /* 2, number of writes */ 112 ICUNIT_GOTO_EQUAL(writeBuf[j], readBuf[j], POSIX_FS_IS_ERROR, EXIT); 274 char *writeBuf = (char*)malloc(WRITE_BUF_SIZE * sizeof(char)); 276 (void)memset_s(writeBuf, WRITE_BUF_SIZE, 'w', WRITE_BUF_SIZE); 281 ret = write(fd, writeBuf, WRITE_BUF_SIZE);
|
/kernel/liteos_m/testsuites/unittest/posix/src/fs/ |
D | posix_fs_func_test.c | 1523 char writeBuf[TEST_BUF_SIZE] = "write test"; variable 1529 size = write(fd, writeBuf, sizeof(writeBuf)); 1535 ICUNIT_ASSERT_EQUAL(buf.st_size, sizeof(writeBuf), -1); 1551 char writeBuf[TEST_BUF_SIZE] = "write test"; variable 1557 size = write(fd, writeBuf, sizeof(writeBuf)); 1680 char writeBuf[TEST_BUF_SIZE] = "write test"; variable 1686 size = write(fd, writeBuf, sizeof(writeBuf)); 1879 char writeBuf[TEST_BUF_SIZE]; variable 1883 writeBuf[i] = '1'; 1889 ret = write(fd, writeBuf, TEST_RW_SIZE); [all …]
|
/kernel/liteos_m/testsuites/unittest/posix/src/fs/pressure/ |
D | posix_fs_pressure_test.c | 100 char *writeBuf = (char *)malloc(READ_WRITE_BUF_SIZE * sizeof(char)); 103 (void)memset_s(writeBuf, READ_WRITE_BUF_SIZE, 'w', READ_WRITE_BUF_SIZE); 110 …ret = write(fd, writeBuf, READ_WRITE_BUF_SIZE / 2); /* 2, common data for test, no special mea… 112 …ret = write(fd, writeBuf, READ_WRITE_BUF_SIZE / 2); /* 2, common data for test, no special mea… 124 ICUNIT_GOTO_EQUAL(writeBuf[i], readBuf[i], POSIX_FS_IS_ERROR, EXIT1);
|
/kernel/uniproton/src/fs/vfs/ |
D | vfs_fs.c | 848 char *writeBuf = NULL; in OsVfsWritev() local 876 writeBuf = (char *)iov[i].iov_base; in OsVfsWritev() 881 ret = memcpy_s(curBuf, totalLen, writeBuf, bytesToWrite); in OsVfsWritev()
|
/kernel/liteos_m/components/fs/vfs/ |
D | vfs_fs.c | 1209 char *writeBuf = NULL; in writev() local 1237 writeBuf = (char *)iov[i].iov_base; in writev() 1242 ret = memcpy_s(curBuf, totalLen, writeBuf, bytesToWrite); in writev()
|