|
SimGrid 3.7.1
Scalable simulation of distributed systems
|
System call abstraction layer. More...
Defines | |
| #define | gras_os_time() xbt_time() |
| Get the current time. | |
| #define | gras_os_sleep(sec) xbt_sleep(sec) |
| sleeps for the given amount of time. | |
Functions | |
| const char * | gras_os_myname (void) |
| get the fully-qualified name of the current host | |
| int | gras_os_myport (void) |
| returns the number on which this process is listening for incoming messages | |
| const char * | gras_os_hostport (void) |
| get the uri of the current process | |
| int | gras_os_getpid (void) |
| get process identification | |
| xbt_dict_t | gras_process_properties (void) |
| retrieve the process properties dictionnary | |
| const char * | gras_process_property_value (const char *name) |
| retrieve the value of a given process property (or NULL if not defined) | |
| xbt_dict_t | gras_os_host_properties (void) |
| retrieve the host properties dictionary | |
| const char * | gras_os_host_property_value (const char *name) |
| retrieve the value of a given host property (or NULL if not defined) | |
System call abstraction layer.
| #define gras_os_time | ( | ) | xbt_time() |
Get the current time.
| #define gras_os_sleep | ( | sec | ) | xbt_sleep(sec) |
sleeps for the given amount of time.
| sec,: | number of seconds to sleep |
| const char* gras_os_myname | ( | void | ) |
get the fully-qualified name of the current host
Returns the fully-qualified name of the host machine, or "localhost" if the name cannot be determined. Always returns the same value, so multiple calls cause no problems.
| const char* gras_os_hostport | ( | void | ) |
get the uri of the current process
Returns the concatenation of gras_os_myname():gras_os_myport(). Please do not free the result.
| int gras_os_getpid | ( | void | ) |
get process identification
Returns the process ID of the current process. (This is often used by routines that generate unique temporary file names.)
| xbt_dict_t gras_process_properties | ( | void | ) |
retrieve the process properties dictionnary
| xbt_dict_t gras_os_host_properties | ( | void | ) |
retrieve the host properties dictionary
| Back to the main Simgrid Documentation page |
The version of SimGrid documented here is v3.7.1. Documentation of other versions can be found in their respective archive files (directory doc/html). |
Generated by
|