1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

usleep() now correctly returns 0, with the function prototype to match

This addresses issue #4  by· capehill opened on Jul 30, 2017
This commit is contained in:
obarthel
2025-07-12 10:15:59 +02:00
parent a1f85a9c7f
commit 0e637e9663
2 changed files with 4 additions and 2 deletions

View File

@ -117,7 +117,7 @@ extern int readlink(const char * path_name, char * buffer, int buffer_size);
extern int chdir(const char * path_name);
extern int lockf(int file_descriptor, int function, off_t size);
extern unsigned int sleep(unsigned int seconds);
extern void usleep(unsigned long microseconds);
extern int usleep(unsigned long microseconds);
extern int getopt(int argc, char * const argv[], const char *opts);
extern pid_t getpid(void);
extern char *realpath(const char *file_name, char *resolved_name);

View File

@ -41,7 +41,7 @@
/****************************************************************************/
void
int
usleep(unsigned long microseconds)
{
ENTER();
@ -51,4 +51,6 @@ usleep(unsigned long microseconds)
__time_delay(0,microseconds);
LEAVE();
return 0;
}