Abstraction layers over system calls.
Operating system information type.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=UNAME_LEN), | public | :: | system_name | = | ' ' |
OS name. |
|
character(len=UNAME_LEN), | public | :: | node_name | = | ' ' |
Host name. |
|
character(len=UNAME_LEN), | public | :: | release | = | ' ' |
OS release. |
|
character(len=UNAME_LEN), | public | :: | version | = | ' ' |
OS version. |
|
character(len=UNAME_LEN), | public | :: | machine | = | ' ' |
Platform. |
Turns current running program into a daemon. On FreeBSD, it is probably easier to run the process through daemon(8) instead.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | command |
Returns system error string from strerror(3). If error
is not
passed, this function used errno(2) as error code.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | error |
System error code. |
Error message.
Forks process and returns PID.
Waits for child process and returns PID.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(out) | :: | stat |
Returned status (POSIX). |
Returns the relative path of the executable.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(inout) | :: | path |
Returned path. |
Returns uname information (operating system, hostname, …).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(uname_type), | intent(out) | :: | uname |
Uname type. |
||
integer, | intent(out), | optional | :: | error |
Error code. |
Returns system uptime in time
[sec]. On error, argument error
is
E_SYSTEM
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i8), | intent(out) | :: | time |
Uptime [sec]. |
||
integer, | intent(out), | optional | :: | error |
Error code. |