summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sched.h2
-rw-r--r--include/sys/mman.h2
-rw-r--r--include/sys/sysinfo.h3
-rw-r--r--include/unistd.h2
4 files changed, 7 insertions, 2 deletions
diff --git a/include/sched.h b/include/sched.h
index 7cfdbf1f9..5f3bd8fc1 100644
--- a/include/sched.h
+++ b/include/sched.h
@@ -63,7 +63,7 @@ extern int sched_get_priority_min (int __algorithm) __THROW;
extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
/* Access macros for `cpu_set'. */
#define CPU_SETSIZE __CPU_SETSIZE
#define CPU_SET(cpu, cpusetp) __CPU_SET (cpu, cpusetp)
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 10471e683..7640955d7 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -157,11 +157,13 @@ extern int mincore (void *__start, size_t __len, unsigned char *__vec)
extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
int __flags, ...) __THROW;
+#ifdef __UCLIBC_LINUX_SPECIFIC__
/* Remap arbitrary pages of a shared backing store within an existing
VMA. */
extern int remap_file_pages (void *__start, size_t __size, int __prot,
size_t __pgoff, int __flags) __THROW;
#endif
+#endif
/* Open shared memory segment. */
diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h
index 9fd4fa829..489f56b3b 100644
--- a/include/sys/sysinfo.h
+++ b/include/sys/sysinfo.h
@@ -48,7 +48,7 @@ __BEGIN_DECLS
/* Returns information on overall system statistics. */
extern int sysinfo (struct sysinfo *__info) __THROW;
-
+#if 0
/* Return number of configured processors. */
extern int get_nprocs_conf (void) __THROW;
@@ -61,6 +61,7 @@ extern long int get_phys_pages (void) __THROW;
/* Return number of available physical pages of memory in the system. */
extern long int get_avphys_pages (void) __THROW;
+#endif
__END_DECLS
diff --git a/include/unistd.h b/include/unistd.h
index 164f28909..f981d2116 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -869,10 +869,12 @@ extern int setdomainname (__const char *__name, size_t __len)
__THROW __nonnull ((1)) __wur;
#endif
+#if defined __UCLIBC_LINUX_SPECIFIC__
/* Revoke access permissions to all processes currently communicating
with the control terminal, and then send a SIGHUP signal to the process
group of the control terminal. */
extern int vhangup (void) __THROW;
+#endif
#if 0
/* Revoke the access of all descriptors currently open on FILE. */