Home
last modified time | relevance | path

Searched refs:fileName (Results 1 - 25 of 36) sorted by relevance

12

/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
H A 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 in ItProcessPlimits008()
[all...]
/kernel/liteos_a/kernel/extended/dynload/src/
H A 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 maxSize) 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, strLe in OsCopyUserParam()
117 LOS_DoExecveFile(const CHAR *fileName, CHAR * const *argv, CHAR * const *envp) LOS_DoExecveFile() argument
[all...]
H A 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/liteos_a/testsuites/unittest/process/basic/process/full/
H A 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()
[all...]
H A 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()
[all...]
/kernel/uniproton/src/om/err/
H A Dprt_err.c52 OS_SEC_L4_TEXT void OsErrHandle(const char *fileName, U32 lineNo, U32 errorNo, U32 paraLen, void *para) 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 *para) in PRT_ErrHandle() argument
76 OsErrHandle(fileName, lineNo, errorNo, paraLen, para); in PRT_ErrHandle()
H A Dprt_err_internal.h23 #define OS_ERR_CALL_USR_HOOK(fileName, lineNo, errorNo, paraLen, para) \
24 OS_SHOOK_ACTIVATE_PARA5(OS_HOOK_ERR_REG, (fileName), (lineNo), (errorNo), (paraLen), (para))
/kernel/liteos_m/components/dynlink/
H A 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()
748 LOS_SoLoad(const CHAR *fileName, VOID *pool) LOS_SoLoad() argument
[all...]
H A Dlos_dynlink.h120 CHAR *fileName; member
146 * @param fileName The name pointer of shared library.
157 VOID *LOS_SoLoad(const CHAR *fileName, VOID *pool);
/kernel/liteos_m/testsuites/unittest/fuzz/src/stdio/
H A 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()
H A 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()
/kernel/liteos_m/utils/
H A Dlos_error.c40 Input : fileName -- file name
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()
H A Dlos_error.h116 * @param fileName [IN] Log file that stores error information.
127 typedef VOID (*LOS_ERRORHANDLE_FUNC)(CHAR *fileName,
144 * @param fileName [IN] Log file that stores error information.
155 extern UINT32 LOS_ErrHandle(CHAR *fileName, UINT32 lineNo,
/kernel/liteos_a/kernel/base/om/
H A 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/uniproton/src/include/uapi/
H A Dprt_err.h34 * @param fileName [IN] 类型#const char *,出错文件名。
45 typedef void (*ErrHandleFunc)(const char *fileName, U32 lineNo, U32 errorNo, U32 paraLen, void *para);
59 * @param fileName [IN] 类型#const char *,错误发生的文件名,可以用__FILE__作为输入。
70 extern U32 PRT_ErrHandle(const char *fileName, U32 lineNo, U32 errorNo, U32 paraLen, void *para);
/kernel/liteos_a/kernel/include/
H A Dlos_err.h59 * @param fileName [IN] Log file that stores error information.
70 typedef VOID (*LOS_ERRORHANDLE_FUNC)(CHAR *fileName,
87 * @param fileName [IN] Log file that stores error information.
98 extern UINT32 LOS_ErrHandle(CHAR *fileName, UINT32 lineNo,
/kernel/liteos_a/kernel/extended/dynload/include/
H A Dlos_exec_elf.h43 extern INT32 LOS_DoExecveFile(const CHAR *fileName, CHAR * const *argv, CHAR * const *envp);
H A Dlos_load_elf.h98 const CHAR *fileName; member
/kernel/liteos_a/fs/proc/include/
H A Dproc_file.h42 * This API is used to open the node by 'fileName' and flags,
49 * @param fileName [IN] Type #const char * the fileName of the node to be opened
59 extern struct ProcDirEntry *OpenProcFile(const char *fileName, int flags, ...);
/kernel/uniproton/src/om/include/
H A 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/
H A 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,
/kernel/liteos_m/testsuites/unittest/posix/src/fs/full/
H A 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/
H A 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/linux/linux-6.6/fs/smb/client/
H A Dcifsproto.h391 const char *fileName, const FILE_BASIC_INFO *data,
480 const char *fileName, const int disposition,
559 const char *fileName, const char *ea_name,
572 const unsigned char *fileName,
/kernel/liteos_m/components/fs/littlefs/
H A 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()

Completed in 11 milliseconds

12