diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-25 23:21:05 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-25 23:21:05 +0000 |
commit | cad04ef4f3435e56181a81c896912543be34ea3c (patch) | |
tree | 71e46e02914c97077eaa77e12a726b29240b27f6 /runit/runit_lib.c | |
parent | 10f8f5f4433a88b9cf9048d38a45838aa6e2abf6 (diff) |
add NOMMU fixme's; move move_fd from runit_lib to libbb; nuke fd_copy
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 0830314df..4762096b4 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) { |