/darwin-on-arm/xnu/libsyscall/wrappers/unix03/ |
H A D | fchmod.c | 32 extern int __fchmod(int fd, mode_t mode); 41 fchmod(int fd, mode_t mode) argument 43 int res = __fchmod(fd, mode); 48 res = __fchmod(fd, mode ^ S_ISGID); 53 res = __fchmod(fd, mode ^ S_ISUID); 58 res = __fchmod(fd, mode ^ (S_ISUID | S_ISGID));
|
/darwin-on-arm/xnu/EXTERNAL_HEADERS/corecrypto/ |
H A D | ccrng_system.h | 17 int fd; member in struct:ccrng_system_state
|
/darwin-on-arm/xnu/tools/tests/libMicro/apple/ |
H A D | lmbench_openclose.c | 81 int fd; local 96 fd = open(optf, 0); 97 if (fd == -1) { 100 close(fd);
|
H A D | lmbench_bw_mmap_rd.c | 87 int fd; member in struct:__anon1358 281 state->fd = -1; 300 CHK(state->fd = open(state->filename, 0)); 302 MMAP_FLAGS, state->fd, 0)); 317 int fd; local 323 CHK(fd = open(state->filename, 0)); 324 CHK(p = mmap(0, state->nbytes, PROT_READ, MMAP_FLAGS, fd, 0)); 326 close(fd); 343 if (state->fd >= 0) close(state->fd); [all...] |
H A D | lmbench_select_file.c | 306 int N, fid, fd; local 344 fd = dup(fid); 345 //(void) fprintf(stderr, "benchmark_initworker: dup result is %i\n",fd); 348 if (fd == -1) break; 349 if (fd > ts->max) 350 ts->max = fd; 351 FD_SET(fd, &(ts->set));
|
H A D | lm_null_call.c | 73 int fd; member in struct:__anon1355
|
H A D | lmbench_lat_sig_prot.c | 221 int fd; local 226 fd = open(ts->fname, 0); 227 (void) fprintf(stderr, "benchmark_initworker: open result is %i\n",fd); 230 ts->where = mmap(0,4096, PROT_READ, MAP_SHARED, fd, 0);
|
/darwin-on-arm/xnu/tools/tests/libMicro/ |
H A D | fcntl_ndelay.c | 50 static int fd = -1; variable 66 fd = socket(AF_INET, SOCK_STREAM, 0); 67 if (fd == -1) { 83 if (fcntl(fd, F_GETFL, &flags) < 0) 87 if (fcntl(fd, F_SETFL, &flags) < 0) 90 if (fcntl(fd, F_GETFL, &flags) < 0) 94 if (fcntl(fd, F_SETFL, &flags) < 0)
|
H A D | fcntl.c | 46 static int fd = -1; variable 78 if ((fd = open(optf, O_RDONLY)) == -1) { 93 if (fcntl(fd, F_GETFL, &flags) == -1)
|
H A D | pwrite.c | 52 static int fd = -1; variable 95 fd = open(optf, O_WRONLY); 96 if (fd == -1) { 137 if (pwrite(fd, ts->ts_buf, opts, 0) != opts) {
|
H A D | msync.c | 123 int fd; local 125 if ((fd = open(optf, O_RDWR)) < 0) { 130 (void) ftruncate(fd, optl); 134 fd, 0L)) == MAP_FAILED) { 136 (void) close(fd);
|
H A D | dup.c | 45 static int fd; variable 86 fd = (open(optf, O_RDONLY)); 118 ts->ts_fds[i] = dup(fd);
|
H A D | pread.c | 52 static int fd = -1; variable 95 fd = open(optf, O_RDONLY); 121 if (pread(fd, ts->ts_buf, opts, 0) != opts) {
|
/darwin-on-arm/xnu/libsyscall/wrappers/cancelable/ |
H A D | fcntl-base.c | 35 fcntl(int fd, int cmd, ...) argument 62 return (__FCNTL(fd, cmd, arg));
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | filedesc.h | 141 extern void fdrelse(proc_t p, int fd); 143 #define fdfile(p, fd) \ 144 (&(p)->p_fd->fd_ofiles[(fd)]) 145 #define fdflags(p, fd) \ 146 (&(p)->p_fd->fd_ofileflags[(fd)])
|
H A D | file_internal.h | 191 int fp_drop(struct proc *p, int fd, struct fileproc *fp, int locked); 192 int fp_drop_written(proc_t p, int fd, struct fileproc *fp); 193 int fp_drop_event(proc_t p, int fd, struct fileproc *fp); 194 int fp_free(struct proc * p, int fd, struct fileproc * fp); 196 int fp_getfkq(struct proc *p, int fd, struct fileproc **resultfp, struct kqueue **resultkq); 198 int fp_getfpsem(struct proc *p, int fd, struct fileproc **resultfp, struct psemnode **resultpsem); 200 int fp_getfpshm(struct proc *p, int fd, struct fileproc **resultfp, struct pshmnode **resultpshm); 202 int fp_getfpipe(struct proc *p, int fd, struct fileproc **resultfp, struct pipe **resultpipe); 204 int fp_getfatalk(struct proc *p, int fd, struct fileproc **resultfp, struct atalk **resultatalk); 206 int fp_getfvp(struct proc *p, int fd, struc [all...] |
H A D | xattr.h | 84 ssize_t fgetxattr(int fd, const char *name, void *value, size_t size, u_int32_t position, int options); 88 int fsetxattr(int fd, const char *name, const void *value, size_t size, u_int32_t position, int options); 92 int fremovexattr(int fd, const char *name, int options); 96 ssize_t flistxattr(int fd, char *namebuff, size_t size, int options);
|
H A D | poll.h | 98 int fd; member in struct:pollfd
|
/darwin-on-arm/xnu/bsd/netat/ |
H A D | sys_dep.c | 117 (*_ATgetmsg)(uap->fd, uap->ctlptr, uap->datptr, 143 _ATputmsg(uap->fd, uap->ctlptr, uap->datptr, 169 _ATPsndreq(uap->fd, uap->buf, uap->len, 195 _ATPsndrsp(uap->fd, uap->respbuff, 221 _ATPgetreq(uap->fd, uap->buf, uap->buflen, 247 _ATPgetrsp(uap->fd, (struct atpBDS *)uap->bdsp, &err, proc); 275 int err, fd; local 281 if ((err = falloc_locked(proc, &fp, &fd, vfs_context_current(), 1)) != 0) { 294 procfdtbl_releasefd(proc, fd, NULL); 295 *retfd = fd; [all...] |
/darwin-on-arm/xnu/SETUP/setsegname/ |
H A D | setsegname.c | 53 writeFile(int fd, const void * data, size_t length) argument 57 if (length != (size_t)write(fd, data, length)) { 74 int fd; local 81 if ((fd = open(path, O_RDONLY)) == -1) { 85 if (fstat(fd, &stat_buf) == -1) { 102 fd, 0 /* offset */); 114 if (-1 != fd) { 115 close(fd); 238 int fd = open(output_name, O_WRONLY|O_CREAT|O_TRUNC, 0755); local 239 if (-1 == fd) { [all...] |
/darwin-on-arm/xnu/bsd/miscfs/devfs/ |
H A D | devfs_fdesc_support.c | 69 * /dev/fd Filesystem 117 static int fdesc_attr(int fd, struct vnode_attr *vap, vfs_context_t a_context); 151 dev_add_entry("fd", rootdir, DEV_DEVFD, NULL, NULL, NULL, &direntp); 172 char zero[] = "fd/0"; 173 char one[] = "fd/1"; 174 char two[] = "fd/2"; 211 struct fdescnode *fd; local 220 for (fd = fc->lh_first; fd != 0; fd 307 int fd; local 385 fdesc_attr(int fd, struct vnode_attr *vap, vfs_context_t a_context) argument 462 unsigned fd; local 494 unsigned fd; local 646 struct fdescnode *fd = VTOFDESC(vp); local [all...] |
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/ |
H A D | content_protection_test.c | 23 #define GET_PROT_CLASS(fd) fcntl((fd), F_GETPROTECTIONCLASS) 24 #define SET_PROT_CLASS(fd, prot_class) fcntl((fd), F_SETPROTECTIONCLASS, (prot_class)) 354 int fd = -1; local 420 fd = open(filepath, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC); 422 if (fd == -1) 432 old_prot_class = GET_PROT_CLASS(fd); 441 if (SET_PROT_CLASS(fd, new_prot_class)) 449 if (SET_PROT_CLASS(fd, PROTECTION_CLASS_ [all...] |
/darwin-on-arm/xnu/libsyscall/mach/ |
H A D | panic.c | 64 int write(int fd, const char* cbuf, int nbyte);
|
H A D | fprintf_stderr.c | 41 int write(int fd, const char* cbuf, int nbyte);
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_descrip.c | 139 static int close_internal_locked(struct proc *p, int fd, struct fileproc *fp, int flags); 150 static void _fdrelse(struct proc * p, int fd); 292 procfdtbl_reservefd(struct proc * p, int fd) argument 294 p->p_fd->fd_ofiles[fd] = NULL; 295 p->p_fd->fd_ofileflags[fd] |= UF_RESERVED; 299 procfdtbl_markclosefd(struct proc * p, int fd) argument 301 p->p_fd->fd_ofileflags[fd] |= (UF_RESERVED | UF_CLOSING); 305 procfdtbl_releasefd(struct proc * p, int fd, struct fileproc * fp) argument 308 p->p_fd->fd_ofiles[fd] = fp; 309 p->p_fd->fd_ofileflags[fd] 317 procfdtbl_waitfd(struct proc * p, int fd) argument 325 procfdtbl_clearfd(struct proc * p, int fd) argument 352 _fdrelse(struct proc * p, int fd) argument 373 fd_rdwr( int fd, enum uio_rw rw, uint64_t base, int64_t len, enum uio_seg segflg, off_t offset, int io_flg, int64_t *aresid) argument 674 int fd = uap->fd; local 2249 int fd = uap->fd; local 2293 close_internal_locked(proc_t p, int fd, struct fileproc *fp, int flags) argument 2419 fstat1(proc_t p, int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size, int isstat64) argument 2671 int fd = uap->fd; local 2890 fdrelse(proc_t p, int fd) argument 2919 fdgetf_noref(proc_t p, int fd, struct fileproc **resultfp) argument 2963 fp_getfvp(proc_t p, int fd, struct fileproc **resultfp, struct vnode **resultvp) argument 3021 fp_getfvpandvid(proc_t p, int fd, struct fileproc **resultfp, struct vnode **resultvp, uint32_t *vidp) argument 3078 fp_getfsock(proc_t p, int fd, struct fileproc **resultfp, struct socket **results) argument 3133 fp_getfkq(proc_t p, int fd, struct fileproc **resultfp, struct kqueue **resultkq) argument 3190 fp_getfpshm(proc_t p, int fd, struct fileproc **resultfp, struct pshmnode **resultpshm) argument 3257 fp_getfpsem(proc_t p, int fd, struct fileproc **resultfp, struct psemnode **resultpsem) argument 3312 fp_getfpipe(proc_t p, int fd, struct fileproc **resultfp, struct pipe **resultpipe) argument 3372 fp_getfatalk(proc_t p, int fd, struct fileproc **resultfp, struct atalk **resultatalk) argument 3427 fp_lookup(proc_t p, int fd, struct fileproc **resultfp, int locked) argument 3472 fp_drop_written(proc_t p, int fd, struct fileproc *fp) argument 3508 fp_drop_event(proc_t p, int fd, struct fileproc *fp) argument 3548 fp_drop(proc_t p, int fd, struct fileproc *fp, int locked) argument 3619 file_vnode(int fd, struct vnode **vpp) argument 3680 file_vnode_withvid(int fd, struct vnode **vpp, uint32_t * vidp) argument 3745 file_socket(int fd, struct socket **sp) argument 3792 file_flags(int fd, int *flags) argument 3849 file_drop(int fd) argument 4689 fp_free(proc_t p, int fd, struct fileproc * fp) argument 4727 int fd = uap->fd; local 4803 int fd = uap->fd; local 4899 int fd; local [all...] |