/kernel/liteos_m/testsuites/unittest/posix/src/fs/pressure/ |
H A D | posix_fs_pressure_test.c | 162 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_FILE_PATH, j); 164 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 180 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_FILE_PATH, i); 182 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 190 res = sprintf_s(tmpDirName, TEST_BUF_SIZE, "%s%02d", TEMP_DIR_PATH, k); 192 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 202 res = sprintf_s(tmpDirName, TEST_BUF_SIZE, "%s%02d", TEMP_DIR_PATH, i); 204 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 212 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_FILE_PATH, i); 214 printf("[%s:%d] sprintf_s faile [all...] |
/kernel/liteos_a/testsuites/unittest/process/plimits/ |
H A D | process_plimits_test.cpp | 754 if (sprintf_s(dirpath, TEST_BUFFER_SIZE, "/proc/plimits/%s", groupName) < 0) { in CreatePlimitGroup() 757 if (sprintf_s(procspath, TEST_BUFFER_SIZE, "%s/plimits.procs", dirpath) < 0) { in CreatePlimitGroup() 760 if (sprintf_s(periodpath, TEST_BUFFER_SIZE, "%s/sched.period", dirpath) < 0) { in CreatePlimitGroup() 763 if (sprintf_s(quotapath, TEST_BUFFER_SIZE, "%s/sched.quota", dirpath) < 0) { in CreatePlimitGroup() 773 if (sprintf_s(periodValue, TEST_BUFFER_SIZE, "%llu", periodUs) < 0) { in CreatePlimitGroup() 776 if (sprintf_s(quotaValue, TEST_BUFFER_SIZE, "%llu", quotaUs) < 0) { in CreatePlimitGroup() 789 if (sprintf_s(childPidFiles, TEST_BUFFER_SIZE, "%s", procspath) < 0) { in CreatePlimitGroup() 802 if (sprintf_s(dirpath, TEST_BUFFER_SIZE, "/proc/plimits/%s", groupName) < 0) { in CreatePlimitGroupWithoutLimit() 805 if (sprintf_s(procspath, TEST_BUFFER_SIZE, "%s/plimits.procs", dirpath) < 0) { in CreatePlimitGroupWithoutLimit() 813 if (sprintf_s(childPidFile in CreatePlimitGroupWithoutLimit() [all...] |
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_time_container_002.cpp | 43 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in childFunc() 47 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", getpid()); in childFunc() 77 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in WriteProcTime() 81 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
|
H A D | It_mnt_container_008.cpp | 66 ret = sprintf_s(old_mnt_link, PATH_LENGTH, "%s", linkBuffer.c_str()); in ItMntContainer008() 68 ret = sprintf_s(targetpath, PATH_LENGTH, "/proc/%d/container/mnt", childPid); in ItMntContainer008() 81 ret = sprintf_s(new_mnt_link, PATH_LENGTH, "%s", linkBuffer.c_str()); in ItMntContainer008()
|
H A D | It_time_container_007.cpp | 42 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in WriteProcTime() 46 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
|
H A D | It_time_container_008.cpp | 42 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %lld", SEC, NSEC); in WriteProcTime() 46 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
|
H A D | It_ipc_container_008.cpp | 69 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItIpcContainer008() 91 ret = sprintf_s(buf, configLen, "%d", value); in ItIpcContainer008()
|
H A D | It_ipc_container_007.cpp | 65 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItIpcContainer007() 86 ret = sprintf_s(buf, configLen, "%d", value); in ItIpcContainer007()
|
H A D | It_mnt_container_010.cpp | 69 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItMntContainer010() 91 ret = sprintf_s(buf, configLen, "%d", value); in ItMntContainer010()
|
H A D | It_mnt_container_009.cpp | 65 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItMntContainer009() 86 ret = sprintf_s(buf, configLen, "%d", value); in ItMntContainer009()
|
H A D | It_net_container_012.cpp | 69 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItNetContainer012() 91 ret = sprintf_s(buf, configLen, "%d", value); in ItNetContainer012()
|
H A D | It_net_container_011.cpp | 65 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItNetContainer011() 86 ret = sprintf_s(buf, configLen, "%d", value); in ItNetContainer011()
|
H A D | It_pid_container_033.cpp | 71 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItPidContainer033() 93 ret = sprintf_s(buf, configLen, "%d", value); in ItPidContainer033()
|
H A D | It_pid_container_032.cpp | 67 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItPidContainer032() 88 ret = sprintf_s(buf, configLen, "%d", value); in ItPidContainer032()
|
H A D | It_time_container_004.cpp | 60 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in WriteProcTime() 64 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
|
H A D | It_time_container_005.cpp | 60 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in WriteProcTime() 64 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
|
/kernel/liteos_m/testsuites/unittest/posix/src/mqueue/ |
H A D | mqueue_func_test.c | 148 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenEEXIST_%d", GetRandom(10000)); 178 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenEINVAL_%d", GetRandom(10000)); 273 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenENOENT_%d", GetRandom(10000)); 298 sprintf_s(qName[i], MQ_NAME_LEN, "testMqOpenENFILE_%d", i); 337 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenENOSPC_%d", GetRandom(10000)); 375 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEAGAIN_%d", GetRandom(10000)); 408 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEAGAIN_%d", GetRandom(10000)); 465 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEINVAL_%d", GetRandom(10000)); 497 sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000));
|
/kernel/liteos_a/kernel/extended/container/ |
H A D | los_uts_container.c | 40 INT32 ret = sprintf_s(name->sysname, sizeof(name->sysname), "%s", KERNEL_NAME); in InitUtsContainer() 44 ret = sprintf_s(name->nodename, sizeof(name->nodename), "%s", KERNEL_NODE_NAME); in InitUtsContainer() 48 ret = sprintf_s(name->version, sizeof(name->version), "%s %u.%u.%u.%u %s %s", in InitUtsContainer() 54 ret = sprintf_s(name->machine, sizeof(name->machine), "%s", cpuInfo); in InitUtsContainer() 58 ret = sprintf_s(name->release, sizeof(name->release), "%u.%u.%u.%u", in InitUtsContainer()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/ |
H A D | process_test_066.cpp | 159 (void)sprintf_s(temp1, NUMMAX, "pgid = %d", attr.__pgrp); in TestSpawnAttr() 161 (void)sprintf_s(temp1, NUMMAX, "prio = %d", attr.__prio); in TestSpawnAttr() 163 (void)sprintf_s(temp1, NUMMAX, "pol = %d", attr.__pol); in TestSpawnAttr() 165 (void)sprintf_s(temp1, NUMMAX, "uid = %d", getuid()); in TestSpawnAttr()
|
H A D | process_test_067.cpp | 157 (void)sprintf_s(temp1, NUMMAX, "pgid = %d", attr.__pgrp); in TestSpawnAttr() 159 (void)sprintf_s(temp1, NUMMAX, "prio = %d", attr.__prio); in TestSpawnAttr() 161 (void)sprintf_s(temp1, NUMMAX, "pol = %d", attr.__pol); in TestSpawnAttr() 163 (void)sprintf_s(temp1, NUMMAX, "uid = %d", getuid()); in TestSpawnAttr()
|
/kernel/liteos_m/testsuites/unittest/xts/ipc/msg_queue/ |
H A D | mq_exp_test.c | 59 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 102 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 138 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 169 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 231 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 282 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEMSGSIZE_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 315 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendETIMEDOUT_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 355 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 416 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedReceiveEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 471 ret = sprintf_s(qNam [all...] |
H A D | mq_test.c | 60 ret = sprintf_s(qName, sizeof(qName), "testMqOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 104 ret = sprintf_s(qName, sizeof(qName), "testMqTimedOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 150 ret = sprintf_s(qName, sizeof(qName), "testMqAllOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 200 ret = sprintf_s(qName, sizeof(qName), "testMqAllOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 269 ret = sprintf_s(qName, sizeof(qName), "testMqTwoLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 346 ret = sprintf_s(qName, sizeof(qName), "testMqTimedTwoThreadCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 425 ret = sprintf_s(qName, sizeof(qName), "testMqAllTwoThreadCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 469 ret = sprintf_s(qName, sizeof(qName), "testMqFunction_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
|
/kernel/liteos_a/testsuites/unittest/net/resolv/smoke/ |
H A D | net_resolv_test_007.cpp | 49 (void)sprintf_s(str1, sizeof(str1), "%x:%x:%x:%x:%x:%x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoarTest() 51 (void)sprintf_s(str2, sizeof(str2), "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoarTest()
|
H A D | net_resolv_test_006.cpp | 49 (void)sprintf_s(str1, sizeof(str1), "%x:%x:%x:%x:%x:%x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoaTest() 51 (void)sprintf_s(str2, sizeof(str2), "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoaTest()
|
/kernel/liteos_m/testsuites/unittest/posix/src/fs/full/ |
H A D | posix_fs_full_test.c | 145 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_DIRE_FILE, i); 147 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 158 res = sprintf_s(fileName, TEST_BUF_SIZE, "%s%02d", "eFile", index); 160 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 173 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_DIRE_FILE, j); 175 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 213 res = sprintf_s(tmpDirName, TEST_BUF_SIZE, "%s%02d", TEMP_DIRF_DIR, i); 215 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 225 res = sprintf_s(dirName, TEST_BUF_SIZE, "%s%02d", "fDir", index); 227 printf("[%s:%d] sprintf_s faile [all...] |