Gromacs  2016.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
sysinfo.h File Reference
#include <stddef.h>
#include <time.h>
+ Include dependency graph for sysinfo.h:

Description

Declares functions for obtaining information about the operating environment and the current process.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Functions

int gmx_gethostname (char *buf, size_t len)
 Gets the hostname as given by gethostname(), if available. More...
 
int gmx_getpid (void)
 Returns the process ID of the current process. More...
 
int gmx_getuid (void)
 Returns the current user ID, or -1 if not available. More...
 
int gmx_getusername (char *buf, size_t len)
 Gets the current user name, if available. More...
 
char * gmx_ctime_r (const time_t *clock, char *buf, size_t len)
 Portable version of ctime_r. More...
 
void gmx_format_current_time (char *buf, size_t len)
 Gets the current time as a string. More...
 
int gmx_set_nice (int level)
 Wrapper for nice(). More...