Searched refs:mode (Results 1 - 25 of 107) sorted by relevance

12345

/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dsysv_ipc.c80 ipcperm(kauth_cred_t cred, struct ipc_perm *perm, int mode) argument
90 if (mode & IPC_M)
93 mode >>= 3;
97 mode >>= 3;
101 if (mode & IPC_M)
104 return ((mode & perm->mode) == mode ? 0 : EACCES);
H A Dsysv_shm.c122 static int shmget_allocate_segment(struct proc *p, struct shmget_args *uap, int mode, int * retval);
123 static int shmget_existing(struct shmget_args *uap, int mode, int segnum, int * retval);
228 if ((shmsegs[i].u.shm_perm.mode & SHMSEG_ALLOCATED) &&
244 if ((shmseg->u.shm_perm.mode & (SHMSEG_ALLOCATED | SHMSEG_REMOVED))
265 shmseg->u.shm_perm.mode = SHMSEG_FREE;
291 (shmseg->u.shm_perm.mode & SHMSEG_REMOVED)) {
571 shmseg->u.shm_perm.mode =
572 (shmseg->u.shm_perm.mode & ~ACCESSPERMS) |
573 (inbuf.shm_perm.mode & ACCESSPERMS);
583 shmseg->u.shm_perm.mode |
605 shmget_existing(struct shmget_args *uap, int mode, int segnum, int *retval) argument
652 shmget_allocate_segment(struct proc *p, struct shmget_args *uap, int mode, int *retval) argument
759 int segnum, mode, error; local
[all...]
H A Dsysv_msg.c277 msqids[i].u.msg_perm.mode = 0;
495 msqptr->u.msg_perm.mode = (msqptr->u.msg_perm.mode & ~0777) |
496 (msqbuf.msg_perm.mode & 0777);
604 (msqptr->u.msg_perm.mode & MSG_LOCKED) == 0)
622 msqptr->u.msg_perm.mode = (msgflg & 0777);
762 if (msqptr->u.msg_perm.mode & MSG_LOCKED) {
811 if ((msqptr->u.msg_perm.mode & MSG_LOCKED) != 0) {
822 msqptr->u.msg_perm.mode |= MSG_LOCKED;
834 msqptr->u.msg_perm.mode
[all...]
H A Dtty_tty.c78 int cttyopen(dev_t dev, int flag, int mode, proc_t p);
87 cttyopen(__unused dev_t dev, int flag, __unused int mode, proc_t p) argument
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dip_ecn.c84 ip_ecn_ingress(mode, outer, inner)
85 int mode;
93 switch (mode) {
109 ip_ecn_egress(mode, outer, inner)
110 int mode;
117 switch (mode) {
130 ip6_ecn_ingress(mode, outer, inner)
131 int mode;
141 ip_ecn_ingress(mode, &outer8, &inner8);
147 ip6_ecn_egress(mode, oute
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dmp_events.h72 extern void i386_signal_cpu(int cpu, mp_event_t event, mp_sync_t mode);
73 extern void i386_signal_cpus(mp_event_t event, mp_sync_t mode);
H A Dacpi.c85 uint32_t mode; local
94 mode = hibernate_write_image();
96 if( mode == kIOHibernatePostWriteHalt )
102 else if( mode == kIOHibernatePostWriteRestart )
118 * If we're in 64-bit mode, drop back into legacy mode during sleep.
169 * Turn off VT, otherwise switching to legacy mode will fail
174 * If we're in 64-bit mode, drop back into legacy mode during sleep.
213 /* Re-enable mode (includin
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dipcomp_core.c168 deflate_common(m, md, lenp, mode)
172 int mode; /* 0: compress 1: decompress */
224 zs = mode ? &inflate_stream : &deflate_stream;
266 zerror = mode ? inflate(zs, Z_NO_FLUSH)
273 if (mode && !p && zs->avail_out != 0)
281 mode ? "de" : "", mode ? "in" : "de",
286 mode ? "de" : "", mode ? "in" : "de",
289 mode
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Ddirent.h143 #define IFTODT(mode) (((mode) & 0170000) >> 12)
H A Dipc.h125 mode_t mode; /* [XSI] Read/write permission */ member in struct:ipc_perm
145 mode_t mode; /* Read/Write permission */ member in struct:__ipc_perm_old
171 /* common mode bits */
H A Daio.h257 * Initiate a list of I/O requests with a single function call. The mode
260 * as the operations have been queued. If the mode argument is LIO_WAIT, the
263 * If the mode argument is LIO_NOWAIT, the function shall return immediately, and
268 int lio_listio( int mode,
H A Dfiledesc.h136 int indx, int dfd, int mode, int error);
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/random/
H A Drandomdev.h41 int random_close(dev_t dev, int flags, int mode, struct proc *pp);
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/
H A Dinstr_size.c90 uint_t mode = SIZE32; local
92 mode = (model == DATAMODEL_LP64) ? SIZE64 : SIZE32;
98 if (dtrace_disx86(&x, mode) != 0)
H A Ddis_tables.c87 uint_t it_always64:1; /* 64 bit when in 64 bit mode */
238 * "y" - means the operand size is always 64 bits in 64 bit mode
318 * this decodes the r_m field for mode's 0, 1, 2 in 16 bit mode
331 * This decodes 32 bit addressing mode r_m field for modes 0, 1, 2
344 * This decodes 64 bit addressing mode r_m field for modes 0, 1, 2
433 * "decode table" for 64 bit mode MOVSXD instruction (opcode 0x63)
1250 * Even in 64 bit mode, usually only 4 byte immediate operands are supported.
1264 #define REG_ONLY 3 /* mode to indicate a register operand (not memory) */
1327 * mode, registe
1330 dtrace_get_modrm(dis86_t *x, uint_t *mode, uint_t *reg, uint_t *r_m) argument
1345 dtrace_rex_adjust(uint_t rex_prefix, uint_t mode, uint_t *reg, uint_t *r_m) argument
1466 dtrace_get_operand(dis86_t *x, uint_t mode, uint_t r_m, int wbit, int opindex) argument
1718 uint_t mode = 0; /* mode value from ModRM byte */ local
3144 dtrace_disx86_str(dis86_t *dis, uint_t mode, uint64_t pc, char *buf, size_t buflen) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/
H A Dnvram.c54 nvclose(dev, flag, mode, pp)
56 int flag, mode;
59 return PEnvclose(dev,flag,mode,pp);
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/
H A Ddir.h139 #define IFTODT(mode) (((mode) & 0170000) >> 12)
H A Dufs_inode.c100 int mode, error = 0; local
123 mode = ip->i_mode;
126 ffs_vfree(vp, ip->i_number, mode);
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A DAltiAssist.s50 ; includes exception states, java mode, etc.
84 vor v1,v1,v0 ; Turn off Java mode
86 mtvscr v1 ; Set Java mode off
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ffs/
H A Dffs_extern.h138 int ffs_valloc(vnode_t dvp, mode_t mode, kauth_cred_t cred, vnode_t *vpp);
139 int ffs_vfree(struct vnode *vp, ino_t ino, int mode);
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_vnops.c164 * fmodep A pointer to an int containg the mode
395 // flag to the open mode so that this open won't count against
453 * is granted the rights called out in 'mode' against the vnode 'vp'.
460 vn_access(vnode_t vp, int mode, vfs_context_t context) argument
465 if (mode & VREAD)
467 if (mode & VWRITE)
469 if (mode & VEXEC)
879 u_short mode; local
927 mode = va.va_mode;
930 mode |
[all...]
/macosx-10.5.8/xnu-1228.15.4/libkern/
H A Dzlib.c175 # define F_OPEN(name, mode) \
176 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
193 # define fdopen(fd,mode) NULL /* No fdopen() */
207 # define fdopen(fd,mode) NULL /* No fdopen() */
222 # define F_OPEN(name, mode) fopen((name), (mode))
3382 /* mode */
3398 mode; /* current inflate mode */ member in struct:inflate_state
3400 /* mode dependen
3875 inflate_block_mode mode; /* current inflate_block mode */ member in struct:inflate_blocks_state
5026 inflate_codes_mode mode; /* current inflate_codes mode */ member in struct:inflate_codes_state
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/isofs/cd9660/
H A Dcd9660_rrip.h83 char mode [ISODCL ( 4, 11)]; /* 733 */ member in struct:__anon124
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/synthfs/
H A Dsynthfs_util.c92 mode_t mode, __unused proc_t p, enum vtype vtype, vnode_t *vpp)
122 sp->s_mode = mode;
208 int synthfs_new_directory(struct mount *mp, struct vnode *dp, const char *name, unsigned long nodeid, mode_t mode, struct proc *p, struct vnode **vpp) { argument
213 result = synthfs_newnode(mp, dp, name, nodeid, mode, p, VDIR, &vp);
91 synthfs_newnode(mount_t mp, vnode_t dp, const char *name, unsigned long nodeid, mode_t mode, __unused proc_t p, enum vtype vtype, vnode_t *vpp) argument
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dif_loop.c414 bpf_tap_mode mode,
421 if (mode == BPF_TAP_DISABLE) {
422 lo_statics[ifp->if_unit].bpf_mode = mode;
427 lo_statics[ifp->if_unit].bpf_mode = mode;
412 lo_set_bpf_tap( ifnet_t ifp, bpf_tap_mode mode, bpf_packet_func bpf_callback) argument

Completed in 108 milliseconds

12345