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

12

/freebsd-head/crypto/heimdal/lib/roken/
H A Dfchown.c39 fchown(int fd, uid_t owner, gid_t group) function
/freebsd-head/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-head/tests/sys/cddl/zfs/bin/
H A Ddir_rd_update.c112 chownret = fchown(fd, 0, 0);
/freebsd-head/usr.sbin/pw/
H A Dcpdir.c120 fchown(destfd, uid, gid);
/freebsd-head/contrib/dma/
H A Ddma-mbox-create.c180 if (fchown(f, user_uid, mail_gid))
/freebsd-head/tests/sys/fifo/
H A Dfifo_misc.c228 * fchmod(2)/fchown(2) on FIFO should work.
276 if (fchown(reader_fd, -1, -1) != 0) {
277 warn("%s: fchown 1", __func__);
286 if (fchown(reader_fd, u, g) != 0) {
287 warn("%s: fchown 2", __func__);
/freebsd-head/sys/kern/
H A Dcapabilities.conf171 fchown
/freebsd-head/contrib/tcpdump/lbl/
H A Dos-sunos4.h65 int fchown(int, int, int);
/freebsd-head/contrib/libpcap/lbl/
H A Dos-sunos4.h65 int fchown(int, int, int);
/freebsd-head/sbin/mksnap_ffs/
H A Dmksnap_ffs.c182 if (fchown(fd, -1, grp->gr_gid) != 0)
/freebsd-head/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-head/usr.sbin/cron/crontab/
H A Dcrontab.c351 if (fchown(t, getuid(), getgid()) < 0) {
355 warn("fchown");
580 if (fchown(fileno(tmp), ROOT_UID, -1) < OK)
/freebsd-head/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-head/sys/sys/
H A Dsyscall.mk92 fchown.o \
/freebsd-head/usr.bin/chpass/
H A Dedit.c195 (void)fchown(fileno(fp), getuid(), getgid());
/freebsd-head/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c303 ret = fchown(fd_cap, -1, -1);
304 CHECK_RESULT(fchown, CAP_FCHOWN, ret == 0);
/freebsd-head/usr.sbin/lpr/lpr/
H A Dlpr.c332 (void) fchown(tfd, pp->daemon_user, -1);
650 if (fchown(f, userid, -1) < 0) {
/freebsd-head/contrib/xz/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(),
/freebsd-head/lib/libutil/
H A Dquotafile.c198 fchown(qf->fd, 0, grp ? grp->gr_gid : 0);
568 fchown(newqf->fd, 0, grp ? grp->gr_gid : 0);
/freebsd-head/tools/regression/priv/
H A Dmain.c412 if (fchown(fd, uid, gid) < 0)
413 err(-1, "test %s: fchown(%s, %d, %d)", test, fpathp, uid,
/freebsd-head/bin/mv/
H A Dmv.c317 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
/freebsd-head/usr.bin/sed/
H A Dmain.c426 fchown(fileno(outfile), sb.st_uid, sb.st_gid);
/freebsd-head/include/
H A Dunistd.h407 int fchown(int, uid_t, gid_t);
/freebsd-head/bin/cp/
H A Dutils.c381 if (fdval ? fchown(fd, fs->st_uid, fs->st_gid) :

Completed in 431 milliseconds

12