Searched refs:fchown (Results 1 - 25 of 51) sorted by relevance

123

/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dfchown.c1 /* $NetBSD: fchown.c,v 1.2 2017/01/28 21:31:50 christos Exp $ */
41 fchown(int fd, uid_t owner, gid_t group) function
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/
H A Dfchown-stub.c24 /* A trivial substitute for 'fchown'.
26 DJGPP 2.03 and earlier (and perhaps later) don't have 'fchown',
30 fchown (int fd, uid_t uid, gid_t gid) function
H A Dchown.c89 use fchown on the resulting descriptor. */
99 result = fchown (fd, uid, gid);
102 /* POSIX says fchown can fail with errno == EINVAL on sockets
/netbsd-current/external/mpl/bind/dist/bin/confgen/
H A Dos.c37 return (fchown(fileno(fd), pw->pw_uid, -1));
/netbsd-current/lib/libposix/sys/
H A DMakefile.inc8 PSEUDO= chown.S fchown.S lchown.S rename.S
/netbsd-current/include/
H A Dunistd.h263 int fchown(int, uid_t, gid_t) __RENAME(__posix_fchown);
265 int fchown(int, uid_t, gid_t);
/netbsd-current/external/ibm-public/postfix/dist/src/util/
H A Dsafe_open.c225 && fchown(vstream_fileno(fp), user, group) < 0) {
/netbsd-current/external/bsd/tcpdump/dist/lbl/
H A Dos-sunos4.h65 int fchown(int, int, int);
/netbsd-current/external/bsd/libpcap/dist/lbl/
H A Dos-sunos4.h67 int fchown(int, int, int);
/netbsd-current/usr.sbin/lpr/lpr/
H A Dlpr.c306 (void)fchown(tfd, DU, -1); /* owned by daemon for protection */
550 if (fchown(f, userid, -1) < 0) {
/netbsd-current/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_write_disk_perms.c70 /* Find a GID for which fchown() fails. This is our "invalid" GID. */
74 if (fchown(fd, uid, gid) != 0) {
81 * Find a GID for which fchown() succeeds, but which isn't the
89 if (fchown(fd, uid, gid) == 0) {
/netbsd-current/sys/rump/include/rump/
H A Drump_syscallshotgun.h95 #define fchown(a,b,c) rump_sys_fchown(a,b,c) macro
/netbsd-current/usr.bin/chpass/
H A Dedit.c140 (void)fchown(fd, getuid(), getgid());
/netbsd-current/external/bsd/cron/dist/
H A Dcrontab.c407 x = fchown(t, MY_UID(pw), MY_GID(pw));
776 error = fchown(fileno(tmp), file_owner, (uid_t)-1);
/netbsd-current/external/public-domain/xz/dist/src/xz/
H A Dfile_io.c104 // If fchown() fails setting the owner, we warn about it only if
361 // isn't already us, fchown() probably doesn't succeed. We warn
362 // about failing fchown() only if we are root.
363 if (fchown(pair->dest_fd, pair->src_st.st_uid, -1) && warn_fchown)
369 if (fchown(pair->dest_fd, -1, pair->src_st.st_gid)) {
679 // for them, but calls fchown() after fchmod(),
/netbsd-current/bin/mv/
H A Dmv.c351 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
/netbsd-current/usr.bin/sed/
H A Dmain.c446 fchown(fileno(outfile), sb.st_uid, sb.st_gid);
/netbsd-current/libexec/mail.local/
H A Dmail.local.c312 (void)fchown(mbfd, pw->pw_uid, pw->pw_gid);
/netbsd-current/share/examples/refuse/fanoutfs/
H A Dfanoutfs.c185 if (fchown(fdto, st.st_uid, st.st_gid) < 0) {
186 warn("bad fchown");
/netbsd-current/usr.bin/at/
H A Dat.c259 if (fchown(fd2, real_uid, real_gid) == -1)
/netbsd-current/bin/cp/
H A Dutils.c378 if (fd ? fchown(fd, fs->st_uid, fs->st_gid) :
/netbsd-current/lib/libc/sys/
H A DMakefile.inc116 faccessat.S fchdir.S fchflags.S fchmod.S fchmodat.S fchown.S \
307 MLINKS+=chown.2 fchown.2 chown.2 lchown.2
/netbsd-current/external/bsd/libbind/dist/
H A Dport_after.h.in507 int fchown(int, int, int);
/netbsd-current/usr.sbin/edquota/
H A Dedquota.c369 (void)fchown(fd, getuid(),
1281 fchown(tmpfd, getuid(), getgid());
/netbsd-current/external/bsd/libbind/dist/isc/
H A Dlogging.c156 (void) fchown(fd, chan->out.file.owner, chan->out.file.group);

Completed in 604 milliseconds

123