Searched refs:file (Results 1 - 25 of 91) sorted by relevance

1234

/darwin-on-arm/xnu/SETUP/config/
H A Dsearchp.c7 * Reserved. This file contains Original Code and/or Modifications of
9 * Source License Version 1.0 (the 'License'). You may not use this file
12 * this file.
24 /* searchp -- search through pathlist for file
26 * Usage: p = searchp (path,file,fullname,func);
27 * char *p, *path, *file, *fullname;
31 * by colons, prepending each pathname to "file". The resulting
39 * If "file" begins with a slash, it is assumed to be an
68 searchp(const char *spath, char *file, char *fullname, int (*func)(char *)) argument
74 nextpath = ((*file
[all...]
H A Dopenp.c7 * Reserved. This file contains Original Code and/or Modifications of
9 * Source License Version 1.0 (the 'License'). You may not use this file
12 * this file.
24 /* openp, fopenp -- search pathlist and open file
27 * i = openp (path,file,complete,flags,mode)
28 * f = fopenp (path,file,complete,type)
31 * char *path,*file,*complete,*type;
33 * Openp searches for "file" in the pathlist "path";
34 * when the file is found and can be opened by open()
36 * is copied into "complete" and openp returns the file
79 openp(const char *fpath, char *file, char *complete, int flags, int mode) argument
88 fopenp(const char *fpath, char *file, char *complete, const char *ftype) argument
[all...]
H A Dmkheaders.c7 * Reserved. This file contains Original Code and/or Modifications of
9 * Source License Version 1.0 (the 'License'). You may not use this file
12 * this file.
128 * file (e.g. "sd" and "sc").
131 * in the hname .h file.
143 * Scan the file list to see if name is needed to bring in a file.
160 char *file, *name; local
168 file = toheader(hname);
170 inf = fopen(file, "
[all...]
H A Dmain.c7 * Reserved. This file contains Original Code and/or Modifications of
9 * Source License Version 1.0 (the 'License'). You may not use this file
12 * this file.
224 * returns EOF on end of file
260 * returns EOF on end of file
287 path(const char *file) argument
292 strlen(file)+
295 (void) sprintf(cp, "%s/%s/%s", object_directory, build_directory, file);
/darwin-on-arm/xnu/tools/tests/kqueue_tests/
H A DMakefile1 all: file timer
3 file:
/darwin-on-arm/xnu/osfmk/ipc/
H A Dmig_log.c6 * 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.
103 char *file,
109 size, kpd, retcode, ports, oolports, ool, file, line);
118 char *file,
122 printf("%d|%d|%d -- %s %d\n", who, what, *(int *)par, file, line);
124 printf("%d|%d|%s -- %s %d\n", who, what, (char *)par, file, line);
93 MigEventTracer( mig_who_t who, mig_which_event_t what, mach_msg_id_t msgh_id, unsigned int size, unsigned int kpd, unsigned int retcode, unsigned int ports, unsigned int oolports, unsigned int ool, char *file, unsigned int line) argument
114 MigEventErrors( mig_who_t who, mig_which_error_t what, void *par, char *file, unsigned int line) argument
/darwin-on-arm/xnu/bsd/dev/random/YarrowCoreLib/src/
H A Dassertverify.h6 * 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.
35 Purpose: Common header file containing handy macros and definitions used
39 /* These header functions were copied from the cmnhdr.h file that accompanies
47 #define chASSERTFAIL(file,line,expr)
56 #define chASSERTFAIL(file,line,expr) { \
58 wsprintf(sz, __TEXT("File %hs, line %d : %hs"), file, line, expr); \
/darwin-on-arm/xnu/bsd/sys/
H A Dmach_swapon.h6 * 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.
38 #warning obsolete header file! Please delete the include from your sources.
41 #define MS_PREFER 0x1 /* This device/file is preferred */
H A Dkernel_types.h6 * 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.
51 struct file;
52 typedef struct file * file_t;
104 typedef struct file * file_t;
H A Dfiledesc.h6 * 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.
91 struct fileproc **fd_ofiles; /* file structures for open files */
92 char *fd_ofileflags; /* per-process open file flags */
97 int fd_freefile; /* approx. next free file */
98 u_short fd_cmask; /* mask for file creation */
130 * Storage required per open file descriptor.
132 #define OFILESIZE (sizeof(struct file *) + sizeof(char))
148 extern void ffree(struct file *f
[all...]
H A Dmake_posix_availability.sh7 # This file contains Original Code and/or Modifications of Original Code
9 # Version 2.0 (the 'License'). You may not use this file except in
12 # file.
44 * This file contains Original Code and/or Modifications of Original Code
46 * Version 2.0 (the 'License'). You may not use this file except in
54 * http://www.opensource.apple.com/apsl/ and read it before using this file.
/darwin-on-arm/xnu/bsd/miscfs/devfs/
H A Dreproto.sh16 " * The contents of this file constitute Original Code as defined in and\n" .
18 " * \"License\"). You may not use this file except in compliance with the\n" .
20 " * http://www.apple.com/publicsource and read it before using this file.\n" .
40 while (\$file = <*.c>) {
41 if(open(F, \$file) == 0) {
42 warn "Cannot open \$file.\n";
/darwin-on-arm/xnu/libkern/zlib/
H A Dgzio.c6 * 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.
32 * Compile this file with -DNO_GZCOMPRESS to avoid the compression code.
76 #define ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */
79 #define ORIG_NAME 0x08 /* bit 3 set: original file name present */
80 #define COMMENT 0x10 /* bit 4 set: file comment present */
86 int z_eof; /* set if end of input file */
87 FILE *file; /* .gz file */ member in struct:gz_stream
630 gzprintf(gzFile file, const char *format, ...) argument
[all...]
/darwin-on-arm/xnu/tools/tests/libMicro/
H A Dfile_lock.c4 * The contents of this file are subject to the terms
6 * (the "License"). You may not use this file except
16 * HEADER in each file and include the License file at
32 * test file locking
44 static int file; variable
55 return (fcntl(file, F_SETLKW, &fl) == -1);
67 return (fcntl(file, F_SETLK, &fl) == -1);
77 file = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
79 if (file
[all...]
H A Dcascade_fcntl.c4 * The contents of this file are subject to the terms
6 * (the "License"). You may not use this file except
16 * HEADER in each file and include the License file at
70 static int file; variable
83 " [-d directory for temp file (default %s)]\n"
114 file = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
115 if (file == -1) {
123 if (ftruncate(file, nlocks * 3) == -1) {
139 return (fcntl(file, F_SETLK
[all...]
/darwin-on-arm/xnu/osfmk/kern/
H A Dassert.h6 * 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.
74 const char *file,
79 #define Assert(file, line, ex) (Assert)("", line, "")
/darwin-on-arm/xnu/osfmk/mach/
H A Dmig_log.h6 * 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.
68 char *file,
81 char *file,
/darwin-on-arm/xnu/libkern/libkern/
H A Dzlib.h6 * 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.
78 enough (for example if an input file is mmap'ed), or can be done by
96 file compression on file systems, has a larger header than zlib to maintain
139 int xflags; /* extra flags (not used when writing a gzip file) */
144 Bytef *name; /* pointer to zero-terminated file name or Z_NULL */
150 when writing a gzip file) */
244 not compatible with the zlib.h header file use
[all...]
/darwin-on-arm/xnu/osfmk/kdp/
H A Dkdp_core.h6 * 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.
46 #define KDP_EOF 7 /* signal end of file */
71 #define ENOTFOUND 1 /* file not found */
76 #define EEXISTS 6 /* file already exists */
79 #define CORE_REMOTE_PORT 1069 /* hardwired, we can't really query the services file */
83 void kdp_set_dump_info(const uint32_t flags, const char *file, const char *destip,
85 void kdp_get_dump_info(uint32_t *flags, char *file, char *destip, char *routerip,
/darwin-on-arm/xnu/SETUP/md/
H A Dmd.c12 * option. There is one line in the file for every #include *
16 * list. It also sorts the file names and "fills" them to a 78 *
19 * information, so the .d file can be thrown away (-- -d option) *
21 * information in the makefile is sorted by .o file name and it *
30 * -d delete the .d file after it is processed *
32 * even though the makefile is more recent than the .n file *
36 * -u like -m above, but the file will be created if necessary *
37 * -o specify an output file for the dependencies other than a *
43 * c show file contents *
55 * If specified -u file doe
595 scan_mak(FILE *makin, FILE *makout, char *file) argument
[all...]
/darwin-on-arm/xnu/tools/
H A Dsymbolify.py20 def nm(file):
21 cmd = "nm %s" % file
26 def __init__(self, file, min_width=16):
28 self.symbols = [parse_nm_output(l) for l in nm(file)]
36 last = (0, ' ', '<start of file>')
79 print "using kernel file '%s'" % KERNEL_FILE
/darwin-on-arm/xnu/libkern/kxld/
H A Dkxld_util.c6 * 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.
51 static void unswap_macho_32(u_char *file, enum NXByteOrder host_order,
53 static void unswap_macho_64(u_char *file, enum NXByteOrder host_order,
267 validate_and_swap_macho_32(u_char *file, u_long size argument
274 struct mach_header *mach_hdr = (struct mach_header *) ((void *) file);
290 check(file);
293 /* Verify that the file is big enough for the mach header */
314 * (which is the only file o
438 validate_and_swap_macho_64(u_char *file, u_long size , enum NXByteOrder host_order ) argument
607 unswap_macho(u_char *file, enum NXByteOrder host_order, enum NXByteOrder target_order) argument
624 unswap_macho_32(u_char *file, enum NXByteOrder host_order, enum NXByteOrder target_order) argument
680 unswap_macho_64(u_char *file, enum NXByteOrder host_order, enum NXByteOrder target_order) argument
[all...]
/darwin-on-arm/xnu/config/
H A Dnewvers.pl4 # build time. Each argument provided on the command line is the path to a file
5 # that needs to be updated with the current verison information. The file
7 # Each file is read, and all occurrences of the following strings are replaced
35 die "newvers: Can't read file \"$fileName\"\n";
41 open (OUT, ">$fileName") or die "newvers: Can't write file \"$fileName\"\n";
115 my $file;
116 foreach $file (@ARGV) {
117 print "newvers.pl: Stamping version \"$VERSION_LONG\" into \"$file\" ...";
118 my $data = &ReadFile($file);
132 &WriteFile($file,
[all...]
/darwin-on-arm/xnu/tools/tests/libMicro/apple/
H A Dlm_null_call.c6 * 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.
74 char* file; member in struct:__anon1355
/darwin-on-arm/xnu/bsd/hfs/hfscommon/BTree/
H A DBTreeNodeReserve.c6 * 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.
58 struct vnode *nr_btvp; /* b-tree file vnode */
116 BTReserveSpace(FCB *file, int operations, void* data) argument
125 btree = (BTreeControlBlockPtr)file->fcbBTCBPtr;
126 clumpsize = file->ff_clumpsize;
158 /* Try and reserve the last 5% of the disk space for file blocks. */
180 file->ff_clumpsize = freeblks * hfsmp->blockSize;
199 if (file
213 BTReleaseReserve(FCB *file, void* data) argument
[all...]

Completed in 58 milliseconds

1234