summaryrefslogtreecommitdiffstats
path: root/libc/include/unistd.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2009-12-14 17:07:19 -0800
committerElliott Hughes <enh@google.com>2009-12-14 17:07:19 -0800
commit99d7907611725e23b6fad3ae7acff4926504e687 (patch)
tree74eb2d8ded9708c4768aab30022cc6307bc39c1e /libc/include/unistd.h
parent278d960aae1b2f0b8a3fa0c8056ba4aded96b133 (diff)
downloadbionic-99d7907611725e23b6fad3ae7acff4926504e687.zip
bionic-99d7907611725e23b6fad3ae7acff4926504e687.tar.gz
bionic-99d7907611725e23b6fad3ae7acff4926504e687.tar.bz2
Fix usleep(3) return type to be POSIX-compliant.
POSIX usleep(3) returns 0 on successful completion, -1 otherwise: http://www.opengroup.org/onlinepubs/007908799/xsh/usleep.html This was found by an external user porting native code: http://groups.google.com/group/android-porting/browse_thread/thread/674848f001db0292
Diffstat (limited to 'libc/include/unistd.h')
-rw-r--r--libc/include/unistd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/include/unistd.h b/libc/include/unistd.h
index 67cb5fe..954f34e 100644
--- a/libc/include/unistd.h
+++ b/libc/include/unistd.h
@@ -145,7 +145,7 @@ extern int ftruncate(int, off_t);
extern int pause(void);
extern unsigned int alarm(unsigned int);
extern unsigned int sleep(unsigned int);
-extern void usleep(unsigned long);
+extern int usleep(unsigned long);
extern int gethostname(char *, size_t);
extern int sethostname(const char *, size_t);