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

/freebsd-13-stable/contrib/opie/libopie/
H A Dopen.c56 char *fmode; local
60 fmode = "r";
63 fmode = "r+";
66 fmode = "a";
72 if (!(f = fopen(file, fmode)))
/freebsd-13-stable/lib/libc/net/
H A Dsourcefilter.c144 uint32_t fmode, uint32_t numsrc, struct in_addr *slist)
159 (fmode != MCAST_INCLUDE && fmode != MCAST_EXCLUDE)) {
192 sizeof(struct sockaddr_in), fmode, numsrc,
214 uint32_t *fmode, uint32_t *numsrc, struct in_addr *slist)
224 assert(fmode != NULL);
257 sizeof(struct sockaddr_in), fmode, numsrc,
279 socklen_t grouplen, uint32_t fmode, uint32_t numsrc,
286 if (fmode != MCAST_INCLUDE && fmode !
143 setipv4sourcefilter(int s, struct in_addr interface, struct in_addr group, uint32_t fmode, uint32_t numsrc, struct in_addr *slist) argument
213 getipv4sourcefilter(int s, struct in_addr interface, struct in_addr group, uint32_t *fmode, uint32_t *numsrc, struct in_addr *slist) argument
278 setsourcefilter(int s, uint32_t interface, struct sockaddr *group, socklen_t grouplen, uint32_t fmode, uint32_t numsrc, struct sockaddr_storage *slist) argument
335 getsourcefilter(int s, uint32_t interface, struct sockaddr *group, socklen_t grouplen, uint32_t *fmode, uint32_t *numsrc, struct sockaddr_storage *slist) argument
[all...]
/freebsd-13-stable/sbin/veriexec/
H A Dmanifest_parser.y61 static int fmode;
151 fmode = (int)strtol($3, NULL, 8);
193 fmode = -1; /* unknown */
273 if (fmode > 0) {
274 if (!(fmode & (S_IXUSR|S_IXGRP|S_IXOTH))) {
/freebsd-13-stable/contrib/sendmail/src/
H A Dbf.c105 MODE_T fmode; local
113 fmode = ((struct bf_info *) info)->bi_fmode;
172 bfp->bf_filemode = fmode;
189 ** fmode -- what mode the file should be created as
216 bfopen(char *filename, MODE_T fmode, size_t bsize, long flags) argument
219 bfopen(filename, fmode, bsize, flags)
221 MODE_T fmode;
233 ** Apply current umask to fmode as it may change by the time
234 ** the file is actually created. fmode becomes the true
239 fmode
[all...]
/freebsd-13-stable/contrib/sendmail/libsmutil/
H A Dsafefile.c796 int fmode; local
801 fmode = SM_IO_RDONLY;
806 fmode = SM_IO_APPEND;
808 fmode = SM_IO_WRONLY;
813 fmode = SM_IO_RDWRTR;
815 fmode = SM_IO_APPENDRW;
817 fmode = SM_IO_RDWR;
822 fmode = 0;
835 (void *) &fd, fmode, NULL);
843 fn, fmode, omod
[all...]
/freebsd-13-stable/usr.sbin/mtest/
H A Dmtest.c389 uint32_t fmode, ifindex; local
537 fmode = (*cmd == 'i') ? MCAST_INCLUDE : MCAST_EXCLUDE;
591 &su.sa, su.sa.sa_len, fmode, n, &sources[0].ss) != 0)
619 &su.sa, su.sa.sa_len, &fmode, &n, NULL) != 0) {
639 if (fmode == MCAST_EXCLUDE) {
674 if (fmode == MCAST_EXCLUDE) {
728 su.sa.sa_len, &fmode, &nsrc, &sources[0].ss) != 0) {
733 printf("%s\n", (fmode == MCAST_INCLUDE) ? "include" :
/freebsd-13-stable/usr.sbin/ifmcstat/
H A Difmcstat.c676 uint8_t fmode;
679 fmode = pinm->inm_st[1].iss_fmode;
680 if (fmode == MCAST_UNDEFINED)
687 if (fmode != ims_get_mode(pinm, ims, 1))
807 uint32_t fmode; local
846 fmode = *p++;
849 modestr = inm_mode(fmode);
853 printf(" mode (%u)", fmode);
907 uint32_t fmode; local
950 fmode
[all...]
/freebsd-13-stable/sys/kern/
H A Dvfs_vnops.c197 open2nameif(int fmode, u_int vn_open_flags) argument
202 if ((fmode & O_RESOLVE_BENEATH) != 0)
204 if ((fmode & O_EMPTY_PATH) != 0)
230 int fmode, error; local
235 fmode = *flagp;
236 if ((fmode & (O_CREAT | O_EXCL | O_DIRECTORY)) == (O_CREAT |
238 (fmode & (O_CREAT | O_EMPTY_PATH)) == (O_CREAT | O_EMPTY_PATH))
240 else if ((fmode & (O_CREAT | O_DIRECTORY)) == O_CREAT) {
242 ndp->ni_cnd.cn_flags = open2nameif(fmode, vn_open_flags);
251 if ((fmode
349 vn_open_vnode_advlock(struct vnode *vp, int fmode, struct file *fp) argument
386 vn_open_vnode(struct vnode *vp, int fmode, struct ucred *cred, struct thread *td, struct file *fp) argument
[all...]
H A Dvfs_syscalls.c4534 int fmode, error; local
4541 fmode = FFLAGS(flags);
4543 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT))
4571 error = vn_open_vnode(vp, fmode, td->td_ucred, td, fp);
4585 finit_vnode(fp, fmode, NULL, &vnops);
4587 if ((fmode & O_TRUNC) != 0) {
4593 error = finstall(td, fp, &indx, fmode, NULL);
/freebsd-13-stable/tests/sys/audit/
H A Dutils.c99 int fmode = AUDITPIPE_PRESELECT_MODE_LOCAL; local
102 if (ioctl(filedesc, AUDITPIPE_SET_PRESELECT_MODE, &fmode) < 0)
/freebsd-13-stable/usr.sbin/spi/
H A Dspi.c463 uint32_t fmode, fspeed; local
470 err = ioctl(hdev, SPIGENIOC_GET_SPI_MODE, &fmode);
480 cpath, fmode, fspeed);//, max_cmd, max_data, temp_buf);
492 uint32_t fmode = popt->mode; local
497 return ioctl(hdev, SPIGENIOC_SET_SPI_MODE, &fmode);
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_diff.c244 mode_t fmode, tmode; local
293 fmode = fsb.zs_mode & S_IFMT;
295 if (fmode == S_IFDIR || tmode == S_IFDIR || fsb.zs_links == 0 ||
317 if (fmode != tmode && fsb.zs_gen == tsb.zs_gen)
/freebsd-13-stable/contrib/nvi/common/
H A Dexf.c829 mode_t fmode; local
833 fmode = sb.st_mode;
835 fmode |= S_IWUSR;
838 if (chmod(name, fmode) != 0)
/freebsd-13-stable/sys/fs/nfsclient/
H A Dnfs_clvnops.c617 int fmode = ap->a_mode; local
629 error = nfsrpc_open(vp, fmode, ap->a_cred, ap->a_td);
696 if (newnfs_directio_enable && (fmode & O_DIRECT) &&
713 if (NFSHASPNFS(VFSTONFS(vp->v_mount)) && (fmode & FWRITE) != 0)
723 if ((fmode & FWRITE) != 0) {
806 int fmode = ap->a_fflag; local
926 if (newnfs_directio_enable && (fmode & O_DIRECT) && (vp->v_type == VREG)) {
1663 int error = 0, attrflag, dattrflag, fmode = 0; local
1675 fmode |= O_EXCL;
1689 vap, cverf, fmode, cn
[all...]
H A Dnfs_clrpcops.c2064 nfsquad_t cverf, int fmode, struct ucred *cred, NFSPROC_T *p,
2090 fmode, owp, &dp, cred, p, dnap, nnap, nfhpp,
2094 cverf, fmode, owp, &dp, cred, p, dnap, nnap, nfhpp,
2124 fmode, cred, p, dnap, nnap, nfhpp, attrflagp, dattrflagp,
2135 nfsquad_t cverf, int fmode, struct ucred *cred, NFSPROC_T *p,
2152 if (fmode & O_EXCL) {
2183 nfsquad_t cverf, int fmode, struct nfsclowner *owp, struct nfscldeleg **dpp,
2225 if (fmode & O_EXCL) {
7738 nfsquad_t cverf, int fmode, struct nfsclowner *owp, struct nfscldeleg **dpp,
7782 if ((fmode
2063 nfsrpc_create(vnode_t dvp, char *name, int namelen, struct vattr *vap, nfsquad_t cverf, int fmode, struct ucred *cred, NFSPROC_T *p, struct nfsvattr *dnap, struct nfsvattr *nnap, struct nfsfh **nfhpp, int *attrflagp, int *dattrflagp, void *dstuff) argument
2134 nfsrpc_createv23(vnode_t dvp, char *name, int namelen, struct vattr *vap, nfsquad_t cverf, int fmode, struct ucred *cred, NFSPROC_T *p, struct nfsvattr *dnap, struct nfsvattr *nnap, struct nfsfh **nfhpp, int *attrflagp, int *dattrflagp, void *dstuff) argument
2182 nfsrpc_createv4(vnode_t dvp, char *name, int namelen, struct vattr *vap, nfsquad_t cverf, int fmode, struct nfsclowner *owp, struct nfscldeleg **dpp, struct ucred *cred, NFSPROC_T *p, struct nfsvattr *dnap, struct nfsvattr *nnap, struct nfsfh **nfhpp, int *attrflagp, int *dattrflagp, void *dstuff, int *unlockedp) argument
7737 nfsrpc_createlayout(vnode_t dvp, char *name, int namelen, struct vattr *vap, nfsquad_t cverf, int fmode, struct nfsclowner *owp, struct nfscldeleg **dpp, struct ucred *cred, NFSPROC_T *p, struct nfsvattr *dnap, struct nfsvattr *nnap, struct nfsfh **nfhpp, int *attrflagp, int *dattrflagp, void *dstuff, int *unlockedp, nfsv4stateid_t *stateidp, int usecurstateid, int layouttype, int layoutlen, int *retonclosep, struct nfsclflayouthead *flhp, int *laystatp) argument
7993 nfsrpc_getcreatelayout(vnode_t dvp, char *name, int namelen, struct vattr *vap, nfsquad_t cverf, int fmode, struct nfsclowner *owp, struct nfscldeleg **dpp, struct ucred *cred, NFSPROC_T *p, struct nfsvattr *dnap, struct nfsvattr *nnap, struct nfsfh **nfhpp, int *attrflagp, int *dattrflagp, void *dstuff, int *unlockedp) argument
[all...]
/freebsd-13-stable/sys/netinet/
H A Din_mcast.c1417 uint16_t fmode; local
1512 fmode = imf->imf_st[0];
1513 if (fmode != MCAST_EXCLUDE) {
1539 ims = imf_graft(imf, fmode, &ssa->sin);
2913 uint32_t fmode, ifindex; local
2963 fmode = inm->inm_st[1].iss_fmode;
2964 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t));
2973 if (fmode != ims_get_mode(inm, ims, 1)) {
3065 printf("t%d: fmode %s asm %u ex %u in %u rec %u\n", t,
/freebsd-13-stable/sys/netinet6/
H A Din6_mcast.c1402 uint16_t fmode; local
1469 fmode = imf->im6f_st[0];
1470 if (fmode != MCAST_EXCLUDE) {
1497 ims = im6f_graft(imf, fmode, &ssa->sin6);
2737 uint32_t fmode, ifindex; local
2794 fmode = inm->in6m_st[1].iss_fmode;
2795 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t));
2803 if (fmode != im6s_get_mode(inm, ims, 1)) {
2885 printf("t%d: fmode %s asm %u ex %u in %u rec %u\n", t,
/freebsd-13-stable/sys/fs/unionfs/
H A Dunion_subr.c905 int fmode; local
913 fmode = FFLAGS(O_WRONLY | O_CREAT | O_TRUNC | O_EXCL);
950 if ((error = VOP_OPEN(vp, fmode, cred, td, NULL)) != 0) {
960 VOP_CLOSE(vp, fmode, cred, td);
/freebsd-13-stable/contrib/atf/atf-c/detail/
H A Dfs_test.c620 mode_t fmode; member in struct:tests
683 printf("File mode : %04o\n", (unsigned int)t->fmode);
686 ATF_REQUIRE(chmod(atf_fs_path_cstring(&p), t->fmode) != -1);
/freebsd-13-stable/sys/dev/cxgbe/common/
H A Dt4_hw.c10886 uint16_t fmode, fmask; local
10891 fmode = mode;
10894 if (fmode & (1 << i))
10901 "try again.\n", fmode, nbits, maxbits);
10910 if (fmode & (1 << i))
10913 fmode |= 1 << i;
10920 fmask = fmode & adap->params.tp.filter_mask;
10925 adap->params.tp.filter_mask, fmask, fmode);
10928 fmode = adap->params.tp.filter_mode;
10930 if ((fmode | fmas
[all...]
/freebsd-13-stable/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_acl.c884 zfs_mode_compute(uint64_t fmode, zfs_acl_t *aclp, argument
896 mode = (fmode & (S_IFMT | S_ISUID | S_ISGID | S_ISVTX));
/freebsd-13-stable/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_acl.c884 zfs_mode_compute(uint64_t fmode, zfs_acl_t *aclp, argument
896 mode = (fmode & (S_IFMT | S_ISUID | S_ISGID | S_ISVTX));
/freebsd-13-stable/sys/sys/
H A Dvnode.h750 int vn_open_vnode(struct vnode *vp, int fmode, struct ucred *cred,

Completed in 475 milliseconds