• Antelope Release 5.9 Mac OS X 10.13.2 2019-05-01

 

NAME

std_now, now, std_dlopen, std_set_timer - "standard" wrappers for system routines

SYNOPSIS

double std_now ( void );
void *std_dlopen (const char *lib);
int std_set_timer ( void (*alarm_handler)(void), double how_long );

DESCRIPTION

These routines are wrappers around the corresponding system routines, which may differ from one implementation to another.

std_now( void )

The routine std_now returns the current epoch (GMT) time in seconds.

now() [***Removed***]

The now macro to invoke std_now has been removed from Antelope. Please call std_now directly.

std_dlopen( const char *lib )

The standard dlopen(3) takes an absolute path to the library to load, however the name of the dynamic library can change from operating system to operating system. The std_dlopen function takes the basename of the library, constructs the path to the $ANTELOPE/lib directory, appends the proper suffix, then opens the library.

std_set_timer( void (*alarm_handler)(void), double how_long )

Sets a timer which calls alarm_handler when it expires.

LIBRARY

$(STOCKLIBS)

ATTRIBUTES

MT-Safe ?

SEE ALSO

sigwait(2)
dlopen(3)
std_statvfs(3)

BUGS AND CAVEATS

In previous versions of Antelope, an include-file macro now() invoked the libdeviants routine std_now(). The now macro has since been removed due to too many clashes between Antelope and external packages, hence std_now() must be invoked directly.

Author

Daniel Quinlan
Printer icon