From cad04ef4f3435e56181a81c896912543be34ea3c Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 25 Mar 2007 23:21:05 +0000 Subject: add NOMMU fixme's; move move_fd from runit_lib to libbb; nuke fd_copy --- include/libbb.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 152b87099..aba9316d1 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -250,8 +250,10 @@ extern char bb_process_escape_sequence(const char **ptr); /* TODO: sometimes modifies its parameter, which * makes it rather inconvenient at times: */ extern char *bb_get_last_path_component(char *path); -extern int ndelay_on(int fd); -extern int ndelay_off(int fd); + +int ndelay_on(int fd); +int ndelay_off(int fd); +void xmove_fd(int, int); extern DIR *xopendir(const char *path); @@ -616,6 +618,8 @@ extern int index_in_substr_array(const char * const string_array[], const char * extern void print_login_issue(const char *issue_file, const char *tty); extern void print_login_prompt(void); #ifdef BB_NOMMU +extern pid_t BUG_fork_is_unavailable_on_nommu(void); +#define fork() BUG_fork_is_unavailable_on_nommu() extern void vfork_daemon_rexec(int nochdir, int noclose, char **argv); extern smallint re_execed; #endif -- cgit v1.2.3