diff options
Diffstat (limited to 'runit/runit_lib.c')
-rw-r--r-- | runit/runit_lib.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/runit/runit_lib.c b/runit/runit_lib.c index 0830314..4762096 100644 --- a/runit/runit_lib.c +++ b/runit/runit_lib.c @@ -61,34 +61,6 @@ int coe(int fd) } -/*** fd_copy.c ***/ - -int fd_copy(int to,int from) -{ - if (to == from) - return 0; - if (fcntl(from,F_GETFL,0) == -1) - return -1; - close(to); - if (fcntl(from,F_DUPFD,to) == -1) - return -1; - return 0; -} - - -/*** fd_move.c ***/ - -int fd_move(int to,int from) -{ - if (to == from) - return 0; - if (fd_copy(to,from) == -1) - return -1; - close(from); - return 0; -} - - /*** fmt_ptime.c ***/ void fmt_ptime30nul(char *s, struct taia *ta) { |