| /xnu-8796.121.2/tools/tests/personas/ |
| H A D | persona_test_run_src.sh | 155 local file="${TMPDIR}/plookup" 157 ${PERSONA_MGR} lookup ${largs} > "${file}" 160 _ID=$(cat "${file}" | grep "+id: " | head -1 | sed 's/.*+id:[ ]*\([0-9][0-9]*\).*/\1/') 163 local type=$(cat "${file}" | grep "+type: " | head -1 | sed 's/.*+type:[ ]*\([0-9][0-9]*\).*/\1/') 180 _LOGIN=$(cat "${file}" | grep "+login: " | head -1 | sed 's/.*+login:[ ]*"\([^"]*\)".*/\1/') 196 local file=$1 208 local cpid="$(cat "$file" | grep "Child: PID:" | sed 's/.*Child: PID:\([0-9][0-9]*\).*/\1/')" 212 …l=( $(cat "$file" | grep "Child: Persona:" | sed 's/.*Child: Persona: \([0-9][0-9]*\) (err:\([0-9]… 224 …l=( $(cat "$file" | grep "Child: UID:" | sed 's/.*UID:\([0-9][0-9]*\), GID:\([0-9][0-9]*\).*/\1 \2… 261 local file="child.${pna_id}.u$uid" [all …]
|
| /xnu-8796.121.2/tools/lldbmacros/core/ |
| H A D | syntax_checker.py | 26 print("Error: Unknown arguments", file=sys.stderr) 31 print("Error: Cannot recognize %s as a file" % fname, file=sys.stderr) 43 print("Error: Found a TAB character at %s:%d" % (fname, lineno), file=sys.stderr) 46 print("Error: Found a non ascii character at %s:%d" % (fname, lineno), file=sys.stderr) 49 … print("Error: Syntax check failed. Please fix the errors and try again.", file=sys.stderr) 53 with open(fname, 'r') as file: 54 source = file.read() + '\n' 57 print(str(exc), file=sys.stderr) 58 … print("Error: Compilation failed. Please fix the errors and try again.", file=sys.stderr)
|
| /xnu-8796.121.2/SETUP/config/ |
| H A D | mkheaders.c | 110 char *file, *name; in do_header() local 118 file = toheader(hname); in do_header() 120 inf = fopen(file, "r"); in do_header() 123 (void) unlink(file); in do_header() 124 outf = fopen(file, "w"); in do_header() 126 perror(file); in do_header() 131 file = path("meta_features.h"); in do_header() 132 outf = fopen(file, "a"); in do_header() 134 perror(file); in do_header() 186 unlink(file); in do_header() [all …]
|
| H A D | openp.c | 58 int openp(const char *fpath, char *file, char *complete, int flags, int mode); 79 openp(const char *fpath, char *file, char *complete, int flags, int mode) in openp() argument 83 if (searchp(fpath, file, complete, func) < 0) { in openp() 90 fopenp(const char *fpath, char *file, char *complete, const char *ftype) in fopenp() argument 93 if (searchp(fpath, file, complete, ffunc) < 0) { in fopenp()
|
| H A D | searchp.c | 68 searchp(const char *spath, char *file, char *fullname, int (*func)(char *)) in searchp() argument 74 nextpath = ((*file == '/') ? "" : spath); in searchp() 81 if (nextchar != nextpath && *file) { in searchp() 86 nextchar = file; /* append file */ in searchp()
|
| H A D | config.h | 117 FILE *fopenp(const char *fpath, char *file, char *complete, const char *ftype); 137 char *path(const char *file); 174 int searchp(const char *spath, char *file, char *fullname, int (*func)(char *));
|
| H A D | main.c | 217 path(const char *file) in path() argument 222 strlen(file) + in path() 225 (void) sprintf(cp, "%s/%s/%s", object_directory, build_directory, file); in path()
|
| /xnu-8796.121.2/libkern/kxld/ |
| H A D | kxld_util.c | 55 static void unswap_macho_32(u_char *file, enum NXByteOrder host_order, 57 static void unswap_macho_64(u_char *file, enum NXByteOrder host_order, 283 validate_and_swap_macho_32(u_char *file, u_long size in validate_and_swap_macho_32() argument 290 struct mach_header *mach_hdr = (struct mach_header *) ((void *) file); in validate_and_swap_macho_32() 306 check(file); in validate_and_swap_macho_32() 343 load_hdr = (struct load_command *) ((void *) (file + offset)); in validate_and_swap_macho_32() 405 relocs = (struct relocation_info *) ((void *) (file + sects[j].reloff)); in validate_and_swap_macho_32() 437 symtab = (struct nlist *) ((void *) (file + symtab_hdr->symoff)); in validate_and_swap_macho_32() 464 validate_and_swap_macho_64(u_char *file, u_long size in validate_and_swap_macho_64() argument 471 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) file); in validate_and_swap_macho_64() [all …]
|
| /xnu-8796.121.2/libkern/libkern/ |
| H A D | zlib.h | 1143 ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy)); 1151 ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len)); 1159 ZEXTERN int ZEXPORT gzwrite OF((gzFile file, 1167 ZEXTERN int ZEXPORTVA gzprintf OF((gzFile file, const char *format, ...)); 1180 ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s)); 1187 ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len)); 1196 ZEXTERN int ZEXPORT gzputc OF((gzFile file, int c)); 1202 ZEXTERN int ZEXPORT gzgetc OF((gzFile file)); 1208 ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file)); 1218 ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush)); [all …]
|
| /xnu-8796.121.2/osfmk/ipc/ |
| H A D | mig_log.c | 103 char *file, in MigEventTracer() argument 109 size, kpd, retcode, ports, oolports, ool, file, line); in MigEventTracer() 119 char *file, in MigEventErrors() argument 123 printf("%d|%d|%d -- %s %d\n", who, what, *(int *)par, file, line); in MigEventErrors() 125 printf("%d|%d|%s -- %s %d\n", who, what, (char *)par, file, line); in MigEventErrors()
|
| /xnu-8796.121.2/osfmk/corecrypto/ |
| H A D | cc_macros.h | 56 cc_strstr(const char *file) in cc_strstr() argument 59 (void) file; in cc_strstr() 62 char *p = strstr(file, cc_char); in cc_strstr() 70 #define __CC_DEBUG_REQUIRE_MESSAGE(name, assertion, label, message, file, line, value) \ argument 71 {char *___t = cc_strstr(file); cc_printf( "require: %s, %s%s:%d\n", assertion, (message!=0) ? messa…
|
| /xnu-8796.121.2/EXTERNAL_HEADERS/corecrypto/ |
| H A D | cc_macros.h | 31 CC_UNUSED static char *cc_strstr(const char *file) { in cc_strstr() argument 33 (void) file; in cc_strstr() 36 char *p=strstr(file, cc_char); in cc_strstr() 42 #define __CC_DEBUG_REQUIRE_MESSAGE(name, assertion, label, message, file, line, value) \ argument 43 {char *___t = cc_strstr(file); cc_printf( "require: %s, %s%s:%d\n", assertion, (message!=0) ? messa…
|
| /xnu-8796.121.2/tests/ |
| H A D | poll.c | 55 int file, dir, pipes[2]; variable 62 file = open(LAUNCHD_PATH, O_RDONLY | O_NONBLOCK); 63 T_QUIET; T_ASSERT_POSIX_SUCCESS(file, "open(%s)", LAUNCHD_PATH); 75 pfd[0].fd = file; pfd[0].revents = 0; 85 pfd[1].fd = file; pfd[1].revents = 0; 93 pfd[0].fd = file; pfd[0].revents = 0; 102 pfd[0].fd = file; pfd[0].revents = 0;
|
| H A D | spawn_exec_failure.c | 25 FILE *file = popen(cmd, "r"); in __run_cmd() local 26 T_QUIET; T_WITH_ERRNO; T_ASSERT_NOTNULL(file, "%s (cmd = %s)", error, cmd); in __run_cmd() 27 pclose(file); in __run_cmd()
|
| /xnu-8796.121.2/ |
| H A D | README.md | 140 2. Copy exiting boot configurations to alternate file 173 How to install a new header file from XNU 193 The directory containing the header file should have a Makefile that 195 If you are adding the first header file in a directory, you will need to 198 Add your header file to the correct file list depending on where you want 200 from each file list are - 202 a. `DATAFILES` : To make header file available in user level - 206 b. `DRIVERKIT_DATAFILES` : To make header file available to DriverKit userspace drivers - 209 c. `PRIVATE_DATAFILES` : To make header file available to Apple internal in 213 d. `EMBEDDED_PRIVATE_DATAFILES` : To make header file available in user [all …]
|
| /xnu-8796.121.2/bsd/sys/ |
| H A D | kernel_types.h | 52 struct file; 53 typedef struct file * file_t; 54 __CCT_DECLARE_CONSTRAINED_PTR_TYPES(struct file, file); 132 typedef struct file * file_t; 133 __CCT_DECLARE_CONSTRAINED_PTR_TYPES(struct file, file);
|
| /xnu-8796.121.2/config/ |
| H A D | newvers.pl | 165 my $file; 166 foreach $file (@ARGV) { 167 print "newvers.pl: Stamping version \"$VERSION_LONG\" into \"$file\" ..."; 168 my $data = &ReadFile($file); 183 &WriteFile($file, $data);
|
| /xnu-8796.121.2/tools/ |
| H A D | symbolify.py | 22 def nm(file): argument 23 cmd = "nm %s" % file 28 def __init__(self, file, min_width=16): argument 30 self.symbols = [parse_nm_output(l) for l in nm(file)]
|
| /xnu-8796.121.2/osfmk/mach/ |
| H A D | mach_notify.defs | 6 * This file contains Original Code and/or Modifications of Original Code 8 * Version 2.0 (the 'License'). You may not use this file except in 16 * http://www.opensource.apple.com/apsl/ and read it before using this file. 29 * The mach/notify.h file is hand-crafted. 32 * routines to send Mach notifications. This file exists simply to give
|
| H A D | clock_reply.defs | 6 * This file contains Original Code and/or Modifications of Original Code 8 * Version 2.0 (the 'License'). You may not use this file except in 16 * http://www.opensource.apple.com/apsl/ and read it before using this file. 34 * file defines the clock reply interface.
|
| H A D | clock_priv.defs | 6 * This file contains Original Code and/or Modifications of Original Code 8 * Version 2.0 (the 'License'). You may not use this file except in 16 * http://www.opensource.apple.com/apsl/ and read it before using this file. 34 * file defines the clock request interface.
|
| /xnu-8796.121.2/libsa/conf/ |
| H A D | Makefile.arm64 | 7 $(foreach file,$(OBJS),$(eval $(file)_CFLAGS_ADD += $(CFLAGS_NOLTO_FLAG)))
|
| H A D | Makefile.arm | 6 $(foreach file,$(OBJS),$(eval $(file)_CFLAGS_ADD += $(CFLAGS_NOLTO_FLAG)))
|
| H A D | Makefile.x86_64 | 7 $(foreach file,$(OBJS),$(eval $(file)_CFLAGS_ADD += $(CFLAGS_NOLTO_FLAG)))
|
| /xnu-8796.121.2/tools/tests/perf_index/PerfIndex_COPS_Module/ |
| H A D | Prefix.pch | 4 // The contents of this file are implicitly included at the beginning of every source file.
|