| /mirbsd/src/libexec/ld.so/ldconfig/ |
| D | prebind_delete.c | 221 int outfd; in prebind_newfile() local 228 outfd = open(newname, O_CREAT|O_RDWR|O_TRUNC, 0600); in prebind_newfile() 229 if (outfd == -1) { in prebind_newfile() 254 wlen = write(outfd, buf, len); in prebind_newfile() 263 if (prebind_remove_load_section(outfd, newname) == -1) in prebind_newfile() 266 ftruncate(outfd, orig_size) == -1) in prebind_newfile() 272 if (futimes(outfd, tv) == -1) in prebind_newfile() 274 if (fchown(outfd, st->st_uid, st->st_gid) == -1) in prebind_newfile() 276 if (fchmod(outfd, st->st_mode) == -1) in prebind_newfile() 278 if (fchflags(outfd, st->st_flags) == -1) in prebind_newfile() [all …]
|
| D | prebind.c | 1924 int outfd; in prebind_writenewfile() local 1931 outfd = open(newname, O_CREAT|O_RDWR|O_TRUNC, 0600); in prebind_writenewfile() 1932 if (outfd == -1) { in prebind_writenewfile() 1957 wlen = write(outfd, buf, len); in prebind_writenewfile() 1966 if (prebind_remove_load_section(outfd, newname) == -1) in prebind_writenewfile() 1969 ftruncate(outfd, orig_size) == -1) in prebind_writenewfile() 1972 prebind_writefile(outfd, info); in prebind_writenewfile() 1977 if (futimes(outfd, tv) == -1) in prebind_writenewfile() 1979 if (fchown(outfd, st->st_uid, st->st_gid) == -1) in prebind_writenewfile() 1981 if (fchmod(outfd, st->st_mode) == -1) in prebind_writenewfile() [all …]
|
| /mirbsd/src/usr.bin/mail/ |
| D | popen.c | 217 start_commandv(char *cmd, sigset_t *nset, int infd, int outfd, va_list args) in start_commandv() argument 232 prepare_child(nset, infd, outfd); in start_commandv() 241 run_command(char *cmd, sigset_t *nset, int infd, int outfd, ...) in run_command() argument 246 va_start(args, outfd); in run_command() 247 pid = start_commandv(cmd, nset, infd, outfd, args); in run_command() 255 start_command(char *cmd, sigset_t *nset, int infd, int outfd, ...) in start_command() argument 260 va_start(args, outfd); in start_command() 261 r = start_commandv(cmd, nset, infd, outfd, args); in start_command() 267 prepare_child(sigset_t *nset, int infd, int outfd) in prepare_child() argument 283 if (outfd >= 0 && outfd != 1) in prepare_child() [all …]
|
| D | extern.h | 212 int run_command(char *cmd, sigset_t *nset, int infd, int outfd, ...); 240 pid_t start_command(char *cmd, sigset_t *nset, int infd, int outfd, ...);
|
| /mirbsd/src/usr.sbin/edquota/ |
| D | edquota.c | 411 writeprivs(struct quotause *quplist, int outfd, char *name, int quotatype) in writeprivs() argument 416 ftruncate(outfd, 0); in writeprivs() 417 lseek(outfd, 0, SEEK_SET); in writeprivs() 418 if ((fd = fdopen(dup(outfd), "w")) == NULL) in writeprivs() 548 writetimes(struct quotause *quplist, int outfd, int quotatype) in writetimes() argument 553 ftruncate(outfd, 0); in writetimes() 554 lseek(outfd, 0, SEEK_SET); in writetimes() 555 if ((fd = fdopen(dup(outfd), "w")) == NULL) in writetimes()
|
| /mirbsd/src/usr.bin/sort/ |
| D | sort.c | 258 int outfd; in main() local 269 if ((outfd = mkstemp(toutpath)) == -1 || in main() 270 fchmod(outfd, DEFFILEMODE & ~um) == -1 || in main() 271 (outfp = fdopen(outfd, "w")) == 0) in main()
|
| /mirbsd/src/gnu/usr.sbin/sendmail/sendmail/ |
| D | srvrsmtp.c | 4026 int inchfd, outchfd, outfd; in setup_smtpd_io() local 4030 outfd = sm_io_getinfo(smioout, SM_IO_WHAT_FD, NULL); in setup_smtpd_io() 4031 if (outchfd != outfd) in setup_smtpd_io() 4034 (void) dup2(outchfd, outfd); in setup_smtpd_io()
|