| /xnu-11215/bsd/net/ |
| H A D | pf_ruleset.c | 139 int c = strbufcmp(a->path, b->path); in pf_anchor_compare() 195 strlcpy(key->path, path, sizeof(key->path)); in pf_find_anchor() 231 path++; in pf_find_ruleset() 233 if (!*path) { in pf_find_ruleset() 251 path++; in pf_find_ruleset_with_owner() 253 if (!*path) { in pf_find_ruleset_with_owner() 320 path++; in pf_find_or_create_ruleset() 367 strbufcpy(anchor->path, parent->path); in pf_find_or_create_ruleset() 368 strlcat(anchor->path, "/", sizeof(anchor->path)); in pf_find_or_create_ruleset() 375 anchor->path, anchor->name, dup->path, dup->name); in pf_find_or_create_ruleset() [all …]
|
| /xnu-11215/libsyscall/wrappers/ |
| H A D | open-base.c | 44 int __open(const char *path, int oflag, mode_t mode); 45 int __openat(int fd, const char *path, int oflag, mode_t mode); 59 int __open_nocancel(const char *path, int oflag, mode_t mode); 76 open(const char *path, int oflag, ...) in open() argument 79 open$NOCANCEL(const char *path, int oflag, ...) in open() 93 opened_fd = OPEN_SYSCALL(path, oflag, mode); in open() 107 if (!system_version_compat_check_path_suffix(path)) { in open() 119 openat(int fd, const char *path, int oflag, ...) in openat() argument 122 openat$NOCANCEL(int fd, const char *path, int oflag, ...) in openat() 136 opened_fd = OPENAT_SYSCALL(fd, path, oflag, mode); in openat() [all …]
|
| H A D | open_dprotected_np.c | 30 int __open_dprotected_np(const char* path, int flags, int class, int dpflags, int mode); 31 int __openat_dprotected_np(int fd, const char* path, int flags, int class, int dpflags, int mode, i… 34 open_dprotected_np(const char *path, int flags, int class, int dpflags, ...) in open_dprotected_np() argument 49 return __open_dprotected_np(path, flags, class, dpflags, mode); in open_dprotected_np() 53 openat_dprotected_np(int fd, const char *path, int flags, int class, int dpflags, ...) in openat_dprotected_np() argument 68 return __openat_dprotected_np(fd, path, flags, class, dpflags, mode, AUTH_OPEN_NOAUTHFD); in openat_dprotected_np() 72 openat_authenticated_np(int fd, const char *path, int flags, int authfd) in openat_authenticated_np() argument 84 …return __openat_dprotected_np(fd, path, flags, PROTECTION_CLASS_DEFAULT, O_DP_AUTHENTICATE, 0, aut… in openat_authenticated_np()
|
| H A D | carbon_delete.c | 25 int __delete(const char *path); 28 __carbon_delete(const char *path) in __carbon_delete() argument 30 int res = __delete(path); in __carbon_delete()
|
| H A D | unlink.c | 25 int __unlink(const char *path); 28 unlink(const char *path) in unlink() argument 30 int res = __unlink(path); in unlink()
|
| H A D | rmdir.c | 25 int __rmdir(const char *path); 28 rmdir(const char *path) in rmdir() argument 30 int res = __rmdir(path); in rmdir()
|
| /xnu-11215/tools/tests/perf_index/ |
| H A D | test_file_helper.c | 24 cleanup_tempdir(char* path) in cleanup_tempdir() argument 26 return rmdir(path); in cleanup_tempdir() 30 test_file_create(char* path, int thread_id, int num_threads, long long length) in test_file_create() argument 69 snprintf(filepath, sizeof(filepath), "%s/file_read", path); in test_file_read_setup() 103 snprintf(filepath, sizeof(filepath), "%s/file_read", path); in test_file_read() 127 test_file_read_cleanup(char* path, int num_threads, long long length) in test_file_read_cleanup() argument 132 snprintf(filepath, sizeof(filepath), "%s/file_read", path); in test_file_read_cleanup() 140 test_file_write_setup(char* path, int num_threads, long long length) in test_file_write_setup() argument 151 snprintf(filepath, sizeof(filepath), "%s/file_write-%d", path, i); in test_file_write_setup() 197 test_file_write_cleanup(char* path, int num_threads, long long length) in test_file_write_cleanup() argument [all …]
|
| H A D | test_file_helper.h | 8 int test_file_create(char* path, int thread_id, int num_threads, long long length); 9 int test_file_read_setup(char* path, int num_threads, long long length, long long max_file_size); 10 int test_file_read(char* path, int thread_id, int num_threads, long long length, long long max_file… 11 int test_file_read_cleanup(char* path, int num_threads, long long length); 12 int test_file_write_setup(char* path, int num_threads, long long length); 13 int test_file_write(char* path, int thread_id, int num_threads, long long length, long long max_fil… 14 int test_file_write_cleanup(char* path, int num_threads, long long length);
|
| H A D | ramdisk.c | 9 setup_ram_volume(const char* name, char* path) in setup_ram_volume() argument 20 snprintf(path, MAXPATHLEN, "/Volumes/%s", name); in setup_ram_volume() 28 cleanup_ram_volume(char* path) in cleanup_ram_volume() argument 33 retval = asprintf(&cmd, "umount -f '%s' >/dev/null", path); in cleanup_ram_volume()
|
| /xnu-11215/bsd/kern/ |
| H A D | imageboot.c | 781 if (path) { in imgboot_get_apticket_path() 787 slash = path; in imgboot_get_apticket_path() 795 return path; in imgboot_get_apticket_path() 976 char *path = url_path; in url_to_path() local 987 if (path == NULL) { in url_to_path() 993 url_decode(path); in url_to_path() 1001 return path; in url_to_path() 1045 assert(path); in imageboot_setup_new() 1069 if (path != root_path) { in imageboot_setup_new() 1137 assert(path); in imageboot_setup() [all …]
|
| H A D | netboot.c | 131 start = path; in parse_booter_path() 218 if (strncmp(path, kNetBootRootPathPrefixNFS, in parse_netboot_path() 255 if (path[0] >= '0' && path[0] <= '9') { in parse_image_path() 288 const char * path; in get_root_path() local 294 path = (const char *)dhcpol_find(&options, in get_root_path() 296 if (path) { in get_root_path() 297 memcpy(root_path, path, len); in get_root_path() 309 *length_p = strlen(path) + 1; in save_path() 311 strlcpy(*str_p, path, *length_p); in save_path() 409 char * path, size_t path_len) in netboot_rootpath() argument [all …]
|
| /xnu-11215/libsyscall/Libsyscall.xcodeproj/ |
| H A D | project.pbxproj | 839 path = mach; 874 path = unix03; 996 path = legacy; 1020 path = custom; 1047 path = arm; 1056 path = MacOSX; 1064 path = i386; 1080 path = arm64; 1117 path = os; 1138 path = mach; [all …]
|
| /xnu-11215/tests/ |
| H A D | unp_connect_thread_uaf.c | 19 server_thread1(char* path) in server_thread1() argument 24 strcpy(server_sockaddr.sun_path, path); in server_thread1() 41 server_thread2(char* path) in server_thread2() argument 46 strcpy(server_sockaddr.sun_path, path); in server_thread2() 63 try_to_connect(char* path) in try_to_connect() argument 68 strcpy(server_sockaddr.sun_path, path); in try_to_connect() 86 char path[] = "/tmp/"; in test_unp_connect_multithread() local 91 strncpy(path1, path, 255); in test_unp_connect_multithread() 93 strncpy(path2, path, 255); in test_unp_connect_multithread() 95 strncpy(path3, path, 255); in test_unp_connect_multithread()
|
| H A D | posix_spawn_alt_rosetta.c | 21 char path[1024]; variable 22 uint32_t size = sizeof(path); 37 T_QUIET; T_ASSERT_EQ(_NSGetExecutablePath(path, &size), 0, NULL); 38 T_QUIET; T_ASSERT_LT(strlcat(path, "_helper", size), (unsigned long)size, NULL); 45 ret = posix_spawn(&pid, path, NULL, &spawnattr, NULL, NULL); 57 ret = posix_spawn(&pid, path, NULL, &spawnattr, NULL, NULL); 69 ret = posix_spawn(&pid, path, NULL, &spawnattr, NULL, NULL);
|
| H A D | disk_mount_conditioner.c | 20 static void perf_setup(char **path, int *fd); 278 char *path; variable 286 perf_setup(&path, &fd); 304 err = fsctl(path, DISK_CONDITIONER_IOC_SET, &info, 0); 381 char *path = malloc(PATH_MAX); in mktempdir() local 382 strcpy(path, "/tmp/dmc.XXXXXXXX"); in mktempdir() 383 atexit_b(^{ free(path); }); in mktempdir() 388 atexit_b(^{ remove(path); }); in mktempdir() 390 return path; in mktempdir() 510 perf_setup(char **path, int *fd) in perf_setup() argument [all …]
|
| H A D | correct_kernel_booted.c | 17 get_macho_uuid(const char *cwd, const char *path, uuid_t uuid) in get_macho_uuid() argument 27 int ret = stat(path, &stbuf); in get_macho_uuid() 31 T_QUIET; T_ASSERT_POSIX_SUCCESS(ret, "should stat %s%s", cwd, path); in get_macho_uuid() 39 int fd = open(path, O_RDONLY); in get_macho_uuid() 44 T_ASSERT_POSIX_SUCCESS(fd, "should open file at %s%s", cwd, path); in get_macho_uuid() 50 cwd, path); in get_macho_uuid() 101 T_LOG("could not find LC_UUID in Mach-O at %s%s", cwd, path); in get_macho_uuid()
|
| H A D | test_sysctl_kern_procargs_25397314.m | 207 char path[PATH_MAX]; 208 uint32_t path_size = sizeof(path); 213 T_ASSERT_POSIX_SUCCESS(_NSGetExecutablePath(path, &path_size), "get executable path"); 218 dt_args[0] = path; 228 T_LOG("Launching %s", path); 263 T_ASSERT_NOTNULL(procargs->executablePath, "executable path should be non-null"); 264 T_ASSERT_GT([procargs->executablePath length], 0, "executable path should not be empty"); 269 T_ASSERT_NOTNULL(procargs->executablePath, "executable path should be non-null"); 278 T_ASSERT_NOTNULL(procargs->executablePath, "executable path should be non-null"); 308 T_ASSERT_NOTNULL(procargs->executablePath, "executable path should be non-null"); [all …]
|
| H A D | kas_info.c | 130 static char const* path; in kernel_path() local 136 path = CSSymbolOwnerGetPath(CSSymbolicatorGetAOutSymbolOwner(symbolicator)); in kernel_path() 137 if (!path) { in kernel_path() 138 path = CSSymbolOwnerGetPath(CSSymbolicatorGetSymbolOwner(symbolicator)); in kernel_path() 140 T_QUIET; T_ASSERT_NOTNULL(path, "CSSymbolOwnerGetPath/CSSymbolicatorGetSymbolOwner"); in kernel_path() 142 return path; in kernel_path() 148 char const* path = kernel_path(); in disk_kernel_segments() local 149 int fd = open(path, O_RDONLY); in disk_kernel_segments() 156 T_LOG("Kernel file is %s", path); in disk_kernel_segments()
|
| H A D | posix_spawn_archpref.c | 14 char path[1024]; in run_test() local 15 uint32_t size = sizeof(path); in run_test() 19 T_QUIET; T_ASSERT_EQ(_NSGetExecutablePath(path, &size), 0, NULL); in run_test() 20 T_QUIET; T_ASSERT_LT(strlcat(path, "_helper", size), (unsigned long)size, NULL); in run_test() 28 ret = posix_spawn(&pid, path, NULL, &spawnattr, NULL, NULL); in run_test()
|
| H A D | fd_aio_fsync_uaf.c | 52 char path[128]; variable 56 strcpy(path, "/tmp/aio_fsync_uaf.XXXXXX"); 57 T_EXPECT_POSIX_SUCCESS(fd = mkstemp(path), "mkstemp"); 58 T_EXPECT_POSIX_SUCCESS(unlink(path), "unlink");
|
| /xnu-11215/libsyscall/wrappers/unix03/ |
| H A D | chmod.c | 32 extern int __chmod(const char *path, mode_t mode); 41 chmod(const char *path, mode_t mode) in chmod() argument 43 int res = __chmod(path, mode); in chmod() 49 res = __chmod(path, mode ^ S_ISGID); in chmod() 55 res = __chmod(path, mode ^ S_ISUID); in chmod() 61 res = __chmod(path, mode ^ (S_ISUID | S_ISGID)); in chmod()
|
| /xnu-11215/libkdd/kdd.xcodeproj/ |
| H A D | project.pbxproj | 197 …swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sour… 198 …o.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourc… 203 …in.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = kdd_main.m; sourc… 205 …o.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourc… 207 …o.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourc… 260 …* kdd.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = kdd.h; sourceTree… 261 …dd.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = kdd.m; sourceTree… 278 …ckshot-sample-aot */ = {isa = PBXFileReference; lastKnownFileType = file; path = "stackshot-sample… 414 path = tests; 423 path = kdd.framework; [all …]
|
| /xnu-11215/tools/lldbmacros/core/ |
| H A D | xnu_lldb_init.py | 26 return os.path.dirname(str(s.name)) 46 new_path = os.path.expanduser(new_path) 47 new_path = os.path.normpath(new_path) 58 new_path = new_path + os.path.sep + projpath 146 builtinkexts_path = os.path.join(os.path.dirname(self_path), "lldbmacros", "builtinkexts") 157 script = os.path.join(builtinkexts_path, kextdir, script_name)
|
| H A D | lldbwrap.py | 559 def _findFieldOffsetByPath(self, path): argument 565 key = path[1:] if path[0] == '.' else path 604 def xContainerOfTransform(self, path): argument 617 offs = self.xGetFieldOffset(path) 775 def GetValueForExpressionPath(self, path): argument 1039 def xGetScalarByPath(self, path): argument 1042 v = self.rawGetValueForExpressionPath(path) 1075 def xGetIntegerByPath(self, path): argument 1107 def xGetPointeeByPath(self, path): argument 1141 def xGetLoadAddressByPath(self, path): argument [all …]
|
| /xnu-11215/bsd/sys/ |
| H A D | imageboot.h | 46 int imageboot_read_file_pageable(const char *path, void **bufp, size_t *bufszp); /* use kmem_fr… 47 int imageboot_read_file(const char *path, void **bufp, size_t *bufszp, off_t *fsizep); 48 int imageboot_read_file_from_offset(const char *path, off_t offset, void **bufp, size_t *bufszp… 51 imgboot_get_image_file(const char *path, off_t *fsize, int *errp);
|