Gromacs  2021-beta2-UNCHECKED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sysinfo.h File Reference
#include <stddef.h>
#include <time.h>
#include <string>
+ Include dependency graph for sysinfo.h:
+ This graph shows which files directly or indirectly include this file:


Declares functions that wrap platform-specific calls for obtaining information about the operating environment and the current process.

Teemu Murtola


int gmx_gethostname (char *buf, size_t len)
 Gets the hostname as given by gethostname(), if available. More...
int gmx_getpid ()
 Returns the process ID of the current process. More...
int gmx_getuid ()
 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...
std::string gmx_ctime_r (const time_t *clock)
 Portable version of ctime_r. More...
std::string gmx_format_current_time ()
 Gets the current time as a string. More...
int gmx_set_nice (int level)
 Wrapper for nice(). More...