Searched refs:umask (Results 1 - 25 of 115) sorted by relevance

12345

/freebsd-11.0-release/contrib/netbsd-tests/lib/libc/sys/
H A Dt_umask.c43 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]);
140 str = "invalid umask(
[all...]
/freebsd-11.0-release/usr.bin/procstat/
H A Dprocstat_cred.c64 xo_emit("{:umask/%5s} ", get_umask(procstat, kipp));
95 static char umask[4]; local
98 snprintf(umask, 4, "%03o", fd_cmask);
99 return (umask);
/freebsd-11.0-release/bin/mkdir/
H A Dmkdir.c118 * The mkdir() and umask() calls both honor only the low
122 * as chmod will (obviously) ignore the umask. Do this
166 * mkdir -p -m $(umask -S),u+wx $(dirname dir) &&
169 * We change the user's umask and then restore it,
172 oumask = umask(0);
174 (void)umask(numask);
178 (void)umask(oumask);
207 (void)umask(oumask);
/freebsd-11.0-release/crypto/openssh/openbsd-compat/
H A Dxmmap.c67 old_umask = umask(0177);
69 umask(old_umask);
/freebsd-11.0-release/contrib/ntp/sntp/libopts/
H A Dpgusage.c54 mode_t svmsk = umask(cmask);
56 (void)umask(svmsk);
/freebsd-11.0-release/bin/ed/
H A Dbuf.c198 u = umask(077);
206 umask(u);
209 umask(u);
/freebsd-11.0-release/tests/sys/fifo/
H A Dfifo_create.c50 * - The mode bits on the fifo are a product of combining the umask and
183 * for fifos, now make sure that the umask, requested permissions, and
216 old_umask = umask(0022);
220 umask(ptp->pt_umask);
252 umask(old_umask);
/freebsd-11.0-release/sys/cddl/compat/opensolaris/sys/
H A Dvnode.h159 vnode_t **vpp, enum create crwhy, mode_t umask, struct vnode *startvp,
177 ASSERT(umask == 0);
197 vnode_t **vpp, enum create crwhy, mode_t umask)
201 umask, NULL, -1));
203 #define vn_open(pnamep, seg, filemode, createmode, vpp, crwhy, umask) \
204 zfs_vn_open((pnamep), (seg), (filemode), (createmode), (vpp), (crwhy), (umask))
158 vn_openat(char *pnamep, enum uio_seg seg, int filemode, int createmode, vnode_t **vpp, enum create crwhy, mode_t umask, struct vnode *startvp, int fd) argument
196 zfs_vn_open(char *pnamep, enum uio_seg seg, int filemode, int createmode, vnode_t **vpp, enum create crwhy, mode_t umask) argument
/freebsd-11.0-release/usr.sbin/rpcbind/
H A Dwarmstart.c75 omask = umask(077);
90 (void) umask(omask);
H A Drpcbind.c423 oldmask = umask(S_IXUSR|S_IXGRP|S_IXOTH);
433 (void)umask(oldmask);
479 oldmask = umask(S_IXUSR|S_IXGRP|S_IXOTH);
486 (void) umask(oldmask);
/freebsd-11.0-release/contrib/tcp_wrappers/
H A Dmiscd.c56 umask(DAEMON_UMASK);
H A Dtcpd.c56 umask(DAEMON_UMASK);
/freebsd-11.0-release/usr.bin/mkfifo/
H A Dmkfifo.c85 umask(0);
/freebsd-11.0-release/usr.sbin/vipw/
H A Dvipw.c100 /* Force umask for partial writes made in the edit phase */
101 (void)umask(077);
/freebsd-11.0-release/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_as.c221 uint_t kmask, kbits, umask, ubits; local
242 umask = DT_IDFLG_USER;
248 umask = DT_IDFLG_USER;
254 umask = DT_IDFLG_USER;
258 kmask = umask = 0;
302 else if ((idp->di_flags & umask) == ubits)
434 } else if ((idp->di_flags & umask) == ubits) {
/freebsd-11.0-release/contrib/sendmail/src/
H A Dbf.c233 ** Apply current umask to fmode as it may change by the time
238 omask = umask(0);
240 (void) umask(omask);
545 /* Clear umask as bf_filemode are the true perms */
546 omask = umask(0);
551 (void) umask(omask);
708 /* Clear umask as bf_filemode are the true perms */
709 omask = umask(0);
714 (void) umask(omask);
/freebsd-11.0-release/usr.bin/ktrace/
H A Dktrace.c147 omask = umask(S_IRWXG|S_IRWXO);
164 (void)umask(omask);
/freebsd-11.0-release/bin/sh/
H A Dmiscbltin.c293 mask = umask(0);
294 umask(mask);
340 umask(mask);
348 umask(~mask & 0777);
/freebsd-11.0-release/contrib/amd/amd/
H A Damd.c210 mode_t prev_umask = umask(0022); /* set secure temporary umask */
219 umask(prev_umask); /* restore umask */
490 * Fix-up any umask problems. Most systems default
493 orig_umask = umask(0);
/freebsd-11.0-release/crypto/openssh/
H A Dauth-krb5.c253 old_umask = umask(0177);
256 umask(old_umask);
/freebsd-11.0-release/usr.sbin/cron/crontab/
H A Dcrontab.c338 um = umask(077);
342 (void) umask(um);
345 (void) umask(um);
/freebsd-11.0-release/usr.sbin/ppp/
H A Dserver.c270 oldmask = umask(mask);
273 umask(oldmask);
279 umask(oldmask);
/freebsd-11.0-release/usr.sbin/rtadvd/
H A Dcontrol.c309 old_umask = umask(S_IXUSR|S_IXGRP|S_IXOTH);
314 umask(old_umask);
317 umask(old_umask);
/freebsd-11.0-release/release/picobsd/tinyware/passwd/
H A Dpw_util.c112 (void)umask(0);
/freebsd-11.0-release/usr.bin/uuencode/
H A Duuencode.c115 mode = RW & ~umask(RW);

Completed in 239 milliseconds

12345