/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
D | It_process_plimits_008.cpp | 68 std::vector<std::string> fileName; in ItProcessPlimits008() local 69 fileName.push_back("plimits.procs"); in ItProcessPlimits008() 70 fileName.push_back("plimits.limiters"); in ItProcessPlimits008() 71 fileName.push_back("pids.max"); in ItProcessPlimits008() 72 fileName.push_back("sched.period"); in ItProcessPlimits008() 73 fileName.push_back("sched.quota"); in ItProcessPlimits008() 74 fileName.push_back("sched.stat"); in ItProcessPlimits008() 75 fileName.push_back("memory.failcnt"); in ItProcessPlimits008() 76 fileName.push_back("memory.limit"); in ItProcessPlimits008() 77 fileName.push_back("memory.peak"); in ItProcessPlimits008() [all …]
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/ |
D | process_test_064.cpp | 68 char *fileName = NULL; in TestCase() local 84 fileName = static_cast<char *>(malloc(FILE_NAME_BYTES)); in TestCase() 85 ICUNIT_ASSERT_NOT_EQUAL(fileName, NULL, fileName); in TestCase() 86 GetRandomData(&fileName, FILE_NAME_BYTES); in TestCase() 87 ret = posix_spawnp(&pid, fileName, NULL, NULL, NULL, NULL); in TestCase() 88 free(fileName); in TestCase() 91 fileName = static_cast<char *>(malloc(LONG_FILE_NAME_BYTES)); in TestCase() 92 ICUNIT_ASSERT_NOT_EQUAL(fileName, NULL, fileName); in TestCase() 93 GetRandomData(&fileName, LONG_FILE_NAME_BYTES); in TestCase() 94 ret = posix_spawnp(&pid, fileName, NULL, NULL, NULL, NULL); in TestCase() [all …]
|
D | process_test_063.cpp | 68 char *fileName = NULL; in TestCase() local 91 fileName = static_cast<char *>(malloc(FILE_NAME_BYTES)); in TestCase() 92 ICUNIT_ASSERT_NOT_EQUAL(fileName, NULL, fileName); in TestCase() 93 GetRandomData(&fileName, FILE_NAME_BYTES); in TestCase() 94 ret = posix_spawn(&pid, fileName, NULL, NULL, NULL, NULL); in TestCase() 95 free(fileName); in TestCase() 98 fileName = static_cast<char *>(malloc(LONG_FILE_NAME_BYTES)); in TestCase() 99 ICUNIT_ASSERT_NOT_EQUAL(fileName, NULL, fileName); in TestCase() 100 GetRandomData(&fileName, LONG_FILE_NAME_BYTES); in TestCase() 101 ret = posix_spawn(&pid, fileName, NULL, NULL, NULL, NULL); in TestCase() [all …]
|
/kernel/liteos_a/kernel/extended/dynload/src/ |
D | los_exec_elf.c | 51 STATIC INT32 OsGetRealPath(const CHAR *fileName, CHAR *buf, UINT32 maxLen) in OsGetRealPath() argument 56 if (access(fileName, F_OK) < 0) { in OsGetRealPath() 61 len = strlen(fileName); in OsGetRealPath() 72 if (strncpy_s(buf + workPathLen + 1, maxLen - workPathLen - 1, fileName, len) != EOK) { in OsGetRealPath() 89 STATIC INT32 OsCopyUserParam(ELFLoadInfo *loadInfo, const CHAR *fileName, CHAR *kfileName, UINT32 m… in OsCopyUserParam() argument 94 if (LOS_IsUserAddress((VADDR_T)(UINTPTR)fileName)) { in OsCopyUserParam() 95 err = LOS_StrncpyFromUser(kfileName, fileName, PATH_MAX + 1); in OsCopyUserParam() 102 } else if (LOS_IsKernelAddress((VADDR_T)(UINTPTR)fileName)) { in OsCopyUserParam() 103 strLen = strlen(fileName); in OsCopyUserParam() 104 err = memcpy_s(kfileName, PATH_MAX, fileName, strLen); in OsCopyUserParam() [all …]
|
D | los_load_elf.c | 52 STATIC INT32 OsELFOpen(const CHAR *fileName, INT32 oflags) in OsELFOpen() argument 66 ret = open(fileName, oflags); in OsELFOpen() 94 STATIC INT32 OsGetFileLength(UINT32 *fileLen, const CHAR *fileName) in OsGetFileLength() argument 99 ret = stat(fileName, &buf); in OsGetFileLength() 102 if (strcmp(fileName, "/bin/shell") != 0) { in OsGetFileLength() 104 …PRINT_ERR("%s[%d], Failed to stat file: %s, errno: %d\n", __FUNCTION__, __LINE__, fileName, errno); in OsGetFileLength() 112 PRINT_ERR("%s[%d], The file: %s is invalid!\n", __FUNCTION__, __LINE__, fileName); in OsGetFileLength() 116 … PRINT_ERR("%s[%d], The file: %s length is out of limit!\n", __FUNCTION__, __LINE__, fileName); in OsGetFileLength() 210 STATIC INT32 OsReadEhdr(const CHAR *fileName, ELFInfo *elfInfo, BOOL isExecFile) in OsReadEhdr() argument 214 ret = OsGetFileLength(&elfInfo->fileLen, fileName); in OsReadEhdr() [all …]
|
/kernel/uniproton/src/om/err/ |
D | prt_err.c | 52 OS_SEC_L4_TEXT void OsErrHandle(const char *fileName, U32 lineNo, U32 errorNo, U32 paraLen, void *p… in OsErrHandle() argument 54 OS_ERR_CALL_USR_HOOK(fileName, lineNo, errorNo, paraLen, para); in OsErrHandle() 74 OS_SEC_L4_TEXT U32 PRT_ErrHandle(const char *fileName, U32 lineNo, U32 errorNo, U32 paraLen, void *… in PRT_ErrHandle() argument 76 OsErrHandle(fileName, lineNo, errorNo, paraLen, para); in PRT_ErrHandle()
|
D | prt_err_internal.h | 23 #define OS_ERR_CALL_USR_HOOK(fileName, lineNo, errorNo, paraLen, para) \ argument 24 OS_SHOOK_ACTIVATE_PARA5(OS_HOOK_ERR_REG, (fileName), (lineNo), (errorNo), (paraLen), (para))
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/stdio/ |
D | clearerr_fuzz.c | 48 char fileName[] = "./test.txt"; in ClearerrFuzzTest() local 55 stream = fopen(fileName, "rw"); in ClearerrFuzzTest() 57 printf("fopen(%s) fail\n", fileName); in ClearerrFuzzTest()
|
D | feof_fuzz.c | 49 char fileName[] = "./test.txt"; in FeofFuzzTest() local 57 stream = fopen(fileName, "rw"); in FeofFuzzTest() 59 printf("fopen(%s) fail\n", fileName); in FeofFuzzTest()
|
/kernel/liteos_m/components/dynlink/ |
D | los_dynlink.c | 89 STATIC DynSharedObj *OsIsPreLoaded(const CHAR *fileName) in OsIsPreLoaded() argument 94 if (!strcmp(fileName, dso->fileName)) { in OsIsPreLoaded() 150 STATIC INT32 OsGetFileLength(UINT32 *fileLen, const CHAR *fileName) in OsGetFileLength() argument 155 ret = stat(fileName, &buf); in OsGetFileLength() 157 PRINT_ERR("Failed to stat file: %s, errno: %d\n", fileName, errno); in OsGetFileLength() 162 PRINT_ERR("The file: %s length is out of limit!\n", fileName); in OsGetFileLength() 220 STATIC DynSharedObj *OsLoadInit(const CHAR *fileName, VOID *pool) in OsLoadInit() argument 227 nameLen = strlen(fileName); in OsLoadInit() 252 ret = OsGetFileLength(&fileLen, fileName); in OsLoadInit() 258 dso->fd = open(fileName, O_RDONLY); in OsLoadInit() [all …]
|
D | los_dynlink.h | 120 CHAR *fileName; member 157 VOID *LOS_SoLoad(const CHAR *fileName, VOID *pool);
|
/kernel/liteos_m/utils/ |
D | los_error.c | 49 LITE_OS_SEC_TEXT_INIT UINT32 LOS_ErrHandle(CHAR *fileName, in LOS_ErrHandle() argument 56 g_userErrFunc.pfnHook(fileName, lineNo, errorNo, paraLen, para); in LOS_ErrHandle()
|
D | los_error.h | 127 typedef VOID (*LOS_ERRORHANDLE_FUNC)(CHAR *fileName, 155 extern UINT32 LOS_ErrHandle(CHAR *fileName, UINT32 lineNo,
|
/kernel/uniproton/src/include/uapi/ |
D | prt_err.h | 45 typedef void (*ErrHandleFunc)(const char *fileName, U32 lineNo, U32 errorNo, U32 paraLen, void *par… 70 extern U32 PRT_ErrHandle(const char *fileName, U32 lineNo, U32 errorNo, U32 paraLen, void *para);
|
/kernel/liteos_a/kernel/base/om/ |
D | los_err.c | 37 LITE_OS_SEC_TEXT_INIT UINT32 LOS_ErrHandle(CHAR *fileName, UINT32 lineNo, UINT32 errorNo, in LOS_ErrHandle() argument 41 g_errHandleHook(fileName, lineNo, errorNo, paraLen, para); in LOS_ErrHandle()
|
/kernel/liteos_a/kernel/include/ |
D | los_err.h | 70 typedef VOID (*LOS_ERRORHANDLE_FUNC)(CHAR *fileName, 98 extern UINT32 LOS_ErrHandle(CHAR *fileName, UINT32 lineNo,
|
/kernel/liteos_a/kernel/extended/dynload/include/ |
D | los_exec_elf.h | 43 extern INT32 LOS_DoExecveFile(const CHAR *fileName, CHAR * const *argv, CHAR * const *envp);
|
D | los_load_elf.h | 98 const CHAR *fileName; member
|
/kernel/liteos_a/fs/proc/include/ |
D | proc_file.h | 59 extern struct ProcDirEntry *OpenProcFile(const char *fileName, int flags, ...);
|
/kernel/uniproton/src/om/include/ |
D | prt_err_external.h | 20 extern void OsErrHandle(const char *fileName, U32 lineNo, U32 errorNo, U32 paraLen, void *para);
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | cifsproto.h | 353 const char *fileName, const FILE_BASIC_INFO *data, 365 char *fileName, __u16 dos_attributes, 438 const char *fileName, const int disposition, 527 const char *fileName, const char *ea_name, 540 const unsigned char *fileName,
|
D | cifssmb.c | 848 const char *fileName, __u16 type, in CIFSPOSIXDelFile() argument 868 cifsConvertToUTF16((__le16 *) pSMB->FileName, fileName, in CIFSPOSIXDelFile() 873 name_len = copy_path_name(pSMB->FileName, fileName); in CIFSPOSIXDelFile() 938 name_len = cifsConvertToUTF16((__le16 *) pSMB->fileName, name, in CIFSSMBDelFile() 944 name_len = copy_path_name(pSMB->fileName, name); in CIFSSMBDelFile() 1218 const char *fileName, const int openDisposition, in SMBLegacyOpen() argument 1241 cifsConvertToUTF16((__le16 *) (pSMB->fileName + 1), in SMBLegacyOpen() 1242 fileName, PATH_MAX, nls_codepage, remap); in SMBLegacyOpen() 1247 name_len = copy_path_name(pSMB->fileName, fileName); in SMBLegacyOpen() 1351 name_len = cifsConvertToUTF16((__le16 *)(req->fileName + 1), in CIFS_open() [all …]
|
/kernel/liteos_m/testsuites/unittest/posix/src/fs/full/ |
D | posix_fs_full_test.c | 140 char fileName[TEST_BUF_SIZE] = { 0 }; variable 158 res = sprintf_s(fileName, TEST_BUF_SIZE, "%s%02d", "eFile", index); 163 ret = strcmp(dirmsg->d_name, fileName);
|
/kernel/liteos_a/fs/vfs/operation/ |
D | vfs_force_umount.c | 78 static int ErrorVopUnlink(struct Vnode *parent, struct Vnode *vnode, const char *fileName) in ErrorVopUnlink() argument 82 (void)fileName; in ErrorVopUnlink()
|
/kernel/liteos_m/components/fs/littlefs/ |
D | lfs_adapter.c | 245 int LfsUnlink(struct MountPoint *mp, const char *fileName) in LfsUnlink() argument 249 if ((mp == NULL) || (fileName == NULL)) { in LfsUnlink() 259 ret = lfs_remove((lfs_t *)mp->mData, fileName); in LfsUnlink()
|