/freebsd/lib/libc/net/ |
H A D | sourcefilter.c | 141 uint32_t fmode, uint32_t numsrc, struct in_addr *slist) in setipv4sourcefilter() argument 156 (fmode != MCAST_INCLUDE && fmode != MCAST_EXCLUDE)) { in setipv4sourcefilter() 189 sizeof(struct sockaddr_in), fmode, numsrc, in setipv4sourcefilter() 211 uint32_t *fmode, uint32_t *numsrc, struct in_addr *slist) in getipv4sourcefilter() argument 221 assert(fmode != NULL); in getipv4sourcefilter() 254 sizeof(struct sockaddr_in), fmode, numsrc, in getipv4sourcefilter() 276 socklen_t grouplen, uint32_t fmode, uint32_t numsrc, in setsourcefilter() argument 283 if (fmode != MCAST_INCLUDE && fmode != MCAST_EXCLUDE) { in setsourcefilter() 319 msfr.msfr_fmode = fmode; in setsourcefilter() 333 socklen_t grouplen, uint32_t *fmode, uint32_t *numsrc, in getsourcefilter() argument [all …]
|
/freebsd/sbin/veriexec/ |
H A D | manifest_parser.y | 60 static int fmode; variable 149 fmode = (int)strtol($3, NULL, 8); 191 fmode = -1; /* unknown */ 271 if (fmode > 0) { in do_ioctl() 272 if (!(fmode & (S_IXUSR|S_IXGRP|S_IXOTH))) { in do_ioctl()
|
/freebsd/contrib/sendmail/libsmutil/ |
H A D | safefile.c | 796 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, omode, sff, sm_errstring(errno));
|
/freebsd/contrib/sendmail/src/ |
H A D | bf.c | 105 MODE_T fmode; local 113 fmode = ((struct bf_info *) info)->bi_fmode; 172 bfp->bf_filemode = fmode; 216 bfopen(char *filename, MODE_T fmode, size_t bsize, long flags) in bfopen() argument 219 bfopen(filename, fmode, bsize, flags) in bfopen() 221 MODE_T fmode; 239 fmode &= ~omask; 246 info.bi_fmode = fmode;
|
/freebsd/sys/kern/ |
H A D | vfs_vnops.c | 198 open2nameif(int fmode, u_int vn_open_flags) in open2nameif() argument 203 if ((fmode & O_RESOLVE_BENEATH) != 0) in open2nameif() 205 if ((fmode & O_EMPTY_PATH) != 0) in open2nameif() 207 if ((fmode & FREAD) != 0) in open2nameif() 209 if ((fmode & FWRITE) != 0) in open2nameif() 236 int fmode, error; in vn_open_cred() local 241 fmode = *flagp; in vn_open_cred() 242 if ((fmode & (O_CREAT | O_EXCL | O_DIRECTORY)) == (O_CREAT | in vn_open_cred() 244 (fmode & (O_CREAT | O_EMPTY_PATH)) == (O_CREAT | O_EMPTY_PATH)) in vn_open_cred() 246 else if ((fmode & (O_CREAT | O_DIRECTORY)) == O_CREAT) { in vn_open_cred() [all …]
|
H A D | vfs_syscalls.c | 4630 int fmode, error; in kern_fhopen() local 4637 fmode = FFLAGS(flags); in kern_fhopen() 4639 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT)) in kern_fhopen() 4667 error = vn_open_vnode(vp, fmode, td->td_ucred, td, fp); in kern_fhopen() 4681 finit_vnode(fp, fmode, NULL, &vnops); in kern_fhopen() 4683 if ((fmode & O_TRUNC) != 0) { in kern_fhopen() 4689 error = finstall(td, fp, &indx, fmode, NULL); in kern_fhopen()
|
/freebsd/usr.sbin/ifmcstat/ |
H A D | ifmcstat.c | 673 uint8_t fmode; 676 fmode = pinm->inm_st[1].iss_fmode; 677 if (fmode == MCAST_UNDEFINED) 684 if (fmode != ims_get_mode(pinm, ims, 1)) 804 uint32_t fmode; in inm_print_sources_sysctl() local 843 fmode = *p++; in inm_print_sources_sysctl() 846 modestr = inm_mode(fmode); in inm_print_sources_sysctl() 850 printf(" mode (%u)", fmode); in inm_print_sources_sysctl() 904 uint32_t fmode; in in6m_print_sources_sysctl() local 947 fmode = *p++; in in6m_print_sources_sysctl() [all …]
|
/freebsd/usr.sbin/mtest/ |
H A D | mtest.c | 386 uint32_t fmode, ifindex; in process_cmd() local 534 fmode = (*cmd == 'i') ? MCAST_INCLUDE : MCAST_EXCLUDE; in process_cmd() 588 &su.sa, su.sa.sa_len, fmode, n, &sources[0].ss) != 0) in process_cmd() 616 &su.sa, su.sa.sa_len, &fmode, &n, NULL) != 0) { in process_cmd() 636 if (fmode == MCAST_EXCLUDE) { in process_cmd() 671 if (fmode == MCAST_EXCLUDE) { in process_cmd() 725 su.sa.sa_len, &fmode, &nsrc, &sources[0].ss) != 0) { in process_cmd() 730 printf("%s\n", (fmode == MCAST_INCLUDE) ? "include" : in process_cmd()
|
/freebsd/usr.sbin/spi/ |
H A D | spi.c | 460 uint32_t fmode, fspeed; in get_info() local 467 err = ioctl(hdev, SPIGENIOC_GET_SPI_MODE, &fmode); in get_info() 477 cpath, fmode, fspeed);//, max_cmd, max_data, temp_buf); in get_info() 489 uint32_t fmode = popt->mode; in set_mode() local 494 return ioctl(hdev, SPIGENIOC_SET_SPI_MODE, &fmode); in set_mode()
|
/freebsd/tests/sys/audit/ |
H A D | utils.c | 97 int fmode = AUDITPIPE_PRESELECT_MODE_LOCAL; in set_preselect_mode() local 100 if (ioctl(filedesc, AUDITPIPE_SET_PRESELECT_MODE, &fmode) < 0) in set_preselect_mode()
|
/freebsd/contrib/bmake/mk/ |
H A D | newlog.sh | 137 fmode() { 173 fmode `find $1 -ls -prune | awk '{ print $3 }'` 135 fmode() { global() function
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_diff.c | 265 mode_t fmode, tmode; in write_inuse_diffs_one() local 314 fmode = fsb.zs_mode & S_IFMT; in write_inuse_diffs_one() 316 if (fmode == S_IFDIR || tmode == S_IFDIR || fsb.zs_links == 0 || in write_inuse_diffs_one() 338 if (fmode != tmode && fsb.zs_gen == tsb.zs_gen) in write_inuse_diffs_one()
|
/freebsd/sys/netinet/ |
H A D | in_mcast.c | 1378 uint16_t fmode; in inp_block_unblock_source() local 1475 fmode = imf->imf_st[0]; in inp_block_unblock_source() 1476 if (fmode != MCAST_EXCLUDE) { in inp_block_unblock_source() 1502 ims = imf_graft(imf, fmode, &ssa->sin); in inp_block_unblock_source() 2854 uint32_t fmode, ifindex; in sysctl_ip_mcast_filters() local 2897 fmode = inm->inm_st[1].iss_fmode; in sysctl_ip_mcast_filters() 2898 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t)); in sysctl_ip_mcast_filters() 2907 if (fmode != ims_get_mode(inm, ims, 1)) { in sysctl_ip_mcast_filters()
|
/freebsd/sys/netinet6/ |
H A D | in6_mcast.c | 1434 uint16_t fmode; in in6p_block_unblock_source() local 1507 fmode = imf->im6f_st[0]; in in6p_block_unblock_source() 1508 if (fmode != MCAST_EXCLUDE) { in in6p_block_unblock_source() 1535 ims = im6f_graft(imf, fmode, &ssa->sin6); in in6p_block_unblock_source() 2783 uint32_t fmode, ifindex; in sysctl_ip6_mcast_filters() local 2834 fmode = inm->in6m_st[1].iss_fmode; in sysctl_ip6_mcast_filters() 2835 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t)); in sysctl_ip6_mcast_filters() 2843 if (fmode != im6s_get_mode(inm, ims, 1)) { in sysctl_ip6_mcast_filters()
|
/freebsd/contrib/nvi/common/ |
H A D | exf.c | 849 mode_t fmode; local 853 fmode = sb.st_mode; 855 fmode |= S_IWUSR; 858 if (chmod(name, fmode) != 0)
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clvnops.c | 622 int fmode = ap->a_mode; in nfs_open() local 634 error = nfsrpc_open(vp, fmode, ap->a_cred, ap->a_td); in nfs_open() 711 if (newnfs_directio_enable && (fmode & O_DIRECT) && in nfs_open() 733 if (NFSHASPNFS(VFSTONFS(vp->v_mount)) && (fmode & FWRITE) != 0) in nfs_open() 743 if ((fmode & FWRITE) != 0) { in nfs_open() 829 int fmode = ap->a_fflag; in nfs_close() local 964 if (newnfs_directio_enable && (fmode & O_DIRECT) && (vp->v_type == VREG)) { in nfs_close() 1755 int error = 0, attrflag, dattrflag, fmode = 0; in nfs_create() local 1767 fmode |= O_EXCL; in nfs_create() 1781 vap, cverf, fmode, cnp->cn_cred, curthread, &dnfsva, &nfsva, in nfs_create() [all …]
|
H A D | nfs_clrpcops.c | 2474 nfsquad_t cverf, int fmode, struct ucred *cred, NFSPROC_T *p, in nfsrpc_create() argument 2500 fmode, owp, &dp, cred, p, dnap, nnap, nfhpp, in nfsrpc_create() 2504 cverf, fmode, owp, &dp, cred, p, dnap, nnap, nfhpp, in nfsrpc_create() 2534 fmode, cred, p, dnap, nnap, nfhpp, attrflagp, dattrflagp); in nfsrpc_create() 2544 nfsquad_t cverf, int fmode, struct ucred *cred, NFSPROC_T *p, in nfsrpc_createv23() argument 2561 if (fmode & O_EXCL) { in nfsrpc_createv23() 2592 nfsquad_t cverf, int fmode, struct nfsclowner *owp, struct nfscldeleg **dpp, in nfsrpc_createv4() argument 2643 if (fmode & O_EXCL) { in nfsrpc_createv4() 8409 nfsquad_t cverf, int fmode, struct nfsclowner *owp, struct nfscldeleg **dpp, in nfsrpc_createlayout() argument 8462 if ((fmode in nfsrpc_createlayout() 8676 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,int * unlockedp) nfsrpc_getcreatelayout() argument [all...] |
/freebsd/contrib/atf/atf-c/detail/ |
H A D | fs_test.c | 620 mode_t fmode; in ATF_TC_BODY() member 683 printf("File mode : %04o\n", (unsigned int)t->fmode); in ATF_TC_BODY() 686 ATF_REQUIRE(chmod(atf_fs_path_cstring(&p), t->fmode) != -1); in ATF_TC_BODY()
|
/freebsd/sys/fs/unionfs/ |
H A D | union_subr.c | 1278 int fmode; in unionfs_vn_create_on_upper() local 1287 fmode = FFLAGS(O_WRONLY | O_CREAT | O_TRUNC | O_EXCL); in unionfs_vn_create_on_upper() 1325 if ((error = VOP_OPEN(uvp, fmode, cred, td, NULL)) != 0) { in unionfs_vn_create_on_upper() 1335 VOP_CLOSE(uvp, fmode, cred, td); in unionfs_vn_create_on_upper()
|
/freebsd/sys/dev/cxgbe/common/ |
H A D | t4_hw.c | 10850 uint16_t fmode, fmask; in t4_set_filter_cfg() local 10855 fmode = mode; in t4_set_filter_cfg() 10858 if (fmode & (1 << i)) in t4_set_filter_cfg() 10865 "try again.\n", fmode, nbits, maxbits); in t4_set_filter_cfg() 10874 if (fmode & (1 << i)) in t4_set_filter_cfg() 10877 fmode |= 1 << i; in t4_set_filter_cfg() 10884 fmask = fmode & adap->params.tp.filter_mask; in t4_set_filter_cfg() 10889 adap->params.tp.filter_mask, fmask, fmode); in t4_set_filter_cfg() 10892 fmode = adap->params.tp.filter_mode; in t4_set_filter_cfg() 10894 if ((fmode | fmask) != fmode) { in t4_set_filter_cfg() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_acl.c | 884 zfs_mode_compute(uint64_t fmode, zfs_acl_t *aclp, in zfs_mode_compute() argument 896 mode = (fmode & (S_IFMT | S_ISUID | S_ISGID | S_ISVTX)); in zfs_mode_compute()
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zfs_acl.c | 902 zfs_mode_compute(uint64_t fmode, zfs_acl_t *aclp, in zfs_mode_compute() argument 914 mode = (fmode & (S_IFMT | S_ISUID | S_ISGID | S_ISVTX)); in zfs_mode_compute()
|
/freebsd/sys/sys/ |
H A D | vnode.h | 783 int vn_open_vnode(struct vnode *vp, int fmode, struct ucred *cred,
|
/freebsd/contrib/sqlite3/ |
H A D | shell.c | 5237 char fmode[3] = "xb"; in main() local 5242 fmode[0] = rw; in main() 5255 fb = fopen(av[2], fmode); in main()
|