libc values

Several large groups of libc values are not listed explicitly as they are, to a large degree, operating system-specific.

Within these groups it is possible that not all possible values exist as they have are almost certainly single-system and have been overlooked. It is trivial to create such flags in their absence as they are all C/int types:

O_ODDNUMBER := C/integer-> 37

A complete list of exported libc names (not necessarily values) can be seen with:

Idio> module-exports libc
(...)

Signal Values

All signal(7) signal names: SIGHUP, SIGINT, SIGQUIT etc..

You can get a list of the defined SIG* signal names with signal-names.

Errno Values

All errno(3) error names: EPERM, EBADF etc..

You can get a list of the defined E* error names with errno-names.

RLIMIT Values

All getrlimit(2) RLIMIT names: RLIMIT_CORE, RLIMIT_NOFILE etc..

You can get a list of the defined RLIMIT_* names with rlimit-names.

Helper functions wrapper the getrlimit/setrlimit calls and will translate keyword nicknames, eg. :NOFILE for RLIMIT_NOFILE.

Open Flag Values

All open(2) flag names: O_APPEND, O_EXCL etc..

You can get a list of the defined O_* open flag names with open-flag-names.

POLL Values

All poll(2) POLL names: POLLIN, POLLERR etc..

You can get a list of the defined POLL* names with poll-names.

A suite of poll predicates, POLLIN?, POLLERR? have been defined for convenient testing.

Other Values

value errno
Canonical:

libc/errno

Computed:

libc/errno is a computed value and has a getter which returns the current C value.

There is no setter currently.

value idio-uname
Canonical:

libc/idio-uname

libc/idio-uname is an instance of the result of calling uname, ie. an instance of struct-utsname.

Last built at 2024-05-17T06:10:53Z+0000 from 62cca4c (dev) for Idio 0.3.b.6