Home
last modified time | relevance | path

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

/openbsd-src/sys/kern/
H A Dvfs_vnops.c79 vn_open(struct nameidata *ndp, int fmode, int cmode) in vn_open() argument
91 * nameiop based on the fmode and cmode flags, so validate that in vn_open()
98 if ((fmode & (FREAD|FWRITE)) == 0) in vn_open()
100 if ((fmode & (O_TRUNC | FWRITE)) == O_TRUNC) in vn_open()
102 if (fmode & O_CREAT) { in vn_open()
105 if ((fmode & O_EXCL) == 0 && (fmode & O_NOFOLLOW) == 0) in vn_open()
114 if (fmode & O_EXCL) in vn_open()
121 fmode &= ~O_TRUNC; in vn_open()
131 if (fmode in vn_open()
[all...]
/openbsd-src/lib/libc/stdlib/
H A Decvt.c31 __cvt(double value, int ndigit, int *decpt, int *sign, int fmode, int pad) in __cvt() argument
54 *decpt = 1 - fmode; /* 1 for 'e', 0 for 'f' */ in __cvt()
61 p = __dtoa(value, fmode + 2, ndigit, decpt, sign, &rve); in __cvt()
72 if (pad && fmode) in __cvt()
/openbsd-src/gnu/gcc/gcc/
H A Doptabs.c4496 enum machine_mode fmode, imode; in expand_float() local
4507 for (fmode = GET_MODE (to); fmode != VOIDmode; in expand_float()
4508 fmode = GET_MODE_WIDER_MODE (fmode)) in expand_float()
4514 if (fmode != GET_MODE (to) in expand_float()
4515 && significand_size (fmode) < GET_MODE_BITSIZE (GET_MODE (from))) in expand_float()
4518 icode = can_float_p (fmode, imode, unsignedp); in expand_float()
4521 enum insn_code scode = can_float_p (fmode, imode, 0); in expand_float()
4533 if (fmode != GET_MODE (to)) in expand_float()
4534 target = gen_reg_rtx (fmode); in expand_float()
4558 for (fmode = GET_MODE (to); fmode != VOIDmode; in expand_float()
[all …]
H A Dbuiltins.c5300 enum machine_mode fmode, imode, rmode; in expand_builtin_signbit() local
5311 fmode = TYPE_MODE (TREE_TYPE (arg)); in expand_builtin_signbit()
5313 fmt = REAL_MODE_FORMAT (fmode); in expand_builtin_signbit()
5321 if (fmt->has_signed_zero && HONOR_SIGNED_ZEROS (fmode)) in expand_builtin_signbit()
5330 if (GET_MODE_SIZE (fmode) <= UNITS_PER_WORD) in expand_builtin_signbit()
5332 imode = int_mode_for_mode (fmode); in expand_builtin_signbit()
5342 word = (GET_MODE_BITSIZE (fmode) - bitpos) / BITS_PER_WORD; in expand_builtin_signbit()
5345 temp = operand_subword_force (temp, word, fmode); in expand_builtin_signbit()
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Doptabs.c4551 enum machine_mode fmode, imode; local
4562 for (fmode = GET_MODE (to); fmode != VOIDmode;
4563 fmode = GET_MODE_WIDER_MODE (fmode))
4569 if (fmode != GET_MODE (to)
4570 && significand_size (fmode) < GET_MODE_BITSIZE (GET_MODE (from)))
4573 icode = can_float_p (fmode, imode, unsignedp);
4575 icode = can_float_p (fmode, imode, 0), doing_unsigned = 0;
4585 if (fmode != GET_MODE (to))
4586 target = gen_reg_rtx (fmode);
4617 for (fmode = GET_MODE (to); fmode != VOIDmode;
[all …]
/openbsd-src/usr.bin/cvs/
H A Dclient.c694 mode_t fmode; in cvs_client_updated() local
733 cvs_strtomode(mode, &fmode); in cvs_client_updated()
735 fmode &= ~cvs_umask; in cvs_client_updated()
784 if (fchmod(fd, fmode) == -1) in cvs_client_updated()
797 mode_t fmode; in cvs_client_merged() local
836 cvs_strtomode(mode, &fmode); in cvs_client_merged()
838 fmode &= ~cvs_umask; in cvs_client_merged()
863 if (fchmod(fd, fmode) == -1) in cvs_client_merged()
H A Drcs.c157 mode_t fmode; in rcs_open() local
164 fmode = S_IRUSR|S_IRGRP|S_IROTH; in rcs_open()
171 fmode = (mode_t)mode; in rcs_open()
175 fmode = st.st_mode; in rcs_open()
178 fmode &= ~cvs_umask; in rcs_open()
184 rfp->rf_mode = fmode; in rcs_open()
H A Dserver.c397 mode_t fmode; in cvs_server_modified() local
410 cvs_strtomode(mode, &fmode); in cvs_server_modified()
/openbsd-src/usr.bin/mg/
H A Dfileio.c102 mode_t fmode = DEFFILEMODE; in ffwopen() local
105 fmode = bp->b_fi.fi_mode & 07777; in ffwopen()
107 fd = open(fn, O_RDWR | O_CREAT | O_TRUNC, fmode); in ffwopen()
385 mode_t fmode = DEFFILEMODE; /* XXX?? */ in copy() local
398 if ((ofd = open(toname, O_WRONLY|O_CREAT|O_TRUNC, fmode)) == -1) { in copy()
/openbsd-src/usr.bin/rcs/
H A Drcsprog.c190 mode_t fmode; in rcs_main() local
198 fmode = S_IRUSR|S_IRGRP|S_IROTH; in rcs_main()
324 if ((file = rcs_open(fpath, fd, flags, fmode)) == NULL) { in rcs_main()
H A Dci.c68 mode_t fmode; member
125 pb.fmode = S_IRUSR|S_IRGRP|S_IROTH; in checkin_main()
277 pb.file = rcs_open(pb.fpath, fd, pb.openflags, pb.fmode); in checkin_main()
H A Drcs.c88 mode_t fmode; in rcs_open() local
94 fmode = S_IRUSR|S_IRGRP|S_IROTH; in rcs_open()
101 fmode = (mode_t)mode; in rcs_open()
108 rfp->rf_mode = fmode; in rcs_open()
/openbsd-src/usr.bin/rsync/
H A Dextern.h85 enum fmode { enum
99 enum fmode mode; /* mode of operation */
/openbsd-src/gnu/usr.bin/binutils/gdb/rdi-share/
H A Dhsys.c233 const char* fmode[] = {"r","rb","r+","r+b", in HandleSysMessage() local
430 fhreal = fopen((char *)buffp+4, fmode[mode&0xFF]); in HandleSysMessage()
/openbsd-src/sys/nfs/
H A Dnfs_vnops.c1555 int error = 0, wccflag = NFSV3_WCCRATTR, gotvp = 0, fmode = 0; in nfs_create()
1567 fmode |= O_EXCL; in nfs_create()
1580 if (fmode & O_EXCL) { in nfs_create()
1624 if (info.nmi_v3 && (fmode & O_EXCL) && error == NFSERR_NOTSUPP) { in nfs_create()
1625 fmode &= ~O_EXCL; in nfs_create()
1628 } else if (info.nmi_v3 && (fmode & O_EXCL)) { in nfs_create()
1552 int error = 0, wccflag = NFSV3_WCCRATTR, gotvp = 0, fmode = 0; nfs_create() local
/openbsd-src/gnu/gcc/gcc/config/rs6000/
H A Drs6000.c5330 enum machine_mode fmode = mode; in function_arg() local
5337 gcc_assert (cum->fregno == FP_ARG_MAX_REG && fmode == TFmode); in function_arg()
5340 fmode = DFmode; in function_arg()
5351 if (!needs_psave && mode == fmode) in function_arg()
5352 return gen_rtx_REG (fmode, cum->fregno); in function_arg()
5402 r = gen_rtx_REG (fmode, cum->fregno); in function_arg()