Home
last modified time | relevance | path

Searched refs:new_fd (Results 1 – 3 of 3) sorted by relevance

/busybox-1.35.0/libbb/
Dupdate_passwd.c102 int new_fd; in update_passwd() local
142 new_fd = open(fnamesfx, O_WRONLY|O_CREAT|O_EXCL, 0600); in update_passwd()
143 if (new_fd >= 0) goto created; in update_passwd()
152 fchmod(new_fd, sb.st_mode & 0777); /* ignore errors */ in update_passwd()
153 fchown(new_fd, sb.st_uid, sb.st_gid); in update_passwd()
156 new_fp = xfdopen_for_write(new_fd); in update_passwd()
318 if ((ferror(old_fp) | fflush(new_fp) | fsync(new_fd) | fclose(new_fp)) in update_passwd()
/busybox-1.35.0/coreutils/
Dtail.c349 int new_fd = -1; in tail_main() local
362 new_fd = open(filename, O_RDONLY); in tail_main()
363 if (new_fd >= 0) { in tail_main()
370 fds[i] = fd = new_fd; in tail_main()
371 new_fd = -1; in tail_main()
399 if (new_fd < 0) in tail_main()
402 xmove_fd(new_fd, fd); in tail_main()
403 new_fd = -1; in tail_main()
/busybox-1.35.0/shell/
Dash.c5710 int i, new_fd; in save_fd_on_redirect() local
5756 new_fd = dup_CLOEXEC(fd, avoid_fd); in save_fd_on_redirect()
5757 sq->two_fd[i].moved_to = new_fd; in save_fd_on_redirect()
5758 TRACE(("redirect_fd %d: already busy, moving to %d\n", fd, new_fd)); in save_fd_on_redirect()
5759 if (new_fd < 0) /* what? */ in save_fd_on_redirect()
5771 new_fd = dup_CLOEXEC(fd, avoid_fd); in save_fd_on_redirect()
5772 TRACE(("redirect_fd %d: previous fd is moved to %d (-1 if it was closed)\n", fd, new_fd)); in save_fd_on_redirect()
5773 if (new_fd < 0) { in save_fd_on_redirect()
5778 sq->two_fd[i].moved_to = new_fd; in save_fd_on_redirect()
5783 preverrout_fd = new_fd; in save_fd_on_redirect()