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

12

/freebsd-9.3-release/crypto/heimdal/lib/roken/
H A Dfchown.c36 RCSID("$Id: fchown.c 14773 2005-04-12 11:29:18Z lha $");
42 fchown(int fd, uid_t owner, gid_t group) function
/freebsd-9.3-release/contrib/bind9/bin/confgen/unix/
H A Dos.c42 return (fchown(fileno(fd), pw->pw_uid, -1));
/freebsd-9.3-release/contrib/sendmail/test/
H A Dt_pathconf.c68 if (fchown(fd, 1, 1) >= 0)
69 printf("*** but fchown works anyhow! ***\n");
71 printf("and fchown agrees\n");
77 if (fchown(fd, 1, 1) >= 0)
/freebsd-9.3-release/sbin/mksnap_ffs/
H A Dmksnap_ffs.c136 if (fchown(fd, -1, grp->gr_gid) != 0)
/freebsd-9.3-release/usr.sbin/pw/
H A Dcpdir.c113 fchown(outfd, uid, gid);
/freebsd-9.3-release/sys/kern/
H A Dcapabilities.conf167 fchown
/freebsd-9.3-release/contrib/libpcap/lbl/
H A Dos-sunos4.h67 int fchown(int, int, int);
/freebsd-9.3-release/contrib/tcpdump/lbl/
H A Dos-sunos4.h67 int fchown(int, int, int);
/freebsd-9.3-release/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_perms.c71 /* Find a GID for which fchown() fails. This is our "invalid" GID. */
75 if (fchown(fd, uid, gid) != 0) {
82 * Find a GID for which fchown() succeeds, but which isn't the
90 if (fchown(fd, uid, gid) == 0) {
/freebsd-9.3-release/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c180 ret = fchown(fd_cap, -1, -1);
181 CHECK_RESULT(fchown, CAP_FCHOWN, ret == 0);
/freebsd-9.3-release/contrib/sendmail/libsmdb/
H A Dsmndbm.c254 result = fchown(fd, uid, gid);
262 result = fchown(fd, uid, gid);
600 /* XXX Got to get fchown stuff in here */
H A Dsmdb1.c289 result = fchown(fd, uid, gid);
/freebsd-9.3-release/sys/sys/
H A Dsyscall.mk94 fchown.o \
/freebsd-9.3-release/usr.sbin/cron/crontab/
H A Dcrontab.c346 if (fchown(t, getuid(), getgid()) < 0) {
350 warn("fchown");
575 if (fchown(fileno(tmp), ROOT_UID, -1) < OK)
/freebsd-9.3-release/usr.bin/chpass/
H A Dedit.c193 (void)fchown(fileno(fp), getuid(), getgid());
/freebsd-9.3-release/contrib/xz/src/xz/
H A Dfile_io.c64 // If fchown() fails setting the owner, we warn about it only if
167 // isn't already us, fchown() probably doesn't succeed. We warn
168 // about failing fchown() only if we are root.
169 if (fchown(pair->dest_fd, pair->src_st.st_uid, -1) && warn_fchown)
175 if (fchown(pair->dest_fd, -1, pair->src_st.st_gid)) {
468 // for them, but calls fchown() after fchmod(),
/freebsd-9.3-release/lib/libutil/
H A Dquotafile.c185 fchown(qf->fd, 0, grp ? grp->gr_gid : 0);
554 fchown(newqf->fd, 0, grp ? grp->gr_gid : 0);
/freebsd-9.3-release/usr.sbin/lpr/lpr/
H A Dlpr.c329 (void) fchown(tfd, pp->daemon_user, -1);
647 if (fchown(f, userid, -1) < 0) {
/freebsd-9.3-release/bin/mv/
H A Dmv.c319 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
/freebsd-9.3-release/include/
H A Dunistd.h404 int fchown(int, uid_t, gid_t);
/freebsd-9.3-release/tools/regression/priv/
H A Dmain.c397 if (fchown(fd, uid, gid) < 0)
398 err(-1, "test %s: fchown(%s, %d, %d)", test, fpathp, uid,
/freebsd-9.3-release/usr.bin/sed/
H A Dmain.c409 fchown(fileno(outfile), sb.st_uid, sb.st_gid);
/freebsd-9.3-release/bin/cp/
H A Dutils.c347 if (fdval ? fchown(fd, fs->st_uid, fs->st_gid) :
/freebsd-9.3-release/lib/libc/sys/
H A DSymbol.map88 fchown;
/freebsd-9.3-release/contrib/openbsm/libauditd/
H A Dauditd_lib.c852 if (fchown(fd, -1, gid) < 0 || fchmod(fd, S_IRUSR | S_IRGRP) < 0) {

Completed in 349 milliseconds

12