HomeSort by: relevance | last modified time | path
    Searched refs:umask (Results 1 - 25 of 62) sorted by relevancy

1 2 3

  /src/tests/lib/libc/sys/
t_umask.c 43 static const char path[] = "umask";
62 atf_tc_set_md_var(tc, "descr", "Check that umask(2) is inherited");
74 (void)umask(mask[i] | mask[i + 1]);
83 mode = umask(mask[i]);
100 (void)umask(S_IWGRP | S_IWOTH);
102 atf_tc_fail("umask(2) was not inherited");
107 (void)umask(S_IWGRP | S_IWOTH);
113 atf_tc_set_md_var(tc, "descr", "A basic test of open(2) and umask(2)");
125 (void)umask(mask[i]);
141 str = "invalid umask(2)"
    [all...]
  /src/usr.bin/btkey/
file.c 161 mode = umask(S_IRWXG | S_IRWXO);
163 umask(mode);
195 mode = umask(S_IRWXG | S_IRWXO);
197 umask(mode);
  /src/usr.bin/mkfifo/
mkfifo.c 69 mode = 0666 & ~umask(0);
  /src/bin/ed/
buf.c 214 u = umask(077);
226 umask(u);
236 umask(u);
239 umask(u);
  /src/usr.sbin/kvm_mkdb/
kvm_mkdb.c 162 (void)umask(0);
  /src/sbin/mknod/
mknod.c 184 umask(mode = umask(0));
255 umask(0);
  /src/lib/libperfuse/
fuse.h 225 uint32_t umask; member in struct:fuse_mknod_in
231 uint32_t umask; member in struct:fuse_mkdir_in
269 uint32_t umask; member in struct:fuse_create_in
  /src/bin/mkdir/
mkdir.c 77 mode = (S_IRWXU | S_IRWXG | S_IRWXO) & ~umask(0);
128 * The mkdir() and umask() calls both honor
194 * The mkdir() and umask() calls both honor only the
  /src/games/phantasia/
setup.c 48 / fgets(), floor(), srandom(), umask(), drandom(), strcpy(), getuid(),
104 umask(0117); /* only owner can read/write created files */
  /src/usr.bin/uuencode/
uuencode.c 100 mode = RW & ~umask(RW);
  /src/usr.sbin/rpc.yppasswdd/
yppasswdd_mkpw.c 171 (void) umask(022);
  /src/bin/sh/
miscbltin.c 449 mask = umask(0);
450 umask(mask);
503 umask(mask);
517 umask(~mask & 0777);
522 out2str("umask: I/O error\n");
  /src/games/atc/
log.c 55 #include <sys/stat.h> /* for umask(2) */
122 old_mask = umask(0);
128 (void)umask(old_mask);
  /src/usr.sbin/ypserv/common/
ypdb.c 97 * dbopen(3) file, read-write, 0644 (modified by umask(2)).
117 myumask = umask(0);
118 (void)umask(myumask);
  /src/bin/ksh/
c_sh.c 82 old_umask = umask(0);
83 umask(old_umask);
117 old_umask = umask(0);
118 umask(old_umask); /* in case of error */
177 umask(new_umask);
904 {"+umask", c_umask},
  /src/games/warp/
warp.c 307 umask(022); /* mustn't rely on incoming umask--could be 033 which */
  /src/usr.sbin/rpcbind/
rpcbind.c 464 oldmask = umask(S_IXUSR|S_IXGRP|S_IXOTH);
476 (void)umask(oldmask);
524 oldmask = umask(S_IXUSR|S_IXGRP|S_IXOTH);
533 (void) umask(oldmask);
  /src/lib/libc/gen/
setmode.c 204 (void)umask(mask = umask(0));
  /src/usr.sbin/npf/npfd/
npfd_log.c 297 mode_t omask = umask(077);
316 (void)umask(omask);
  /src/bin/cp/
cp.c 204 /* Copy the umask for explicit mode setting. */
205 myumask = umask(0);
206 (void)umask(myumask);
475 * modified by the umask. Trade-off between being
478 * umask blocks owner writes, we fail..
499 * umask; arguably wrong, but it's been that way
505 * by the umask. Optimise by avoiding a chmod()
  /src/common/lib/libprop/
prop_extern.c 570 * and the mode set to 0666 modified by the caller's umask.
611 myumask = umask(0);
612 (void)umask(myumask);
  /src/usr.sbin/lpr/lpd/
lpd.c 241 (void)umask(0);
731 (void)umask(07);
737 (void)umask(0);
  /src/usr.bin/mail/
collect.c 288 m = umask(077);
290 (void)umask(m);
  /src/usr.sbin/rpc.pcnfsd/
pcnfsd_v2.c 97 r.def_umask = umask(0);
98 (void) umask(r.def_umask); /* or use 022 */
  /src/usr.sbin/lpr/lpr/
lpr.c 538 int oldumask = umask(0); /* should block signals */
544 (void)umask(oldumask);

Completed in 26 milliseconds

1 2 3