Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 25 of 34) sorted by relevance

12

/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
DIt_process_plimits_008.cpp68 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/
Dprocess_test_064.cpp68 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 …]
Dprocess_test_063.cpp68 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/
Dlos_exec_elf.c51 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 …]
Dlos_load_elf.c52 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/
Dprt_err.c52 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()
Dprt_err_internal.h23 #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/
Dclearerr_fuzz.c48 char fileName[] = "./test.txt"; in ClearerrFuzzTest() local
55 stream = fopen(fileName, "rw"); in ClearerrFuzzTest()
57 printf("fopen(%s) fail\n", fileName); in ClearerrFuzzTest()
Dfeof_fuzz.c49 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/
Dlos_dynlink.c89 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 …]
Dlos_dynlink.h120 CHAR *fileName; member
157 VOID *LOS_SoLoad(const CHAR *fileName, VOID *pool);
/kernel/liteos_m/utils/
Dlos_error.c49 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()
Dlos_error.h127 typedef VOID (*LOS_ERRORHANDLE_FUNC)(CHAR *fileName,
155 extern UINT32 LOS_ErrHandle(CHAR *fileName, UINT32 lineNo,
/kernel/uniproton/src/include/uapi/
Dprt_err.h45 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/
Dlos_err.c37 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/
Dlos_err.h70 typedef VOID (*LOS_ERRORHANDLE_FUNC)(CHAR *fileName,
98 extern UINT32 LOS_ErrHandle(CHAR *fileName, UINT32 lineNo,
/kernel/liteos_a/kernel/extended/dynload/include/
Dlos_exec_elf.h43 extern INT32 LOS_DoExecveFile(const CHAR *fileName, CHAR * const *argv, CHAR * const *envp);
Dlos_load_elf.h98 const CHAR *fileName; member
/kernel/liteos_a/fs/proc/include/
Dproc_file.h59 extern struct ProcDirEntry *OpenProcFile(const char *fileName, int flags, ...);
/kernel/uniproton/src/om/include/
Dprt_err_external.h20 extern void OsErrHandle(const char *fileName, U32 lineNo, U32 errorNo, U32 paraLen, void *para);
/kernel/linux/linux-5.10/fs/cifs/
Dcifsproto.h353 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,
Dcifssmb.c848 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/
Dposix_fs_full_test.c140 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/
Dvfs_force_umount.c78 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/
Dlfs_adapter.c245 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()

12