Home
last modified time | relevance | path

Searched refs:fmode (Results 1 – 25 of 36) sorted by relevance

12

/illumos-gate/usr/src/uts/common/syscall/
H A Dopen.c283 #define OPENMODE32(fmode) (((fmode) & (FSEARCH | FEXEC))? \ argument
284 (fmode) : (fmode) - FOPEN)
285 #define OPENMODE64(fmode) (OPENMODE32(fmode) | FOFFMAX) argument
287 #define OPENMODE(fmode) OPENMODE64(fmode) argument
289 #define OPENMODE(fmode) OPENMODE32(fmode) argument
296 openat(int fd, char *path, int fmode, int cmode) in openat() argument
302 open(char *path, int fmode, int cmode) in open() argument
304 return (openat(AT_FDCWD, path, fmode, cmode)); in open()
318 open64(char *path, int fmode, int cmode) in open64() argument
320 return (openat64(AT_FDCWD, path, fmode, cmode)); in open64()
[all …]
H A Dmknod.c59 mknodat(int fd, char *fname, mode_t fmode, dev_t dev) in mknodat() argument
70 if ((fmode & S_IFMT) == 0) in mknodat()
71 fmode |= S_IFREG; in mknodat()
76 if (((fmode & S_IFMT) != S_IFIFO) && secpolicy_sys_devices(CRED()) != 0) in mknodat()
81 vattr.va_type = IFTOVT(fmode); in mknodat()
82 vattr.va_mode = fmode & MODEMASK; in mknodat()
100 why = ((fmode & S_IFMT) == S_IFDIR) ? CRMKDIR : CRMKNOD; in mknodat()
112 mknod(char *fname, mode_t fmode, dev_t dev) in mknod() argument
114 return (mknodat(AT_FDCWD, fname, fmode, dev)); in mknod()
H A Daccess.c61 caccess(char *fname, int fmode, vnode_t *startvp) in caccess() argument
71 if (fmode & ~(E_OK|R_OK|W_OK|X_OK)) in caccess()
74 mode = ((fmode & (R_OK|W_OK|X_OK)) << 6); in caccess()
79 eok = (fmode & E_OK) || in caccess()
120 faccessat(int fd, char *fname, int fmode, int flag) in faccessat() argument
136 fmode &= ~E_OK; in faccessat()
138 fmode |= E_OK; in faccessat()
140 error = caccess(fname, fmode, startvp); in faccessat()
149 access(char *fname, int fmode) in access() argument
151 return (faccessat(AT_FDCWD, fname, fmode, 0)); in access()
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dsourcefilter.c42 socklen_t grouplen, uint32_t *fmode, uint_t *numsrc, in getsourcefilter() argument
86 *fmode = gf->gf_fmode; in getsourcefilter()
102 socklen_t grouplen, uint32_t fmode, uint_t numsrc, in setsourcefilter() argument
138 gf->gf_fmode = fmode; in setsourcefilter()
159 uint32_t *fmode, uint32_t *numsrc, struct in_addr *slist) in getipv4sourcefilter() argument
182 *fmode = imsf->imsf_fmode; in getipv4sourcefilter()
198 uint32_t fmode, uint32_t numsrc, struct in_addr *slist) in setipv4sourcefilter() argument
213 imsf->imsf_fmode = fmode; in setipv4sourcefilter()
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kutil.c73 tli_send(TIUSER *tiptr, mblk_t *bp, int fmode) in tli_send() argument
83 error = kstrputmsg(vp, bp, NULL, 0, 0, MSG_BAND | MSG_HOLDSIG, fmode); in tli_send()
88 tli_recv(TIUSER *tiptr, mblk_t **bp, int fmode) in tli_recv() argument
98 if (fmode & (FNDELAY|FNONBLOCK)) in tli_recv()
114 get_ok_ack(TIUSER *tiptr, int type, int fmode) in get_ok_ack() argument
127 if ((error = tli_recv(tiptr, &bp, fmode)) != 0) in get_ok_ack()
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c797 int fmode; local
802 fmode = SM_IO_RDONLY;
807 fmode = SM_IO_APPEND;
809 fmode = SM_IO_WRONLY;
814 fmode = SM_IO_RDWRTR;
816 fmode = SM_IO_APPENDRW;
818 fmode = SM_IO_RDWR;
823 fmode = 0;
836 (void *) &fd, fmode, NULL);
844 fn, fmode, omode, sff, sm_errstring(errno));
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dbf.c107 MODE_T fmode; local
115 fmode = ((struct bf_info *) info)->bi_fmode;
174 bfp->bf_filemode = fmode;
218 bfopen(char *filename, MODE_T fmode, size_t bsize, long flags) in bfopen() argument
221 bfopen(filename, fmode, bsize, flags) in bfopen()
223 MODE_T fmode;
241 fmode &= ~omask;
248 info.bi_fmode = fmode;
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_multi.c369 *fmode = MODE_IS_EXCLUDE; in ilm_gen_filter()
376 *fmode = MODE_IS_INCLUDE; in ilm_gen_filter()
388 *fmode = MODE_IS_INCLUDE; in ilm_gen_filter()
402 mcast_record_t fmode; in ilm_update_add() local
442 fmode = MODE_IS_EXCLUDE; in ilm_update_add()
464 ilm->ilm_fmode = fmode; in ilm_update_add()
483 mcast_record_t fmode; in ilm_update_del() local
502 fmode = MODE_IS_EXCLUDE; in ilm_update_del()
522 ilm->ilm_fmode = fmode; in ilm_update_del()
1906 gf->gf_fmode = fmode; in ip_get_srcfilter()
[all …]
H A Digmp.c1017 igmp_statechange(ilm_t *ilm, mcast_record_t fmode, slist_t *flist) in igmp_statechange() argument
1044 if (ilm->ilm_fmode == fmode) { in igmp_statechange()
1108 mld_statechange(ilm_t *ilm, mcast_record_t fmode, slist_t *flist) in mld_statechange() argument
1135 if (ilm->ilm_fmode == fmode) { in mld_statechange()
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_trantcp.c93 int events, fmode, timo, waitflg; in nb_getmsg_mlen() local
125 fmode = FNDELAY; /* non-blocking */ in nb_getmsg_mlen()
127 fmode = 0; /* normal (blocking) */ in nb_getmsg_mlen()
132 error = tli_recv(nbp->nbp_tiptr, &tm, fmode); in nb_getmsg_mlen()
489 ushort_t fmode; in smb_nbst_create() local
502 fmode = FREAD|FWRITE; in smb_nbst_create()
503 rc = t_kopen(NULL, dev, fmode, &tiptr, cr); in smb_nbst_create()
516 nbp->nbp_fmode = fmode; in smb_nbst_create()
/illumos-gate/usr/src/cmd/dumpadm/
H A Dminfree.c42 minfree_open(const char *dir, int oflags, const char *fmode) in minfree_open() argument
50 return (fdopen(fd, fmode)); in minfree_open()
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_event.c910 long fmode; in aus_chmod() member
913 fmode = (uint32_t)uap->fmode; in aus_chmod()
930 long fmode; in aus_fchmod() member
934 fmode = (uint32_t)uap->fmode; in aus_fchmod()
968 long fmode; in aui_fchmodat() member
994 long fmode; in aus_fchmodat() member
999 fmode = (uint32_t)uap->fmode; in aus_fchmodat()
1096 long fmode; in aui_open() member
1113 long fmode; in aus_open() member
1615 fmode = (uint32_t)uap->fmode; in aus_mknod()
[all …]
H A Daudit.c651 unsigned char *pri, int *flag, int fmode) in audit_strgetmsg() argument
681 unsigned char pri, int flag, int fmode) in audit_strputmsg() argument
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_ktli.c312 tli_send(TIUSER *tiptr, mblk_t *bp, int fmode) in tli_send() argument
373 tli_recv(TIUSER *tiptr, mblk_t **bp, int fmode) in tli_recv() argument
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_diff.c262 mode_t fmode, tmode; in write_inuse_diffs_one() local
296 fmode = fsb.zs_mode & S_IFMT; in write_inuse_diffs_one()
298 if (fmode == S_IFDIR || tmode == S_IFDIR || fsb.zs_links == 0 || in write_inuse_diffs_one()
320 if (fmode != tmode && fsb.zs_gen == tsb.zs_gen) in write_inuse_diffs_one()
/illumos-gate/usr/src/uts/common/inet/sockmods/
H A Dsocksctp.h118 extern int sosctp_waitconnected(struct sonode *so, int fmode);
H A Dsocksctpsubr.c309 sosctp_assoc_waitconnected(struct sctp_soassoc *ssa, int fmode) in sosctp_assoc_waitconnected() argument
321 if (fmode & (FNDELAY|FNONBLOCK)) in sosctp_assoc_waitconnected()
/illumos-gate/usr/src/uts/common/io/
H A Dtty_pty.c523 int fmode = 0; in ptcwrite() local
621 fmode = uio->uio_fmode; in ptcwrite()
627 if (fmode) in ptcwrite()
628 uio->uio_fmode = fmode; in ptcwrite()
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockstr.c1142 sowaitconnind(struct sonode *so, int fmode, mblk_t **mpp) in sowaitconnind() argument
1160 if (fmode & (FNDELAY|FNONBLOCK)) { in sowaitconnind()
1243 sowaitconnected(struct sonode *so, int fmode, int nosig) in sowaitconnected() argument
1254 if (fmode & (FNDELAY|FNONBLOCK)) in sowaitconnected()
2841 int fmode, in sock_getmsg() argument
2866 return (strgetmsg(vp, mctl, mdata, prip, flagsp, fmode, rvp)); in sock_getmsg()
2888 int fmode in sock_putmsg() argument
2911 return (strputmsg(vp, mctl, mdata, pri, flag, fmode)); in sock_putmsg()
H A Dsocksubr.c345 so_lock_read(struct sonode *so, int fmode) in so_lock_read() argument
350 if (fmode & (FNDELAY|FNONBLOCK)) in so_lock_read()
363 so_lock_read_intr(struct sonode *so, int fmode) in so_lock_read_intr() argument
368 if (fmode & (FNDELAY|FNONBLOCK)) in so_lock_read_intr()
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_deleted.c258 s10_mknod(sysret_t *rval, const char *fname, int fmode, dev_t dev) in s10_mknod() argument
261 AT_FDCWD, fname, fmode, dev)); in s10_mknod()
/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.c1245 char *fmode; in da_open_devdb() local
1254 fmode = "r+F"; in da_open_devdb()
1257 fmode = "rF"; in da_open_devdb()
1287 if ((devfile = fdopen(fda, fmode)) == NULL) { in da_open_devdb()
1323 if ((devfile = fdopen(fdm, fmode)) == NULL) { in da_open_devdb()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dkt_file.c756 int fmode; in krb5_ktf_keytab_internalize() local
760 fmode = (file_is_open >> 1) & O_ACCMODE; in krb5_ktf_keytab_internalize()
762 fmode = 0; in krb5_ktf_keytab_internalize()
764 if (fmode) in krb5_ktf_keytab_internalize()
/illumos-gate/usr/src/uts/common/fs/fifofs/
H A Dfifovnops.c854 int fmode; in fifo_write() local
898 fmode = uiop->uio_fmode & (FNDELAY|FNONBLOCK); in fifo_write()
916 if (fmode) { in fifo_write()
920 if (fmode & FNDELAY) in fifo_write()
/illumos-gate/usr/src/uts/common/os/
H A Dstreamio.c6632 int fmode, in strgetmsg() argument
7267 int fmode; in kstrgetmsg() local
7367 fmode = uiop->uio_fmode; in kstrgetmsg()
7369 fmode = 0; in kstrgetmsg()
7375 fmode, timout, &done))) != 0 || done) { in kstrgetmsg()
7854 int fmode) in strputmsg() argument
7880 audit_strputmsg(vp, mctl, mdata, pri, flag, fmode); in strputmsg()
7956 uios.uio_fmode = fmode; in strputmsg()
8058 int fmode) in kstrputmsg() argument
8069 audit_strputmsg(vp, NULL, NULL, pri, flag, fmode); in kstrputmsg()
[all …]

12