mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Made usleep(2) a sortix extension.
This commit is contained in:
parent
7623ff8092
commit
635a49644a
1 changed files with 5 additions and 3 deletions
|
@ -74,6 +74,9 @@ __BEGIN_DECLS
|
||||||
@include(off_t.h)
|
@include(off_t.h)
|
||||||
@include(pid_t.h)
|
@include(pid_t.h)
|
||||||
@include(useconds_t.h)
|
@include(useconds_t.h)
|
||||||
|
#ifdef SORTIX_EXTENSIONS
|
||||||
|
@include(intn_t.h)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* TODO: These are not implemented in libmaxsi/sortix yet. */
|
/* TODO: These are not implemented in libmaxsi/sortix yet. */
|
||||||
#ifndef SORTIX_UNIMPLEMENTED
|
#ifndef SORTIX_UNIMPLEMENTED
|
||||||
|
@ -166,14 +169,13 @@ int isatty(int);
|
||||||
int pipe(int [2]);
|
int pipe(int [2]);
|
||||||
ssize_t read(int, void*, size_t);
|
ssize_t read(int, void*, size_t);
|
||||||
unsigned sleep(unsigned);
|
unsigned sleep(unsigned);
|
||||||
/*#if __POSIX_OBSOLETE <= 200112*/
|
#if __POSIX_OBSOLETE <= 200112 || defined(SORTIX_EXTENSIONS)
|
||||||
int usleep(useconds_t useconds);
|
int usleep(useconds_t useconds);
|
||||||
/*#endif*/
|
#endif
|
||||||
int unlink(const char*);
|
int unlink(const char*);
|
||||||
ssize_t write(int, const void*, size_t);
|
ssize_t write(int, const void*, size_t);
|
||||||
|
|
||||||
#ifdef SORTIX_EXTENSIONS
|
#ifdef SORTIX_EXTENSIONS
|
||||||
@include(intn_t.h)
|
|
||||||
int memstat(size_t* memused, size_t* memtotal);
|
int memstat(size_t* memused, size_t* memtotal);
|
||||||
int uptime(uintmax_t* mssinceboot);
|
int uptime(uintmax_t* mssinceboot);
|
||||||
int writeall(int fd, const void* buffer, size_t len);
|
int writeall(int fd, const void* buffer, size_t len);
|
||||||
|
|
Loading…
Add table
Reference in a new issue