Home
last modified time | relevance | path

Searched refs:sprintf_s (Results 1 - 25 of 80) sorted by relevance

1234

/kernel/liteos_m/testsuites/unittest/posix/src/fs/pressure/
H A Dposix_fs_pressure_test.c162 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 Dprocess_plimits_test.cpp754 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 DIt_time_container_002.cpp43 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 DIt_mnt_container_008.cpp66 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 DIt_time_container_007.cpp42 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 DIt_time_container_008.cpp42 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 DIt_ipc_container_008.cpp69 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItIpcContainer008()
91 ret = sprintf_s(buf, configLen, "%d", value); in ItIpcContainer008()
H A DIt_ipc_container_007.cpp65 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItIpcContainer007()
86 ret = sprintf_s(buf, configLen, "%d", value); in ItIpcContainer007()
H A DIt_mnt_container_010.cpp69 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItMntContainer010()
91 ret = sprintf_s(buf, configLen, "%d", value); in ItMntContainer010()
H A DIt_mnt_container_009.cpp65 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItMntContainer009()
86 ret = sprintf_s(buf, configLen, "%d", value); in ItMntContainer009()
H A DIt_net_container_012.cpp69 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItNetContainer012()
91 ret = sprintf_s(buf, configLen, "%d", value); in ItNetContainer012()
H A DIt_net_container_011.cpp65 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItNetContainer011()
86 ret = sprintf_s(buf, configLen, "%d", value); in ItNetContainer011()
H A DIt_pid_container_033.cpp71 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItPidContainer033()
93 ret = sprintf_s(buf, configLen, "%d", value); in ItPidContainer033()
H A DIt_pid_container_032.cpp67 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItPidContainer032()
88 ret = sprintf_s(buf, configLen, "%d", value); in ItPidContainer032()
H A DIt_time_container_004.cpp60 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 Dmqueue_func_test.c148 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 Dlos_uts_container.c40 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 Dprocess_test_066.cpp159 (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 Dprocess_test_067.cpp157 (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()
/third_party/bounds_checking_function/src/
H A Dsprintf_s.c11 * Description: sprintf_s function
19 * The sprintf_s function is equivalent to the sprintf function
21 * The sprintf_s function formats and stores a series of characters and values
43 int sprintf_s(char *strDest, size_t destMax, const char *format, ...) in sprintf_s() function
56 EXPORT_SYMBOL(sprintf_s); variable
/kernel/liteos_m/testsuites/unittest/xts/ipc/msg_queue/
H A Dmq_exp_test.c59 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 Dmq_test.c60 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 Dnet_resolv_test_007.cpp49 (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 Dnet_resolv_test_006.cpp49 (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 Dposix_fs_full_test.c145 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...]

Completed in 14 milliseconds

1234