Searched refs:fmode (Results 1 - 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/uts/common/syscall/
H A Daccess.c61 caccess(char *fname, int fmode, vnode_t *startvp) argument
71 if (fmode & ~(E_OK|R_OK|W_OK|X_OK))
74 mode = ((fmode & (R_OK|W_OK|X_OK)) << 6);
79 eok = (fmode & E_OK) ||
120 faccessat(int fd, char *fname, int fmode, int flag) argument
136 fmode &= ~E_OK;
138 fmode |= E_OK;
140 error = caccess(fname, fmode, startvp);
149 access(char *fname, int fmode) argument
151 return (faccessat(AT_FDCWD, fname, fmode,
[all...]
H A Dopen.c282 #define OPENMODE32(fmode) (((fmode) & (FSEARCH | FEXEC))? \
283 (fmode) : (fmode) - FOPEN)
284 #define OPENMODE64(fmode) (OPENMODE32(fmode) | FOFFMAX)
286 #define OPENMODE(fmode) OPENMODE64(fmode)
288 #define OPENMODE(fmode) OPENMODE32(fmode)
295 openat(int fd, char *path, int fmode, int cmode) argument
301 open(char *path, int fmode, int cmode) argument
311 openat64(int fd, char *path, int fmode, int cmode) argument
317 open64(char *path, int fmode, int cmode) argument
329 openat32(int fd, char *path, int fmode, int cmode) argument
335 open32(char *path, int fmode, int cmode) argument
[all...]
H A Dmknod.c55 * fmode - mode of pathname
59 mknodat(int fd, char *fname, mode_t fmode, dev_t dev) argument
70 if ((fmode & S_IFMT) == 0)
71 fmode |= S_IFREG;
76 if (((fmode & S_IFMT) != S_IFIFO) && secpolicy_sys_devices(CRED()) != 0)
81 vattr.va_type = IFTOVT(fmode);
82 vattr.va_mode = fmode & MODEMASK;
100 why = ((fmode & S_IFMT) == S_IFDIR) ? CRMKDIR : CRMKNOD;
112 mknod(char *fname, mode_t fmode, dev_t dev) argument
114 return (mknodat(AT_FDCWD, fname, fmode, de
[all...]
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kutil.c73 tli_send(TIUSER *tiptr, mblk_t *bp, int fmode) argument
83 error = kstrputmsg(vp, bp, NULL, 0, 0, MSG_BAND | MSG_HOLDSIG, fmode);
88 tli_recv(TIUSER *tiptr, mblk_t **bp, int fmode) argument
98 if (fmode & (FNDELAY|FNONBLOCK))
114 get_ok_ack(TIUSER *tiptr, int type, int fmode) argument
127 if ((error = tli_recv(tiptr, &bp, fmode)) != 0)
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dsourcefilter.c42 socklen_t grouplen, uint32_t *fmode, uint_t *numsrc,
86 *fmode = gf->gf_fmode;
102 socklen_t grouplen, uint32_t fmode, uint_t numsrc,
138 gf->gf_fmode = fmode;
159 uint32_t *fmode, uint32_t *numsrc, struct in_addr *slist)
182 *fmode = imsf->imsf_fmode;
198 uint32_t fmode, uint32_t numsrc, struct in_addr *slist)
213 imsf->imsf_fmode = fmode;
41 getsourcefilter(int s, uint32_t interface, struct sockaddr *group, socklen_t grouplen, uint32_t *fmode, uint_t *numsrc, struct sockaddr_storage *slist) argument
101 setsourcefilter(int s, uint32_t interface, struct sockaddr *group, socklen_t grouplen, uint32_t fmode, uint_t numsrc, struct sockaddr_storage *slist) argument
158 getipv4sourcefilter(int s, struct in_addr interface, struct in_addr group, uint32_t *fmode, uint32_t *numsrc, struct in_addr *slist) argument
197 setipv4sourcefilter(int s, struct in_addr interface, struct in_addr group, uint32_t fmode, uint32_t numsrc, struct in_addr *slist) argument
/illumos-gate/usr/src/cmd/dumpadm/
H A Dminfree.c42 minfree_open(const char *dir, int oflags, const char *fmode) argument
50 return (fdopen(fd, fmode));
/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;
191 ** fmode -- what mode the file should be created as
218 bfopen(char *filename, MODE_T fmode, size_t bsize, long flags) argument
221 bfopen(filename, fmode, bsize, flags)
223 MODE_T fmode;
235 ** Apply current umask to fmode as it may change by the time
236 ** the file is actually created. fmode becomes the true
241 fmode
[all...]
/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, omod
[all...]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_multi.c65 static void ilm_gen_filter(ilm_t *ilm, mcast_record_t *fmode,
87 ipaddr_t ifaddr, uint_t ifindex, ill_t *ill, mcast_record_t fmode,
94 mcast_record_t fmode, const in6_addr_t *v6src);
352 ilm_gen_filter(ilm_t *ilm, mcast_record_t *fmode, slist_t *flist) argument
369 *fmode = MODE_IS_EXCLUDE;
376 *fmode = MODE_IS_INCLUDE;
388 *fmode = MODE_IS_INCLUDE;
391 *fmode = MODE_IS_EXCLUDE;
402 mcast_record_t fmode; local
442 fmode
483 mcast_record_t fmode; local
1837 int i, numsrc, fmode, outsrcs; local
2454 ip_opt_add_group(conn_t *connp, boolean_t checkonly, const in6_addr_t *v6group, ipaddr_t ifaddr, uint_t ifindex, mcast_record_t fmode, const in6_addr_t *v6src) argument
2518 ip_opt_delete_group_excl(conn_t *connp, const in6_addr_t *v6group, ipaddr_t ifaddr, uint_t ifindex, mcast_record_t fmode, const in6_addr_t *v6src) argument
2654 ip_opt_delete_group(conn_t *connp, boolean_t checkonly, const in6_addr_t *v6group, ipaddr_t ifaddr, uint_t ifindex, mcast_record_t fmode, const in6_addr_t *v6src) argument
2696 ilg_add(conn_t *connp, const in6_addr_t *v6group, ipaddr_t ifaddr, uint_t ifindex, ill_t *ill, mcast_record_t fmode, const in6_addr_t *v6src) argument
[all...]
H A Digmp.c1018 igmp_statechange(ilm_t *ilm, mcast_record_t fmode, slist_t *flist) argument
1045 if (ilm->ilm_fmode == fmode) {
1109 mld_statechange(ilm_t *ilm, mcast_record_t fmode, slist_t *flist) argument
1136 if (ilm->ilm_fmode == fmode) {
1330 * Decrement the retransmit count. If the fmode rtx
1561 * Decrement the retransmit count. If the fmode rtx
/illumos-gate/usr/src/uts/common/inet/sockmods/
H A Dsocksctp.h118 extern int sosctp_waitconnected(struct sonode *so, int fmode);
H A Dsocksctpsubr.c306 * fmode should contain any nonblocking flags.
309 sosctp_assoc_waitconnected(struct sctp_soassoc *ssa, int fmode) argument
321 if (fmode & (FNDELAY|FNONBLOCK))
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_event.c905 uint32_t fmode; local
909 long fmode; member in struct:a
912 fmode = (uint32_t)uap->fmode;
914 au_uwrite(au_to_arg32(2, "new file mode", fmode&07777));
922 uint32_t fmode, fd; local
929 long fmode; member in struct:a
933 fmode = (uint32_t)uap->fmode;
935 au_uwrite(au_to_arg32(2, "new file mode", fmode
967 long fmode; member in struct:a
984 uint32_t fmode; local
993 long fmode; member in struct:a
1095 long fmode; member in struct:a
1112 long fmode; member in struct:a
1134 long fmode; member in struct:a
1160 long fmode; member in struct:a
1605 uint32_t fmode; local
1610 long fmode; member in struct:a
1635 long fmode; member in struct:a
1656 uint32_t fmode; local
1662 long fmode; member in struct:a
1690 long fmode; member in struct:a
[all...]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_trantcp.c99 int events, fmode, timo, waitflg; local
131 fmode = FNDELAY; /* non-blocking */
133 fmode = 0; /* normal (blocking) */
138 error = tli_recv(nbp->nbp_tiptr, &tm, fmode);
/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) argument
261 AT_FDCWD, fname, fmode, dev));
/illumos-gate/usr/src/uts/common/io/
H A Dtty_pty.c529 int fmode = 0; local
632 fmode = uio->uio_fmode;
638 if (fmode)
639 uio->uio_fmode = fmode;
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_diff.c254 mode_t fmode, tmode; local
288 fmode = fsb.zs_mode & S_IFMT;
290 if (fmode == S_IFDIR || tmode == S_IFDIR || fsb.zs_links == 0 ||
312 if (fmode != tmode && fsb.zs_gen == tsb.zs_gen)
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockstr.c1142 sowaitconnind(struct sonode *so, int fmode, mblk_t **mpp) argument
1160 if (fmode & (FNDELAY|FNONBLOCK)) {
1239 * fmode should contain any nonblocking flags. nosig should be
1243 sowaitconnected(struct sonode *so, int fmode, int nosig) argument
1254 if (fmode & (FNDELAY|FNONBLOCK))
2841 int fmode,
2866 return (strgetmsg(vp, mctl, mdata, prip, flagsp, fmode, rvp));
2888 int fmode
2911 return (strputmsg(vp, mctl, mdata, pri, flag, fmode));
2835 sock_getmsg( struct vnode *vp, struct strbuf *mctl, struct strbuf *mdata, uchar_t *prip, int *flagsp, int fmode, rval_t *rvp ) argument
H A Dsocksubr.c358 * If the caller wants nonblocking behavior it should set fmode.
361 so_lock_read(struct sonode *so, int fmode) argument
366 if (fmode & (FNDELAY|FNONBLOCK))
379 so_lock_read_intr(struct sonode *so, int fmode) argument
384 if (fmode & (FNDELAY|FNONBLOCK))
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dkt_file.c759 int fmode;
763 fmode = (file_is_open >> 1) & O_ACCMODE;
765 fmode = 0;
767 if (fmode)
756 int fmode; local
/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.c1245 char *fmode; local
1254 fmode = "r+F";
1257 fmode = "rF";
1287 if ((devfile = fdopen(fda, fmode)) == NULL) {
1323 if ((devfile = fdopen(fdm, fmode)) == NULL) {
/illumos-gate/usr/src/uts/common/fs/fifofs/
H A Dfifovnops.c853 int fmode; local
897 fmode = uiop->uio_fmode & (FNDELAY|FNONBLOCK);
915 if (fmode) {
919 if (fmode & FNDELAY)
/illumos-gate/usr/src/uts/common/os/
H A Dstreamio.c6507 int fmode,
6675 if (((error = strwaitq(stp, GETWAIT, (ssize_t)0, fmode, -1,
7142 int fmode; local
7242 fmode = uiop->uio_fmode;
7244 fmode = 0;
7250 fmode, timout, &done))) != 0 || done) {
7729 int fmode)
7755 audit_strputmsg(vp, mctl, mdata, pri, flag, fmode);
7831 uios.uio_fmode = fmode;
7847 if ((error = strmakectl(mctl, flag, fmode,
6501 strgetmsg( struct vnode *vp, struct strbuf *mctl, struct strbuf *mdata, unsigned char *prip, int *flagsp, int fmode, rval_t *rvp) argument
7723 strputmsg( struct vnode *vp, struct strbuf *mctl, struct strbuf *mdata, unsigned char pri, int flag, int fmode) argument
7926 kstrputmsg( struct vnode *vp, mblk_t *mctl, struct uio *uiop, ssize_t msgsize, unsigned char pri, int flag, int fmode) argument
[all...]
/illumos-gate/usr/src/lib/libdscfg/common/
H A Dcfg.c2261 int fmode; local
2269 fmode = O_RDONLY;
2271 fmode = O_RDWR | O_CREAT;
2280 fd = open(wellknown, fmode, 0644);
/illumos-gate/usr/src/cmd/syslogd/
H A Dsyslogd.c3416 mode_t fmode, omode = O_WRONLY|O_APPEND|O_NOCTTY; local
3510 fmode = 0; /* reset each pass */
3512 fmode = O_NONBLOCK;
3514 f->f_file = open64(p, omode|fmode);
3516 if (fmode && errno == ENXIO) {

Completed in 139 milliseconds

12