aboutsummaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorTom Rhodes <trhodes@FreeBSD.org>2004-12-10 15:24:40 +0000
committerTom Rhodes <trhodes@FreeBSD.org>2004-12-10 15:24:40 +0000
commit2f5cde3c64228de95d392e408f3198df9ba414a1 (patch)
treeecddfa78aa35a2badcb1a43b4e07713a73436f7a /include/unistd.h
parent54bb820a7542f8d27712c65adc66f8a381d6c6dd (diff)
downloadsrc-2f5cde3c64228de95d392e408f3198df9ba414a1.tar.gz
src-2f5cde3c64228de95d392e408f3198df9ba414a1.zip
According to the information on:
http://www.opengroup.org/onlinepubs/009695399/functions/swab.html the prototype for swab() should be in <unistd.h> and not in <string.h>. Move it, and update to match SUS. Leave the prototype in string.h for now, for backwards compat. PR: 74751 Submitted by: Craig Rodrigues <rodrigc@crodrigues.org> Discussed with: das
Notes
Notes: svn path=/head/; revision=138659
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 56551f8cd40c..fa7346298c08 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -436,7 +436,12 @@ ssize_t pwrite(int, const void *, size_t, off_t);
int setpgrp(pid_t _pid, pid_t _pgrp); /* obsoleted by setpgid() */
int setregid(gid_t, gid_t);
int setreuid(uid_t, uid_t);
-/* void swab(const void * __restrict, void * __restrict, ssize_t); */
+
+#ifndef _SWAB_DECLARED
+#define _SWAB_DECLARED
+void swab(const void * __restrict, void * __restrict, ssize_t);
+#endif /* _SWAB_DECLARED */
+
void sync(void);
useconds_t ualarm(useconds_t, useconds_t);
int usleep(useconds_t);