Home
last modified time | relevance | path

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

/freebsd-12.1/lib/libc/net/
H A Dsourcefilter.c144 uint32_t fmode, uint32_t numsrc, struct in_addr *slist) in setipv4sourcefilter() argument
159 (fmode != MCAST_INCLUDE && fmode != MCAST_EXCLUDE)) { in setipv4sourcefilter()
192 sizeof(struct sockaddr_in), fmode, numsrc, in setipv4sourcefilter()
224 assert(fmode != NULL); in getipv4sourcefilter()
257 sizeof(struct sockaddr_in), fmode, numsrc, in getipv4sourcefilter()
279 socklen_t grouplen, uint32_t fmode, uint32_t numsrc, in setsourcefilter() argument
286 if (fmode != MCAST_INCLUDE && fmode != MCAST_EXCLUDE) { in setsourcefilter()
322 msfr.msfr_fmode = fmode; in setsourcefilter()
345 fmode == NULL) { in getsourcefilter()
352 *fmode = 0; in getsourcefilter()
[all …]
/freebsd-12.1/contrib/opie/libopie/
H A Dopen.c56 char *fmode; variable
60 fmode = "r";
63 fmode = "r+";
66 fmode = "a";
72 if (!(f = fopen(file, fmode)))
/freebsd-12.1/sbin/veriexec/
H A Dmanifest_parser.y61 static int fmode; variable
151 fmode = (int)strtol($3, NULL, 8);
193 fmode = -1; /* unknown */
273 if (fmode > 0) { in do_ioctl()
274 if (!(fmode & (S_IXUSR|S_IXGRP|S_IXOTH))) { in do_ioctl()
/freebsd-12.1/contrib/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));
/freebsd-12.1/contrib/sendmail/src/
H A Dbf.c105 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-12.1/sys/kern/
H A Dvfs_vnops.c199 int fmode, error; in vn_open_cred() local
202 fmode = *flagp; in vn_open_cred()
213 if ((fmode & O_EXCL) == 0 && (fmode & O_NOFOLLOW) == 0) in vn_open_cred()
251 fmode &= ~O_TRUNC; in vn_open_cred()
264 fmode &= ~O_CREAT; in vn_open_cred()
283 *flagp = fmode; in vn_open_cred()
288 *flagp = fmode; in vn_open_cred()
349 if (fmode & FREAD) in vn_open_vnode()
351 if (fmode & FEXEC) in vn_open_vnode()
353 if ((fmode & O_APPEND) && (fmode & FWRITE)) in vn_open_vnode()
[all …]
H A Dvfs_syscalls.c4336 int fmode, error; in sys_fhopen() local
4343 fmode = FFLAGS(uap->flags); in sys_fhopen()
4345 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT)) in sys_fhopen()
4373 error = vn_open_vnode(vp, fmode, td->td_ucred, td, fp); in sys_fhopen()
4388 finit(fp, (fmode & FMASK) | (fp->f_flag & FHASLOCK), DTYPE_VNODE, vp, in sys_fhopen()
4391 if ((fmode & O_TRUNC) != 0) { in sys_fhopen()
4397 error = finstall(td, fp, &indx, fmode, NULL); in sys_fhopen()
/freebsd-12.1/contrib/gcc/
H A Doptabs.c4511 for (fmode = GET_MODE (to); fmode != VOIDmode; in expand_float()
4512 fmode = GET_MODE_WIDER_MODE (fmode)) in expand_float()
4562 for (fmode = GET_MODE (to); fmode != VOIDmode; in expand_float()
4563 fmode = GET_MODE_WIDER_MODE (fmode)) in expand_float()
4710 for (fmode = GET_MODE (from); fmode != VOIDmode; in expand_fix()
4711 fmode = GET_MODE_WIDER_MODE (fmode)) in expand_fix()
4767 for (fmode = GET_MODE (from); fmode != VOIDmode; in expand_fix()
4768 fmode = GET_MODE_WIDER_MODE (fmode)) in expand_fix()
5039 fmode = GET_MODE_WIDER_MODE (fmode)) in init_interclass_conv_libfuncs()
5053 for (fmode = first_from_mode; fmode != VOIDmode; in init_interclass_conv_libfuncs()
[all …]
H A Dbuiltins.c5307 enum machine_mode fmode, imode, rmode; in expand_builtin_signbit() local
5318 fmode = TYPE_MODE (TREE_TYPE (arg)); in expand_builtin_signbit()
5320 fmt = REAL_MODE_FORMAT (fmode); in expand_builtin_signbit()
5328 if (fmt->has_signed_zero && HONOR_SIGNED_ZEROS (fmode)) in expand_builtin_signbit()
5337 if (GET_MODE_SIZE (fmode) <= UNITS_PER_WORD) in expand_builtin_signbit()
5339 imode = int_mode_for_mode (fmode); in expand_builtin_signbit()
5349 word = (GET_MODE_BITSIZE (fmode) - bitpos) / BITS_PER_WORD; in expand_builtin_signbit()
5352 temp = operand_subword_force (temp, word, fmode); in expand_builtin_signbit()
/freebsd-12.1/usr.sbin/ifmcstat/
H A Difmcstat.c676 uint8_t fmode;
679 fmode = pinm->inm_st[1].iss_fmode;
680 if (fmode == MCAST_UNDEFINED)
807 uint32_t fmode; in inm_print_sources_sysctl() local
846 fmode = *p++; in inm_print_sources_sysctl()
849 modestr = inm_mode(fmode); in inm_print_sources_sysctl()
853 printf(" mode (%u)", fmode); in inm_print_sources_sysctl()
907 uint32_t fmode; in in6m_print_sources_sysctl() local
950 fmode = *p++; in in6m_print_sources_sysctl()
953 modestr = inm_mode(fmode); in in6m_print_sources_sysctl()
[all …]
/freebsd-12.1/usr.sbin/mtest/
H A Dmtest.c389 uint32_t fmode, ifindex; in process_cmd() local
537 fmode = (*cmd == 'i') ? MCAST_INCLUDE : MCAST_EXCLUDE; in process_cmd()
591 &su.sa, su.sa.sa_len, fmode, n, &sources[0].ss) != 0) in process_cmd()
619 &su.sa, su.sa.sa_len, &fmode, &n, NULL) != 0) { in process_cmd()
639 if (fmode == MCAST_EXCLUDE) { in process_cmd()
674 if (fmode == MCAST_EXCLUDE) { in process_cmd()
728 su.sa.sa_len, &fmode, &nsrc, &sources[0].ss) != 0) { in process_cmd()
733 printf("%s\n", (fmode == MCAST_INCLUDE) ? "include" : in process_cmd()
/freebsd-12.1/usr.sbin/spi/
H A Dspi.c463 uint32_t fmode, fspeed; in get_info() local
470 err = ioctl(hdev, SPIGENIOC_GET_SPI_MODE, &fmode); in get_info()
480 cpath, fmode, fspeed);//, max_cmd, max_data, temp_buf); in get_info()
492 uint32_t fmode = popt->mode; in set_mode() local
497 return ioctl(hdev, SPIGENIOC_SET_SPI_MODE, &fmode); in set_mode()
/freebsd-12.1/tests/sys/audit/
H A Dutils.c95 int fmode = AUDITPIPE_PRESELECT_MODE_LOCAL; in set_preselect_mode() local
98 if (ioctl(filedesc, AUDITPIPE_SET_PRESELECT_MODE, &fmode) < 0) in set_preselect_mode()
/freebsd-12.1/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_diff.c259 mode_t fmode, tmode; in write_inuse_diffs_one() local
293 fmode = fsb.zs_mode & S_IFMT; in write_inuse_diffs_one()
295 if (fmode == S_IFDIR || tmode == S_IFDIR || fsb.zs_links == 0 || in write_inuse_diffs_one()
317 if (fmode != tmode && fsb.zs_gen == tsb.zs_gen) in write_inuse_diffs_one()
/freebsd-12.1/sys/fs/nfsclient/
H A Dnfs_clvnops.c497 int fmode = ap->a_mode; in nfs_open() local
509 error = nfsrpc_open(vp, fmode, ap->a_cred, ap->a_td); in nfs_open()
576 if (newnfs_directio_enable && (fmode & O_DIRECT) && in nfs_open()
593 if (NFSHASPNFS(VFSTONFS(vp->v_mount)) && (fmode & FWRITE) != 0) in nfs_open()
603 if ((fmode & FWRITE) != 0) { in nfs_open()
686 int fmode = ap->a_fflag; in nfs_close() local
1555 int error = 0, attrflag, dattrflag, fmode = 0; in nfs_create() local
1567 fmode |= O_EXCL; in nfs_create()
1609 if (NFS_ISV34(dvp) && (fmode & O_EXCL) && in nfs_create()
1611 fmode &= ~O_EXCL; in nfs_create()
[all …]
H A Dnfs_clrpcops.c1966 nfsquad_t cverf, int fmode, struct ucred *cred, NFSPROC_T *p, in nfsrpc_create() argument
1992 fmode, owp, &dp, cred, p, dnap, nnap, nfhpp, in nfsrpc_create()
1996 cverf, fmode, owp, &dp, cred, p, dnap, nnap, nfhpp, in nfsrpc_create()
2026 fmode, cred, p, dnap, nnap, nfhpp, attrflagp, dattrflagp, in nfsrpc_create()
2037 nfsquad_t cverf, int fmode, struct ucred *cred, NFSPROC_T *p, in nfsrpc_createv23() argument
2054 if (fmode & O_EXCL) { in nfsrpc_createv23()
2085 nfsquad_t cverf, int fmode, struct nfsclowner *owp, struct nfscldeleg **dpp, in nfsrpc_createv4() argument
2127 if (fmode & O_EXCL) { in nfsrpc_createv4()
7293 nfsquad_t cverf, int fmode, struct nfsclowner *owp, struct nfscldeleg **dpp, in nfsrpc_createlayout() argument
7337 if ((fmode & O_EXCL) != 0) { in nfsrpc_createlayout()
[all …]
/freebsd-12.1/sys/netinet6/
H A Din6_mcast.c1402 uint16_t fmode; in in6p_block_unblock_source() local
1469 fmode = imf->im6f_st[0]; in in6p_block_unblock_source()
1470 if (fmode != MCAST_EXCLUDE) { in in6p_block_unblock_source()
1497 ims = im6f_graft(imf, fmode, &ssa->sin6); in in6p_block_unblock_source()
2743 uint32_t fmode, ifindex; in sysctl_ip6_mcast_filters() local
2797 fmode = inm->in6m_st[1].iss_fmode; in sysctl_ip6_mcast_filters()
2798 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t)); in sysctl_ip6_mcast_filters()
2806 if (fmode != im6s_get_mode(inm, ims, 1)) { in sysctl_ip6_mcast_filters()
/freebsd-12.1/contrib/nvi/common/
H A Dexf.c858 mode_t fmode; in file_write() local
862 fmode = sb.st_mode; in file_write()
864 fmode |= S_IWUSR; in file_write()
867 if (chmod(name, fmode) != 0) in file_write()
/freebsd-12.1/sys/netinet/
H A Din_mcast.c1407 uint16_t fmode; in inp_block_unblock_source() local
1502 fmode = imf->imf_st[0]; in inp_block_unblock_source()
1503 if (fmode != MCAST_EXCLUDE) { in inp_block_unblock_source()
1529 ims = imf_graft(imf, fmode, &ssa->sin); in inp_block_unblock_source()
2882 uint32_t fmode, ifindex; in sysctl_ip_mcast_filters() local
2929 fmode = inm->inm_st[1].iss_fmode; in sysctl_ip_mcast_filters()
2930 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t)); in sysctl_ip_mcast_filters()
2939 if (fmode != ims_get_mode(inm, ims, 1)) { in sysctl_ip_mcast_filters()
/freebsd-12.1/sys/fs/unionfs/
H A Dunion_subr.c902 int fmode; in unionfs_vn_create_on_upper() local
910 fmode = FFLAGS(O_WRONLY | O_CREAT | O_TRUNC | O_EXCL); in unionfs_vn_create_on_upper()
947 if ((error = VOP_OPEN(vp, fmode, cred, td, NULL)) != 0) { in unionfs_vn_create_on_upper()
957 VOP_CLOSE(vp, fmode, cred, td); in unionfs_vn_create_on_upper()
/freebsd-12.1/contrib/atf/atf-c/detail/
H A Dfs_test.c620 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-12.1/sys/sys/
H A Dvnode.h681 int vn_open_vnode(struct vnode *vp, int fmode, struct ucred *cred,
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_acl.c889 zfs_mode_compute(uint64_t fmode, zfs_acl_t *aclp, in zfs_mode_compute() argument
901 mode = (fmode & (S_IFMT | S_ISUID | S_ISGID | S_ISVTX)); in zfs_mode_compute()
/freebsd-12.1/contrib/gcc/config/rs6000/
H A Drs6000.c5363 enum machine_mode fmode = mode; in function_arg() local
5370 gcc_assert (cum->fregno == FP_ARG_MAX_REG && fmode == TFmode); in function_arg()
5373 fmode = DFmode; in function_arg()
5384 if (!needs_psave && mode == fmode) in function_arg()
5385 return gen_rtx_REG (fmode, cum->fregno); in function_arg()
5435 r = gen_rtx_REG (fmode, cum->fregno); in function_arg()