add NOMMU fixme's; move move_fd from runit_lib to libbb; nuke fd_copy
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user