Home
last modified time | relevance | path

Searched refs:new_mode (Results 1 – 25 of 82) sorted by relevance

1234

/netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/
H A Dchmod.c74 mode_t mode_mask, file_mode, new_mode; in chmod_internal() local
292 new_mode = 0; in chmod_internal()
298 new_mode |= _S_IREAD; in chmod_internal()
302 new_mode |= _S_IWRITE; in chmod_internal()
310 new_mode |= S_IRUSR; in chmod_internal()
312 new_mode |= S_IRGRP; in chmod_internal()
314 new_mode |= S_IROTH; in chmod_internal()
321 new_mode |= S_IWUSR; in chmod_internal()
323 new_mode |= S_IWGRP; in chmod_internal()
325 new_mode |= S_IWOTH; in chmod_internal()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/
H A Dchmod.c77 mode_t file_mode, new_mode; in chmod_internal() local
295 new_mode = 0; in chmod_internal()
301 new_mode |= _S_IREAD; in chmod_internal()
305 new_mode |= _S_IWRITE; in chmod_internal()
313 new_mode |= S_IRUSR; in chmod_internal()
315 new_mode |= S_IRGRP; in chmod_internal()
317 new_mode |= S_IROTH; in chmod_internal()
324 new_mode |= S_IWUSR; in chmod_internal()
326 new_mode |= S_IWGRP; in chmod_internal()
328 new_mode |= S_IWOTH; in chmod_internal()
[all …]
/netbsd-src/external/bsd/kyua-testers/dist/
H A Dfs.c232 static const mode_t new_mode = 0700; in try_unprotect() local
234 if (chmod(path, new_mode) == -1) { in try_unprotect()
235 warnx("chmod(%s, %04o) failed", path, new_mode); in try_unprotect()
252 static const mode_t new_mode = 0700; in try_unprotect_symlink() local
255 if (lchmod(path, new_mode) == -1) { in try_unprotect_symlink()
256 warnx("lchmod(%s, %04o) failed", path, new_mode); in try_unprotect_symlink()
262 new_mode); in try_unprotect_symlink()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dcompare-elim.c311 machine_mode new_mode in can_eliminate_compare() local
314 if (new_mode == VOIDmode) in can_eliminate_compare()
317 if (cmp->orig_mode != new_mode) in can_eliminate_compare()
320 rtx flags = gen_rtx_REG (new_mode, targetm.flags_regnum); in can_eliminate_compare()
321 rtx x = gen_rtx_COMPARE (new_mode, cmp->in_a, cmp->in_b); in can_eliminate_compare()
327 cmp->orig_mode = new_mode; in can_eliminate_compare()
541 machine_mode new_mode = SELECT_CC_MODE (cmp->uses[i].code, a, b); in maybe_select_cc_mode() local
542 if (new_mode != sel_mode) in maybe_select_cc_mode()
544 sel_mode = targetm.cc_modes_compatible (sel_mode, new_mode); in maybe_select_cc_mode()
H A Dregcprop.c397 mode_change_ok (machine_mode orig_mode, machine_mode new_mode, in mode_change_ok() argument
400 if (partial_subreg_p (orig_mode, new_mode)) in mode_change_ok()
403 return REG_CAN_CHANGE_MODE_P (regno, orig_mode, new_mode); in mode_change_ok()
413 machine_mode new_mode, unsigned int regno, in maybe_mode_change() argument
417 && partial_subreg_p (copy_mode, new_mode)) in maybe_mode_change()
427 if (orig_mode == new_mode) in maybe_mode_change()
428 return gen_raw_REG (new_mode, regno); in maybe_mode_change()
429 else if (mode_change_ok (orig_mode, new_mode, regno)) in maybe_mode_change()
432 int use_nregs = hard_regno_nregs (copy_regno, new_mode); in maybe_mode_change()
439 = subreg_size_lowpart_offset (GET_MODE_SIZE (new_mode) + copy_offset, in maybe_mode_change()
[all …]
H A Ddse.c1738 scalar_int_mode new_mode; in find_shift_sequence() local
1755 new_mode = new_mode_iter.require (); in find_shift_sequence()
1756 if (GET_MODE_BITSIZE (new_mode) > BITS_PER_WORD) in find_shift_sequence()
1758 if (maybe_lt (GET_MODE_SIZE (new_mode), access_size)) in find_shift_sequence()
1766 poly_uint64 byte = subreg_lowpart_offset (new_mode, store_mode); in find_shift_sequence()
1767 rtx ret = simplify_subreg (new_mode, store_info->const_rhs, in find_shift_sequence()
1771 rtx shift_rtx = gen_int_shift_amount (new_mode, shift); in find_shift_sequence()
1772 ret = simplify_const_binary_operation (LSHIFTRT, new_mode, in find_shift_sequence()
1776 byte = subreg_lowpart_offset (read_mode, new_mode); in find_shift_sequence()
1777 ret = simplify_subreg (read_mode, ret, new_mode, byte); in find_shift_sequence()
[all …]
H A Dgenmodes.c159 new_mode (enum mode_class cl, const char *name, in new_mode() function
482 c = new_mode (cclass, buf, file, line); in make_complex_modes()
534 v = new_mode (vclass, xstrdup (buf), file, line); in make_vector_modes()
557 struct mode_data *v = new_mode (MODE_VECTOR_BOOL, name, file, line); in make_vector_bool_mode()
574 new_mode (cl, name, file, line); in make_special_mode()
586 struct mode_data *m = new_mode (MODE_INT, name, file, line); in make_int_mode()
614 struct mode_data *m = new_mode (cl, name, file, line); in make_fixed_point_mode()
630 struct mode_data *m = new_mode (MODE_FLOAT, name, file, line); in make_float_mode()
647 struct mode_data *m = new_mode (MODE_DECIMAL_FLOAT, name, file, line); in make_decimal_float_mode()
723 m = new_mode (MODE_PARTIAL_INT, name, file, line); in make_partial_integer_mode()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dcompare-elim.cc309 machine_mode new_mode in can_eliminate_compare() local
312 if (new_mode == VOIDmode) in can_eliminate_compare()
315 if (cmp->orig_mode != new_mode) in can_eliminate_compare()
318 rtx flags = gen_rtx_REG (new_mode, targetm.flags_regnum); in can_eliminate_compare()
319 rtx x = gen_rtx_COMPARE (new_mode, cmp->in_a, cmp->in_b); in can_eliminate_compare()
325 cmp->orig_mode = new_mode; in can_eliminate_compare()
539 machine_mode new_mode = SELECT_CC_MODE (cmp->uses[i].code, a, b); in maybe_select_cc_mode() local
540 if (new_mode != sel_mode) in maybe_select_cc_mode()
542 sel_mode = targetm.cc_modes_compatible (sel_mode, new_mode); in maybe_select_cc_mode()
H A Dregcprop.cc397 mode_change_ok (machine_mode orig_mode, machine_mode new_mode, in mode_change_ok() argument
400 if (partial_subreg_p (orig_mode, new_mode)) in mode_change_ok()
403 return REG_CAN_CHANGE_MODE_P (regno, orig_mode, new_mode); in mode_change_ok()
413 machine_mode new_mode, unsigned int regno, in maybe_mode_change() argument
417 && partial_subreg_p (copy_mode, new_mode)) in maybe_mode_change()
427 if (orig_mode == new_mode) in maybe_mode_change()
428 return gen_raw_REG (new_mode, regno); in maybe_mode_change()
429 else if (mode_change_ok (orig_mode, new_mode, regno) in maybe_mode_change()
430 && mode_change_ok (copy_mode, new_mode, copy_regno)) in maybe_mode_change()
433 int use_nregs = hard_regno_nregs (copy_regno, new_mode); in maybe_mode_change()
[all …]
H A Dgenmodes.cc161 new_mode (enum mode_class cl, const char *name, in new_mode() function
492 c = new_mode (cclass, buf, file, line); in make_complex_modes()
544 v = new_mode (vclass, xstrdup (buf), file, line); in make_vector_modes()
568 struct mode_data *v = new_mode (MODE_VECTOR_BOOL, name, file, line); in make_vector_bool_mode()
585 new_mode (cl, name, file, line); in make_special_mode()
597 struct mode_data *m = new_mode (MODE_INT, name, file, line); in make_int_mode()
610 struct mode_data *m = new_mode (MODE_INT, name, file, line); in make_bool_mode()
625 struct mode_data *m = new_mode (MODE_OPAQUE, name, file, line); in make_opaque_mode()
653 struct mode_data *m = new_mode (cl, name, file, line); in make_fixed_point_mode()
669 struct mode_data *m = new_mode (MODE_FLOAT, name, file, line); in make_float_mode()
[all …]
/netbsd-src/sys/arch/next68k/dev/
H A Dnextdisplay.c300 int new_mode; in nextdisplay_ioctl() local
329 new_mode = *(int *)data; in nextdisplay_ioctl()
330 if (new_mode != sc->sc_mode) { in nextdisplay_ioctl()
331 sc->sc_mode = new_mode; in nextdisplay_ioctl()
/netbsd-src/sys/dev/sun/
H A Dbwtwo.c426 int new_mode = *(int*)data; in bwtwo_ioctl() local
427 if (new_mode != sc->sc_mode) in bwtwo_ioctl()
429 sc->sc_mode = new_mode; in bwtwo_ioctl()
430 if(new_mode == WSDISPLAYIO_MODE_EMUL) in bwtwo_ioctl()
H A Dcgthree.c451 int new_mode = *(int*)data; in cgthree_ioctl() local
452 if (new_mode != sc->sc_mode) in cgthree_ioctl()
454 sc->sc_mode = new_mode; in cgthree_ioctl()
455 if(new_mode == WSDISPLAYIO_MODE_EMUL) in cgthree_ioctl()
/netbsd-src/external/gpl3/gcc/dist/gcc/rtl-ssa/
H A Dfunctions.cc201 machine_mode new_mode = combine_modes (user_phi_mode, phi_mode); in simplify_phi_propagate() local
202 if (user_phi_mode != new_mode) in simplify_phi_propagate()
204 user_phi->set_mode (new_mode); in simplify_phi_propagate()
/netbsd-src/sys/arch/macppc/dev/
H A Dvalkyriefb.c385 int new_mode = *(int*)data; in valkyriefb_ioctl() local
386 if (new_mode != sc->sc_mode) { in valkyriefb_ioctl()
387 sc->sc_mode = new_mode; in valkyriefb_ioctl()
388 if (new_mode == WSDISPLAYIO_MODE_EMUL) { in valkyriefb_ioctl()
H A Dofb.c295 int new_mode = *(int*)data; in ofb_ioctl() local
296 if (new_mode != sc->sc_mode) in ofb_ioctl()
298 sc->sc_mode = new_mode; in ofb_ioctl()
299 if (new_mode == WSDISPLAYIO_MODE_EMUL) in ofb_ioctl()
H A Dplatinumfb.c846 int new_mode = *(int*)data; in platinumfb_ioctl() local
848 if (new_mode != sc->sc_mode) { in platinumfb_ioctl()
849 int new_depth = new_mode == WSDISPLAYIO_MODE_EMUL ? in platinumfb_ioctl()
852 switch(new_mode) { in platinumfb_ioctl()
866 sc->sc_mode = new_mode; in platinumfb_ioctl()
871 if (new_mode == WSDISPLAYIO_MODE_EMUL) in platinumfb_ioctl()
/netbsd-src/sys/arch/luna68k/dev/
H A Dlunafb.c245 int new_mode; in omfbioctl() local
272 new_mode = *(int *)data; in omfbioctl()
273 if (new_mode != sc->sc_mode) { in omfbioctl()
274 sc->sc_mode = new_mode; in omfbioctl()
275 if (new_mode == WSDISPLAYIO_MODE_EMUL) in omfbioctl()
/netbsd-src/sys/arch/amiga/dev/
H A Dzz9k_fb.c422 uint16_t new_mode; in zzfb_set_capture() local
442 new_mode = ZZ9K_MODE_SCALE_2 | ZZ9K_MODE_COLOR_32BIT | display_mode; in zzfb_set_capture()
454 ZZREG_W(ZZ9K_MODE, new_mode); in zzfb_set_capture()
462 uint16_t new_mode; in zzfb_set_mode() local
469 new_mode = zzfb_modes[display_mode].scale; in zzfb_set_mode()
479 new_mode = new_mode | zzfb_colors[color_mode].mode | display_mode; in zzfb_set_mode()
497 ZZREG_W(ZZ9K_MODE, new_mode); in zzfb_set_mode()
/netbsd-src/sys/dev/pci/
H A Dgenfb_pci.c216 int new_mode; in pci_genfb_ioctl() local
234 new_mode = *(int *)data; in pci_genfb_ioctl()
235 if (new_mode == WSDISPLAYIO_MODE_EMUL) { in pci_genfb_ioctl()
/netbsd-src/sys/arch/sparc64/dev/
H A Dgfb.c294 int new_mode = *(int*)data; in gfb_ioctl() local
297 if (new_mode != sc->sc_mode) { in gfb_ioctl()
298 sc->sc_mode = new_mode; in gfb_ioctl()
299 if(new_mode == WSDISPLAYIO_MODE_EMUL) { in gfb_ioctl()
/netbsd-src/sys/arch/evbppc/explora/dev/
H A Dfb_elb.c313 int new_mode; in fb_ioctl() local
339 new_mode = *(int *)data; in fb_ioctl()
340 if (new_mode != sc->sc_mode) { in fb_ioctl()
341 sc->sc_mode = new_mode; in fb_ioctl()
342 if (new_mode == WSDISPLAYIO_MODE_EMUL) { in fb_ioctl()
/netbsd-src/sys/dev/sbus/
H A Dcgtwelve.c541 int new_mode = *(int*)data; in cgtwelve_ioctl() local
542 if (new_mode != sc->sc_mode) in cgtwelve_ioctl()
544 sc->sc_mode = new_mode; in cgtwelve_ioctl()
545 if (new_mode == WSDISPLAYIO_MODE_EMUL) in cgtwelve_ioctl()
/netbsd-src/external/gpl2/xcvs/dist/src/
H A Dlock.c224 mode_t new_mode = 0; in lock_name() local
290 new_mode = sb.st_mode; in lock_name()
304 && CVS_MKDIR (retval, new_mode) < 0) in lock_name()
313 new_mode = sb.st_mode; in lock_name()
321 if (CVS_MKDIR (retval, new_mode) < 0 in lock_name()
/netbsd-src/sys/arch/usermode/dev/
H A Dvncfb.c469 int new_mode; in vncfb_ioctl() local
486 new_mode = *(int *)data; in vncfb_ioctl()
487 if (sc->sc_mode != new_mode) { in vncfb_ioctl()
488 sc->sc_mode = new_mode; in vncfb_ioctl()
489 if (new_mode == WSDISPLAYIO_MODE_EMUL) { in vncfb_ioctl()

1234