add NOMMU fixme's; move move_fd from runit_lib to libbb; nuke fd_copy

This commit is contained in:
Denis Vlasenko
2007-03-25 23:21:05 +00:00
parent 10f8f5f443
commit cad04ef4f3
11 changed files with 31 additions and 52 deletions

View File

@ -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) {