aboutsummaryrefslogtreecommitdiff
path: root/runit/runit_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'runit/runit_lib.c')
-rw-r--r--runit/runit_lib.c28
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)
61} 61}
62 62
63 63
64/*** fd_copy.c ***/
65
66int fd_copy(int to,int from)
67{
68 if (to == from)
69 return 0;
70 if (fcntl(from,F_GETFL,0) == -1)
71 return -1;
72 close(to);
73 if (fcntl(from,F_DUPFD,to) == -1)
74 return -1;
75 return 0;
76}
77
78
79/*** fd_move.c ***/
80
81int fd_move(int to,int from)
82{
83 if (to == from)
84 return 0;
85 if (fd_copy(to,from) == -1)
86 return -1;
87 close(from);
88 return 0;
89}
90
91
92/*** fmt_ptime.c ***/ 64/*** fmt_ptime.c ***/
93 65
94void fmt_ptime30nul(char *s, struct taia *ta) { 66void fmt_ptime30nul(char *s, struct taia *ta) {