175 nothing
exec(
string command);
190 nothing
exit(softint rc = 0);
670 nothing
srand(softint seed);
734 int system(
string command);
763 int usleep(softint usecs);
*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:2184
int rand()
Returns a random 64-bit integer number.
nothing srand(softint seed)
Seeds the random number generator with the integer passed.
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.
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:2176
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:1525
*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...
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.