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:
@ -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);
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user