summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-10-04 22:26:07 +0000
committerEric Andersen <andersen@codepoet.org>2005-10-04 22:26:07 +0000
commit977216264f4ef4c2ebeb9d30435c17a950fed6e6 (patch)
treeb43b4b36da948adf32ace8f819e5d8e23085947f /include/unistd.h
parentda595aca3aef049535b12fdcec0e77c787286779 (diff)
downloaduClibc-alpine-977216264f4ef4c2ebeb9d30435c17a950fed6e6.tar.bz2
uClibc-alpine-977216264f4ef4c2ebeb9d30435c17a950fed6e6.tar.xz
Do not stub out functions for mmu-less systems. Hide all
prototypes for functions disabled on mmu-less systems.
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index ab8e4b31a..6ee8732dd 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -632,10 +632,12 @@ extern int setresgid (__gid_t __egid, __gid_t __rgid, __gid_t __sgid);
#endif
+#ifdef __ARCH_HAS_MMU__
/* Clone the calling process, creating an exact copy.
Return -1 for errors, 0 to the new process,
and the process ID of the new process to the old process. */
extern __pid_t fork (void) __THROW;
+#endif
#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
/* Clone the calling process, but without copying the whole address space.
@@ -752,10 +754,12 @@ extern void endusershell (void) __THROW; /* Discard cached info. */
extern void setusershell (void) __THROW; /* Rewind and re-read the file. */
+#if defined __ARCH_HAS_MMU__
/* Put the program in the background, and dissociate from the controlling
terminal. If NOCHDIR is zero, do `chdir ("/")'. If NOCLOSE is zero,
redirects stdin, stdout, and stderr to /dev/null. */
extern int daemon (int __nochdir, int __noclose) __THROW;
+#endif
#endif /* Use BSD || X/Open. */