Qore Programming Language Reference Manual 2.0.0
Loading...
Searching...
No Matches
ql_lib.dox.h
1
3namespace Qore {
5
7hashdecl NetIfInfo {
9 *string address;
11 *string address_desc;
13 int family;
15 string familystr;
17 string interface;
18};
19}
20
22namespace Qore {
24
52}
53
55namespace Qore {
140
142
155
157
171string basename(string path);
172
174
179
181
198
200
214string dirname(string path);
215
217
222
224
234int errno();
235
237
248
250
263
265
292int fork();
293
295
349
351
374
376
391
393
408
410
424int getgid();
425
427
444
446
471
473
478
480
505
507
512
514
533__7_ string gethostbyname(string name);
534
536
541
543
563
565
570
572
585string gethostname();
586
588
601int getpid();
602
604
622
624
638int getuid();
639
641
663
665
673
675
685
687
700
702
719int rand();
720
722
740
742
760
762
780
782
799
801
814int setsid();
815
817
835
837
852
854
862
864
881
883
891
893
906string strerror(softint err);
907
909
922string strerror();
923
925
945int system(string command);
946
948
956
958
975
977
994
996
1004
1006}
1007
1009namespace Qore {
1015
1025
1031
1035
1040}
date date()
This function just returns 1970-01-01Z.
nothing seconds()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing basename()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
int getppid()
Returns the PID (process ID) of the parent process of the current process.
list< hash< auto > > getaddrinfo(*string node, *softstring service, softint family=AF_UNSPEC, softint flags=0)
Returns a list of Address Information Hash for the given node name or string address; if no lookup ca...
int fork()
Creates a copy of the current process with a new PID.
nothing usleep()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing exit(softint rc=0)
Exits the program with the return code passed (this function does not return)
int getegid()
Returns the effective group ID of the current process.
nothing system()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing abort()
Aborts the current program (this function does not return)
nothing dirname()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
int getpid()
Returns the PID (process ID) of the current process.
int setsid()
Creates a new session lead by the calling process.
nothing exec(string command)
Replaces the current process image with another; this function does not return.
int setgid(softint gid)
Changes the process group ID according to the argument passed.
int seteuid(softint uid)
Changes the effective process user ID according to the argument passed.
int rand()
Returns a random non-negative 64-bit integer number.
nothing gethostbyaddr()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
string gethostname()
Returns the hostname of the system.
int setegid(softint gid)
Changes the process effective group ID according to the argument passed.
int qore_set_library_options(int opts)
sets Qore runtime library options
int getuid()
Returns the real user ID of the current process.
nothing setgroups(softlist< softint > gids)
sets the list of supplementary group IDs for the current process
nothing gethostbyaddr_long()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
list< int > getgroups()
returns a list of group IDs that the user is a member of
nothing close_all_fd(*softbool strd)
closes all possible file descriptors; useful in "daemon" processes that may have inherited open file ...
nothing sleep()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing gethostbyname()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
int errno()
Returns the error code of the last error that occurred in the current thread.
int qore_get_library_options()
returns all Qore library options
nothing gethostbyname_long()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
int setuid(softint uid)
Changes the process user ID according to the argument passed.
nothing kill()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
string strerror()
Returns the string corresponding to the last error that occurred in the current thread.
list< hash< NetIfInfo > > get_netif_list()
returns a list of network interfaces
int getgid()
Returns the real group ID of the current process.
int geteuid()
Returns the effective user ID of the current process.
nothing srand()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
const QLO_DISABLE_OPENSSL_CLEANUP
do not perform cleanup on the openssl library (= is cleaned up manually; init only)
Definition ql_lib.dox.h:1019
const QLO_DISABLE_SIGNAL_HANDLING
disable qore signal handling entirely (init only)
Definition ql_lib.dox.h:1023
const QLO_RUNTIME_OPTS
bitmask for library options that can be set at runtime
Definition ql_lib.dox.h:1038
const QLO_DISABLE_GARBAGE_COLLECTION
disable garbage collection / recursive object reference detection (init only)
Definition ql_lib.dox.h:1017
const QLO_DISABLE_TLS_13
disable TLS v1.3 (may be set at runtime with qore_set_library_options())
Definition ql_lib.dox.h:1027
const QLO_MINIMUM_TLS_13
enable minimum TLS v1.3 (may be set at runtime with qore_set_library_options())
Definition ql_lib.dox.h:1033
const QLO_DISABLE_OPENSSL_INIT
do not initialize the openssl library (= is initialized before the qore library is initialized; init ...
Definition ql_lib.dox.h:1021
const QLO_DO_NOT_SEED_RNG
disable seeding the random number generator when the Qore library is initialized (init only)
Definition ql_lib.dox.h:1029
const AF_UNSPEC
unspecified address family
Definition QC_Socket.dox.h:3135
const AF_INET
IPv4 address family.
Definition QC_Socket.dox.h:3127
const SIGHUP
SIGHUP.
Definition ql_misc.dox.h:2505
string type(auto arg)
Returns a string giving the data type of the argument passed; see String Type Constants for the value...
list< auto > list(...)
Returns a list of the arguments passed at the top level.
Qore namespace.
Definition QC_AbstractSmartLock.dox.h:2
exception information hash
Definition ql_lib.dox.h:26
list< hash< CallStackInfo > > callstack
call stack backtrace information
Definition ql_lib.dox.h:30
hash< ExceptionInfo > next
chained exception info
Definition ql_lib.dox.h:44
auto arg
this key is populated with the value of the third expression of the throw statement (if a list was th...
Definition ql_lib.dox.h:28
auto desc
this key is populated with the value of the second expression of the throw statement (if a list was t...
Definition ql_lib.dox.h:32
int offset
position info: line number offset for the "source" key (if known, for user code only)
Definition ql_lib.dox.h:46
auto err
this key is populated with the value of the first expression of the throw statement....
Definition ql_lib.dox.h:36
int line
position info: start line number
Definition ql_lib.dox.h:42
string file
position info: the parse label where exception occurred; this is normally the file name; this corresp...
Definition ql_lib.dox.h:38
string source
position info: an optional source string; if multiple sections of a file were parsed with different p...
Definition ql_lib.dox.h:48
int endline
position info: end line number
Definition ql_lib.dox.h:34
string type
exception type: "User" or "System"; see Exception Type Constants
Definition ql_lib.dox.h:50
string lang
the language of the source code location; normally "Qore"
Definition ql_lib.dox.h:40
network interface info hash
Definition ql_lib.dox.h:7
int family
interface family type; see Network Address Family Constants for possible values
Definition ql_lib.dox.h:13
*string address
interface address if available
Definition ql_lib.dox.h:9
string familystr
interface family type string
Definition ql_lib.dox.h:15
string interface
interface name
Definition ql_lib.dox.h:17
*string address_desc
interface address description (if the address is available)
Definition ql_lib.dox.h:11