/third_party/node/test/parallel/ |
H A D | test-url-parse-query.js | 29 pathname: '/foo/bar', 40 pathname: '/', 53 pathname: '/example', 67 pathname: '/example',
|
/third_party/ltp/testcases/kernel/syscalls/openat/ |
H A D | openat01.c | 13 * - pathname is relative, then it is interpreted relative to the directory 16 * - pathname is absolute, then dirfd is ignored 18 * - ENODIR pathname is a relative pathname and dirfd is a file 23 * - pathname is relative and dirfd is the special value AT_FDCWD, then pathname 47 const char *pathname; member 64 TST_EXP_FAIL2(openat(*tc->dir_fd, tc->pathname, O_RDWR, 0600), in verify_openat() 67 TST_EXP_FAIL2(openat(*tc->dir_fd, tc->pathname, O_RDWR, 0600), in verify_openat() 71 TST_EXP_FD(openat(*tc->dir_fd, tc->pathname, O_RDW in verify_openat() [all...] |
/third_party/ltp/testcases/kernel/syscalls/unlinkat/ |
H A D | unlinkat01.c | 19 static const char pathname[] = "unlinkattestdir", variable 33 fd = SAFE_OPEN(pathname, O_DIRECTORY); in getfd() 97 SAFE_MKDIR(pathname, 0700); in setup() 104 SAFE_RMDIR(pathname); in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/utimes/ |
H A D | utimes01.c | 44 char *pathname; member 73 SAFE_STAT(tc->pathname, &st); in utimes_verify() 81 TEST(utimes(tc->pathname, tc->times)); in utimes_verify() 91 if (TST_ERR == 0 && utimes(tc->pathname, tmp_tv) == -1) in utimes_verify()
|
/third_party/ltp/testcases/kernel/syscalls/fchmodat/ |
H A D | fchmodat01.c | 27 static char pathname[256]; variable 67 sprintf(pathname, "fchmodattestdir%d", p); in setup() 74 SAFE_MKDIR(pathname, 0700); in setup() 76 fds[0] = SAFE_OPEN(pathname, O_DIRECTORY); in setup()
|
/kernel/linux/linux-5.10/fs/ |
H A D | statfs.c | 97 int user_statfs(const char __user *pathname, struct kstatfs *st) in user_statfs() argument 103 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs() 192 SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct statfs __user *, buf) in SYSCALL_DEFINE2() 195 int error = user_statfs(pathname, &st); in SYSCALL_DEFINE2() 201 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() 207 error = user_statfs(pathname, &st); in SYSCALL_DEFINE3() 302 COMPAT_SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() 305 int error = user_statfs(pathname, &tmp); in COMPAT_SYSCALL_DEFINE2() 345 int kcompat_sys_statfs64(const char __user * pathname, compat_size_t sz, struct compat_statfs64 __user * buf) in kcompat_sys_statfs64() argument 353 error = user_statfs(pathname, in kcompat_sys_statfs64() [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | statfs.c | 97 int user_statfs(const char __user *pathname, struct kstatfs *st) in user_statfs() argument 103 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs() 192 SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct statfs __user *, buf) in SYSCALL_DEFINE2() 195 int error = user_statfs(pathname, &st); in SYSCALL_DEFINE2() 201 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() 207 error = user_statfs(pathname, &st); in SYSCALL_DEFINE3() 305 COMPAT_SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() 308 int error = user_statfs(pathname, &tmp); in COMPAT_SYSCALL_DEFINE2() 348 int kcompat_sys_statfs64(const char __user * pathname, compat_size_t sz, struct compat_statfs64 __user * buf) in kcompat_sys_statfs64() argument 356 error = user_statfs(pathname, in kcompat_sys_statfs64() [all...] |
/third_party/ltp/include/old/ |
H A D | safe_macros.h | 35 #define SAFE_CREAT(cleanup_fn, pathname, mode) \ 36 safe_creat(__FILE__, __LINE__, cleanup_fn, (pathname), (mode)) 53 #define SAFE_MKDIR(cleanup_fn, pathname, mode) \ 54 safe_mkdir(__FILE__, __LINE__, (cleanup_fn), (pathname), (mode)) 56 #define SAFE_RMDIR(cleanup_fn, pathname) \ 57 safe_rmdir(__FILE__, __LINE__, (cleanup_fn), (pathname)) 62 #define SAFE_OPEN(cleanup_fn, pathname, oflags, ...) \ 63 safe_open(__FILE__, __LINE__, (cleanup_fn), (pathname), (oflags), \ 91 #define SAFE_UNLINK(cleanup_fn, pathname) \ 92 safe_unlink(__FILE__, __LINE__, cleanup_fn, (pathname)) [all...] |
/third_party/pulseaudio/src/pulsecore/ |
H A D | core-scache.c | 462 static void add_file(pa_core *c, const char *pathname) { in add_file() argument 467 pa_assert(pathname); in add_file() 469 e = pa_path_get_filename(pathname); in add_file() 471 if (stat(pathname, &st) < 0) { in add_file() 472 pa_log("stat('%s'): %s", pathname, pa_cstrerror(errno)); in add_file() 479 pa_scache_add_file_lazy(c, e, pathname, NULL); in add_file() 482 int pa_scache_add_directory_lazy(pa_core *c, const char *pathname) { in pa_scache_add_directory_lazy() argument 486 pa_assert(pathname); in pa_scache_add_directory_lazy() 489 if (!(dir = opendir(pathname))) { in pa_scache_add_directory_lazy() 495 if (glob(pathname, GLOB_ER in pa_scache_add_directory_lazy() [all...] |
/kernel/liteos_a/fs/vfs/operation/ |
H A D | vfs_chattr.c | 58 int chattr(const char *pathname, struct IATTR *attr) in chattr() argument 63 if (pathname == NULL || attr == NULL) { in chattr() 69 ret = VnodeLookup(pathname, &vnode, 0); in chattr()
|
/third_party/node/lib/internal/modules/esm/ |
H A D | package_config.js | 31 const packageJSONPath = packageJSONUrl.pathname; 49 if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
|
/third_party/skia/tools/skpbench/ |
H A D | _os_path.py | 12 def basename(pathname): 13 return pathname.basename(pathname)
|
/kernel/linux/linux-6.6/security/integrity/ima/ |
H A D | ima_main.c | 86 char **pathbuf, const char **pathname, in mmap_violation_check() 98 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check() 100 integrity_audit_msg(AUDIT_INTEGRITY_DATA, inode, *pathname, in mmap_violation_check() 120 const char **pathname, in ima_rdwr_violation_check() 146 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check() 149 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check() 152 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check() 216 const char *pathname = NULL; in process_measurement() local 258 &pathbuf, &pathname, filename); in process_measurement() 330 &pathname, filenam in process_measurement() 85 mmap_violation_check(enum ima_hooks func, struct file *file, char **pathbuf, const char **pathname, char *filename) mmap_violation_check() argument 116 ima_rdwr_violation_check(struct file *file, struct integrity_iint_cache *iint, int must_measure, char **pathbuf, const char **pathname, char *filename) ima_rdwr_violation_check() argument 474 const char *pathname = NULL; ima_file_mprotect() local [all...] |
/third_party/ltp/lib/ |
H A D | safe_macros.c | 83 const char *pathname, mode_t mode) in safe_creat() 87 rval = creat(pathname, mode); in safe_creat() 91 "creat(%s,%04o) failed", pathname, mode); in safe_creat() 94 "Invalid creat(%s,%04o) return value %d", pathname, in safe_creat() 182 const char *pathname, mode_t mode) in safe_mkdir() 186 rval = mkdir(pathname, mode); in safe_mkdir() 190 "mkdir(%s, %04o) failed", pathname, mode); in safe_mkdir() 193 "Invalid mkdir(%s, %04o) return value %d", pathname, in safe_mkdir() 201 const char *pathname) in safe_rmdir() 205 rval = rmdir(pathname); in safe_rmdir() 82 safe_creat(const char *file, const int lineno, void (*cleanup_fn) (void), const char *pathname, mode_t mode) safe_creat() argument 181 safe_mkdir(const char *file, const int lineno, void (*cleanup_fn) (void), const char *pathname, mode_t mode) safe_mkdir() argument 200 safe_rmdir(const char *file, const int lineno, void (*cleanup_fn) (void), const char *pathname) safe_rmdir() argument 237 safe_open(const char *file, const int lineno, void (*cleanup_fn) (void), const char *pathname, int oflags, ...) safe_open() argument 423 safe_unlink(const char *file, const int lineno, void (*cleanup_fn) (void), const char *pathname) safe_unlink() argument 837 safe_mkfifo(const char *file, const int lineno, void (*cleanup_fn)(void), const char *pathname, mode_t mode) safe_mkfifo() argument 1266 safe_mknod(const char *file, const int lineno, const char *pathname, mode_t mode, dev_t dev) safe_mknod() argument [all...] |
/kernel/linux/linux-6.6/security/loadpin/ |
H A D | loadpin.c | 28 char *cmdline, *pathname; in report_load() local 30 pathname = kstrdup_quotable_file(file, GFP_KERNEL); in report_load() 35 (pathname && pathname[0] != '<') ? "\"" : "", in report_load() 36 pathname, in report_load() 37 (pathname && pathname[0] != '<') ? "\"" : "", in report_load() 42 kfree(pathname); in report_load()
|
/third_party/python/Lib/ |
H A D | imp.py | 125 raise ImportError('empty pathname', path='') 166 def load_source(name, pathname, file=None): 167 loader = _LoadSourceCompatibility(name, pathname, file) 168 spec = util.spec_from_file_location(name, pathname, loader=loader) 175 module.__loader__ = machinery.SourceFileLoader(name, pathname) 185 def load_compiled(name, pathname, file=None): 187 loader = _LoadCompiledCompatibility(name, pathname, file) 188 spec = util.spec_from_file_location(name, pathname, loader=loader) 195 module.__loader__ = SourcelessFileLoader(name, pathname)
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | name_to_handle_at.c | 22 const char *pathname = "/proc/self/mountinfo"; variable 45 if (name_to_handle_at(dirfd, pathname, fhp, &mount_id, flags) != -1 || errno != EOVERFLOW) { in name_to_handle_at_0100() 55 int result = name_to_handle_at(dirfd, pathname, fhp, &mount_id, flags); in name_to_handle_at_0100()
|
/third_party/node/deps/icu-small/source/tools/toolutil/ |
H A D | pkg_gencmn.cpp | 85 char *pathname, *basename; member 271 printf("adding %s (%ld byte%s)\n", files[i].pathname, (long)files[i].fileSize, files[i].fileSize == 1 ? "" : "s"); in createCommonDataFile() 275 file=T_FileStream_open(files[i].pathname, "rb"); in createCommonDataFile() 277 fprintf(stderr, "gencmn: unable to open listed file %s\n", files[i].pathname); in createCommonDataFile() 292 fprintf(stderr, "gencmn: unable to read %s properly (got %ld/%ld byte%s)\n", files[i].pathname, (long)nread, (long)files[i].fileSize, files[i].fileSize == 1 ? "" : "s"); in createCommonDataFile() 353 snprintf(buffer, sizeof(buffer), "extern const char\n %s%s[]", symPrefix?symPrefix:"", files[0].pathname); in createCommonDataFile() 356 snprintf(buffer, sizeof(buffer), ",\n %s%s[]", symPrefix?symPrefix:"", files[i].pathname); in createCommonDataFile() 393 snprintf(buffer, sizeof(buffer), " { \"%s\", %s%s }", files[0].basename, symPrefix?symPrefix:"", files[0].pathname); in createCommonDataFile() 396 snprintf(buffer, sizeof(buffer), ",\n { \"%s\", %s%s }", files[i].basename, symPrefix?symPrefix:"", files[i].pathname); in createCommonDataFile() 430 /* store the pathname */ in addFile() [all...] |
/third_party/icu/icu4c/source/tools/toolutil/ |
H A D | pkg_gencmn.cpp | 85 char *pathname, *basename; member 271 printf("adding %s (%ld byte%s)\n", files[i].pathname, (long)files[i].fileSize, files[i].fileSize == 1 ? "" : "s"); in createCommonDataFile() 275 file=T_FileStream_open(files[i].pathname, "rb"); in createCommonDataFile() 277 fprintf(stderr, "gencmn: unable to open listed file %s\n", files[i].pathname); in createCommonDataFile() 292 fprintf(stderr, "gencmn: unable to read %s properly (got %ld/%ld byte%s)\n", files[i].pathname, (long)nread, (long)files[i].fileSize, files[i].fileSize == 1 ? "" : "s"); in createCommonDataFile() 353 sprintf(buffer, "extern const char\n %s%s[]", symPrefix?symPrefix:"", files[0].pathname); in createCommonDataFile() 356 sprintf(buffer, ",\n %s%s[]", symPrefix?symPrefix:"", files[i].pathname); in createCommonDataFile() 393 sprintf(buffer, " { \"%s\", %s%s }", files[0].basename, symPrefix?symPrefix:"", files[0].pathname); in createCommonDataFile() 396 sprintf(buffer, ",\n { \"%s\", %s%s }", files[i].basename, symPrefix?symPrefix:"", files[i].pathname); in createCommonDataFile() 430 /* store the pathname */ in addFile() [all...] |
/third_party/ltp/testcases/realtime/lib/ |
H A D | librttest.c | 641 /* Write the given data to the existing file specified by pathname. Complain 643 static void write_file(const char *pathname, const void *data, size_t len) in write_file() argument 645 int fd = open(pathname, O_WRONLY); in write_file() 648 pathname, errno, strerror(errno)); in write_file() 656 pathname, errno, strerror(errno)); in write_file() 661 * pathname. Complain if unable to do so. */ 662 static void write_string_to_file(const char *pathname, const char *string) in write_string_to_file() argument 664 write_file(pathname, string, strlen(string)); in write_string_to_file() 667 static void read_and_print(const char *pathname, int output_fd) in read_and_print() argument 670 int fd = open(pathname, O_RDONL in read_and_print() [all...] |
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
H A D | pkg_gencmn.cpp | 85 char *pathname, *basename; member 271 printf("adding %s (%ld byte%s)\n", files[i].pathname, (long)files[i].fileSize, files[i].fileSize == 1 ? "" : "s"); in createCommonDataFile() 275 file=T_FileStream_open(files[i].pathname, "rb"); in createCommonDataFile() 277 fprintf(stderr, "gencmn: unable to open listed file %s\n", files[i].pathname); in createCommonDataFile() 292 fprintf(stderr, "gencmn: unable to read %s properly (got %ld/%ld byte%s)\n", files[i].pathname, (long)nread, (long)files[i].fileSize, files[i].fileSize == 1 ? "" : "s"); in createCommonDataFile() 353 sprintf(buffer, "extern const char\n %s%s[]", symPrefix?symPrefix:"", files[0].pathname); in createCommonDataFile() 356 sprintf(buffer, ",\n %s%s[]", symPrefix?symPrefix:"", files[i].pathname); in createCommonDataFile() 393 sprintf(buffer, " { \"%s\", %s%s }", files[0].basename, symPrefix?symPrefix:"", files[0].pathname); in createCommonDataFile() 396 sprintf(buffer, ",\n { \"%s\", %s%s }", files[i].basename, symPrefix?symPrefix:"", files[i].pathname); in createCommonDataFile() 430 /* store the pathname */ in addFile() [all...] |
/kernel/linux/linux-5.10/tools/power/acpi/tools/acpidump/ |
H A D | apdump.c | 355 * PARAMETERS: pathname - File containing the binary ACPI table 363 int ap_dump_table_from_file(char *pathname) in ap_dump_table_from_file() argument 371 table = ap_get_table_from_file(pathname, &file_size); in ap_dump_table_from_file() 379 pathname); in ap_dump_table_from_file() 387 table->length, file_size, pathname); in ap_dump_table_from_file() 394 pathname, table->signature, file_size, file_size); in ap_dump_table_from_file()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | audit_fsnotify.c | 74 struct audit_fsnotify_mark *audit_alloc_mark(struct audit_krule *krule, char *pathname, int len) in audit_alloc_mark() argument 82 if (pathname[0] != '/' || pathname[len-1] == '/') in audit_alloc_mark() 85 dentry = kern_path_locked(pathname, &path); in audit_alloc_mark() 99 audit_mark->path = pathname; in audit_alloc_mark()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | audit_fsnotify.c | 74 struct audit_fsnotify_mark *audit_alloc_mark(struct audit_krule *krule, char *pathname, int len) in audit_alloc_mark() argument 82 if (pathname[0] != '/' || pathname[len-1] == '/') in audit_alloc_mark() 85 dentry = kern_path_locked(pathname, &path); in audit_alloc_mark() 99 audit_mark->path = pathname; in audit_alloc_mark()
|
/kernel/linux/linux-6.6/tools/power/acpi/tools/acpidump/ |
H A D | apdump.c | 357 * PARAMETERS: pathname - File containing the binary ACPI table 365 int ap_dump_table_from_file(char *pathname) in ap_dump_table_from_file() argument 373 table = ap_get_table_from_file(pathname, &file_size); in ap_dump_table_from_file() 381 pathname); in ap_dump_table_from_file() 389 table->length, file_size, pathname); in ap_dump_table_from_file() 396 pathname, table->signature, file_size, file_size); in ap_dump_table_from_file()
|