Symbol: fchmod
bin/cp/utils.c
376
if (fdval ? fchmod(fd, fs->st_mode) :
bin/mv/mv.c
308
if (fchmod(to_fd, sbp->st_mode))
crypto/heimdal/appl/rcp/rcp.c
611
if (fchmod(ofd, omode))
crypto/heimdal/appl/rcp/rcp.c
616
if (fchmod(ofd, omode & ~mask))
crypto/krb5/src/lib/krb5/ccache/cc_file.c
492
st = fchmod(fd, S_IRUSR | S_IWUSR);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
875
fchmod(fd, S_IRUSR | S_IWUSR);
crypto/krb5/src/lib/krb5/os/krbfileio.c
76
fchmod(fd, 0600);
crypto/openssh/auth-krb5.c
262
if (fchmod(tmpfd,S_IRUSR | S_IWUSR) == -1) {
crypto/openssh/openbsd-compat/bsd-misc.c
216
ret = fchmod(fd, mode);
crypto/openssh/scp.c
1943
if (fchmod(ofd, omode)) {
crypto/openssh/scp.c
1953
if (fchmod(ofd, omode & ~mask)) {
crypto/openssh/sftp-client.c
1858
if (preserve_flag && fchmod(local_fd, mode) == -1)
crypto/openssh/sftp-server.c
1061
r = fchmod(fd, a.perm & 07777);
crypto/openssh/ssh-keygen.c
1174
(void)fchmod(fd, 0644);
crypto/openssh/ssh-keygen.c
1383
(void)fchmod(fd, sb.st_mode & 0644);
lib/libutil/quotafile.c
197
fchmod(qf->fd, 0640);
lib/libutil/quotafile.c
567
fchmod(newqf->fd, 0640);
sbin/ldconfig/elfhints.c
279
if (fchmod(fd, 0444) == -1)
sbin/mksnap_ffs/mksnap_ffs.c
185
if (fchmod(fd, S_IRUSR | S_IRGRP) != 0)
sbin/restore/tape.c
710
(void) fchmod(ofile, mode);
sys/sys/stat.h
374
int fchmod(int, mode_t);
tests/sys/audit/file-attribute-modify.c
260
ATF_REQUIRE_EQ(0, fchmod(filedesc, mode));
tests/sys/audit/file-attribute-modify.c
283
ATF_REQUIRE_ERRNO(EBADF, fchmod(-1, mode) == -1);
tests/sys/capsicum/capability-fd.cc
1270
int rc = fchmod(fd, 0666);
tests/sys/capsicum/capability-fd.cc
531
CHECK_RIGHT_RESULT(fchmod(cap_fd, 0644), rights, CAP_FCHMOD);
tests/sys/capsicum/linux.cc
1082
FAIL_SYSCALL(fchmod, ENOMEM),
tests/sys/capsicum/linux.cc
1096
EXPECT_SYSCALL_FAIL(ENOMEM, fchmod(fd, 0644));
tests/sys/fifo/fifo_misc.c
244
if (fchmod(reader_fd, 0666) != 0) {
tests/sys/file/path_test.c
119
ATF_REQUIRE_ERRNO(EBADF, fchmod(pathfd, 0666) == -1);
tests/sys/file/path_test.c
353
ATF_REQUIRE_ERRNO(EBADF, fchmod(pathfd, 0500) == -1);
tests/sys/file/path_test.c
381
ATF_REQUIRE_ERRNO(EBADF, fchmod(pathfd, 0500) == -1);
tests/sys/fs/fusefs/read.cc
1684
ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
747
ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno);
tests/sys/fs/fusefs/setattr.cc
294
TEST_F(Setattr, fchmod)
tests/sys/fs/fusefs/setattr.cc
339
ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1565
ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1602
ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno);
tests/sys/kern/inotify_test.c
548
error = fchmod(fd, 0600);
tests/sys/kern/unix_dgram.c
396
ATF_TC_WITHOUT_HEAD(fchmod);
tests/sys/kern/unix_dgram.c
397
ATF_TC_BODY(fchmod, tc)
tests/sys/kern/unix_dgram.c
411
error = fchmod(sd, 0600 | S_ISUID);
tests/sys/kern/unix_dgram.c
415
error = fchmod(sd, 0766);
tests/sys/kern/unix_dgram.c
426
error = fchmod(sd, 0666);
tests/sys/kern/unix_dgram.c
438
ATF_TP_ADD_TC(tp, fchmod);
tools/regression/priv/main.c
414
if (fchmod(fd, mode) < 0)
tools/regression/security/cap_test/cap_test_capabilities.c
310
ret = fchmod(fd_cap, 0644);
tools/regression/security/cap_test/cap_test_capabilities.c
311
CHECK_RESULT(fchmod, CAP_FCHMOD, ret == 0);
tools/regression/security/open_to_operation/open_to_operation.c
315
if (fchmod(fd, setmode) == 0)
usr.bin/at/at.c
435
if (fchmod(fd2, S_IRUSR | S_IWUSR | S_IXUSR) < 0)
usr.bin/gzip/gzip.c
1074
(void)fchmod(fd, DEFFILEMODE & ~mask);
usr.bin/gzip/gzip.c
1089
if (fchmod(fd, sb.st_mode) < 0)
usr.bin/localedef/localedef.c
133
if (fchmod(fileno(f), 0644) < 0) {
usr.bin/mail/edit.c
145
if (readonly && fchmod(t, 0400) == -1) {
usr.bin/mail/quit.c
240
(void)fchmod(fileno(obuf), 0600);
usr.bin/posixmqcontrol/posixmqcontrol.c
506
result = fchmod(fd, q_creation.mode);
usr.bin/sed/main.c
424
fchmod(fileno(outfile), sb.st_mode & ALLPERMS);
usr.bin/xinstall/xinstall.c
1034
if (fchmod(to_fd,
usr.sbin/certctl/certctl.c
514
(void)fchmod(fd, mode);
usr.sbin/cron/crontab/crontab.c
581
if (fchmod(fileno(tmp), 0600) < OK)
usr.sbin/kldxref/kldxref.c
731
fchmod(fd, 0644); /* nothing secret in the file */
usr.sbin/lpr/lpd/printjob.c
236
if (fchmod(lfd, stb.st_mode & ~LFM_RESET_QUE) < 0)
usr.sbin/lpr/lpd/printjob.c
247
if ((i = fchmod(tempfd, 0664)) == -1) {
usr.sbin/lpr/lpd/printjob.c
290
if (fchmod(lfd, stb.st_mode & ~LFM_RESET_QUE)
usr.sbin/newsyslog/newsyslog.c
2836
failed = fchmod(fd, ent->permissions);
usr.sbin/pwd_mkdb/pwd_mkdb.c
495
(void)fchmod(fileno(fp), S_IRUSR|S_IWUSR);
usr.sbin/syslogd/syslogd.c
3878
if (ai->ai_family == AF_LOCAL && fchmod(s, mode) < 0) {