Qore Programming Language Reference Manual  0.8.12.3
ql_lib.dox.h
1 
3 namespace Qore {
87 
89 
101 nothing abort();
102 
104 
118 string basename(string path);
119 
121 
125 nothing basename();
126 
128 
143 nothing close_all_fd(*softbool strd);
144 
146 
160 string dirname(string path);
161 
163 
167 nothing dirname();
168 
170 
180 int errno();
181 
183 
193 nothing exec(string command);
194 
196 
208 nothing exit(softint rc = 0);
209 
211 
238 int fork();
239 
241 
263 list getaddrinfo(*string node, *softstring service, softint family = AF_UNSPEC, softint flags = 0);
264 
266 
279 int getegid();
280 
282 
295 int geteuid();
296 
298 
311 int getgid();
312 
314 
329 list getgroups();
330 
332 
356 *string gethostbyaddr(string addr, softint type = AF_INET);
357 
359 
363 nothing gethostbyaddr();
364 
366 
390 *hash gethostbyaddr_long(string addr, softint type = AF_INET);
391 
393 
397 nothing gethostbyaddr_long();
398 
400 
419 *string gethostbyname(string name);
420 
422 
426 nothing gethostbyname();
427 
429 
448 *hash gethostbyname_long(string name);
449 
451 
455 nothing gethostbyname_long();
456 
458 
471 string gethostname();
472 
474 
487 int getpid();
488 
490 
506 int getppid();
507 
509 
522 int getuid();
523 
525 
545 int kill(softint pid, softint sig = SIGHUP);
546 
548 
555 nothing kill();
556 
558 
572 int rand();
573 
575 
591 int setegid(softint gid);
592 
594 
610 int seteuid(softint uid);
611 
613 
629 int setgid(softint gid);
630 
632 
647 nothing setgroups(softlist gids);
648 
650 
663 int setsid();
664 
666 
682 int setuid(softint uid);
683 
685 
699 int sleep(softint seconds);
700 
702 
709 nothing sleep();
710 
712 
724 nothing srand(softint seed);
725 
727 
734 nothing srand();
735 
737 
750 string strerror(softint err);
751 
753 
766 string strerror();
767 
769 
788 int system(string command);
789 
791 
798 nothing system();
799 
801 
817 int usleep(softint usecs);
818 
820 
836 int usleep(date d);
837 
839 
846 nothing usleep();
847 
849 };
*string gethostbyname(string name)
Returns the first address corresponding to the hostname passed as an argument or NOTHING if the looku...
int getuid()
Returns the real user ID of the current process.
date date(date dt)
Returns the date passed.
int getegid()
Returns the effective group ID of the current process.
const AF_UNSPEC
unspecified address family
Definition: QC_Socket.dox.h:2343
int rand()
Returns a random 64-bit integer number.
nothing srand(softint seed)
Seeds the random number generator with the integer passed.
list getgroups()
returns a list of group IDs that the user is a member of
int seteuid(softint uid)
Changes the effective process user ID according to the argument passed.
int getgid()
Returns the real group ID of the current process.
string gethostname()
Returns the hostname of the system.
int geteuid()
Returns the effective user ID of the current process.
int usleep(softint usecs)
Causes the current thread to sleep for a certain number of microseconds.
int setgid(softint gid)
Changes the process group ID according to the argument passed.
int kill(softint pid, softint sig=SIGHUP)
Sends a signal to a process, if no signal number is given, then Qore::SIGHUP is sent by default...
list 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...
list list(...)
Returns a list of the arguments passed at the top level.
nothing exec(string command)
Replaces the current process image with another; this function does not return.
nothing close_all_fd(*softbool strd)
closes all possible file descriptors; useful in "daemon" processes that may have inherited open file ...
int getpid()
Returns the PID (process ID) of the current process.
string dirname(string path)
Returns a string giving the path up to a file but not the filename itself.
*hash gethostbyaddr_long(string addr, softint type=AF_INET)
Returns a hash representing all host and address information corresponding to the address and address...
nothing exit(softint rc=0)
Exits the program with the return code passed (this function does not return)
const AF_INET
IPv4 address family.
Definition: QC_Socket.dox.h:2335
string type(any arg)
Returns a string giving the data type of the argument passed; see String Type Constants for the value...
int setegid(softint gid)
Changes the process effective group ID according to the argument passed.
nothing abort()
Aborts the current program (this function does not return)
const SIGHUP
SIGHUP.
Definition: ql_misc.dox.h:2035
*string gethostbyaddr(string addr, softint type=AF_INET)
Returns the official hostname corresponding to the network addressed passed as an argument...
int system(string command)
executes a command and returns the exit code of the process
string strerror(softint err)
Returns the string corresponding to the error code passed (generally retrieved with errno()) ...
int errno()
Returns the error code of the last error that occurred in the current thread.
int setuid(softint uid)
Changes the process user ID according to the argument passed.
int getppid()
Returns the PID (process ID) of the parent process of the current process.
string basename(string path)
Returns a string giving the last element of a file path (meant to be the filename) ...
int fork()
Creates a copy of the current process with a new PID; returns 0 in the child process; returns the chi...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
int setsid()
Creates a new session lead by the calling process.
date seconds(softint seconds)
Returns a relative date/time value in seconds based on the integer argument passed to be used in date...
hash hash(object obj)
Returns a hash of an object's members.
*hash gethostbyname_long(string name)
Returns a hash representing all host and address information corresponding to the hostname passed as ...
int sleep(softint seconds)
Causes the current thread to sleep for a certain number of seconds.
nothing setgroups(softlist gids)
sets the list of supplementary group IDs for the current process