ql_lib.dox.h
namespace Qore {
struct ExceptionInfo {
auto arg;
list<hash<CallStackInfo>> callstack;
auto desc;
int endline;
auto err;
string file;
int line;
hash<ExceptionInfo> next;
int offset;
string source;
string type;
};
};
namespace Qore {
nothing abort();
string basename(string path);
nothing basename();
nothing close_all_fd(*softbool strd);
string dirname(string path);
nothing dirname();
int errno();
nothing exec(string command);
nothing exit(softint rc = 0);
int fork();
list getaddrinfo(*string node, *softstring service, softint family = AF_UNSPEC, softint flags = 0);
int getegid();
int geteuid();
int getgid();
list getgroups();
*string gethostbyaddr(string addr, softint type = AF_INET);
nothing gethostbyaddr();
*hash gethostbyaddr_long(string addr, softint type = AF_INET);
nothing gethostbyaddr_long();
*string gethostbyname(string name);
nothing gethostbyname();
*hash gethostbyname_long(string name);
nothing gethostbyname_long();
string gethostname();
int getpid();
int getppid();
int getuid();
int kill(softint pid, softint sig = SIGHUP);
nothing kill();
int rand();
int setegid(softint gid);
int seteuid(softint uid);
int setgid(softint gid);
nothing setgroups(softlist gids);
int setsid();
int setuid(softint uid);
int sleep(softint seconds);
nothing sleep();
nothing srand(softint seed);
nothing srand();
string strerror(softint err);
string strerror();
int system(string command);
nothing system();
int usleep(softint usecs);
int usleep(date d);
nothing usleep();
};
Qore::gethostbyname
*string gethostbyname(string name)
Returns the first address corresponding to the hostname passed as an argument or NOTHING if the looku...
Qore::getuid
int getuid()
Returns the real user ID of the current process.
Qore::date
date date(date dt)
Returns the date passed.
Qore::getegid
int getegid()
Returns the effective group ID of the current process.
Qore::AF_UNSPEC
const AF_UNSPEC
unspecified address family
Definition: QC_Socket.dox.h:2619
Qore::rand
int rand()
Returns a random 64-bit integer number.
Qore::srand
nothing srand(softint seed)
Seeds the random number generator with the integer passed.
Qore::ExceptionInfo::next
hash< ExceptionInfo > next
chained exception info
Definition: ql_lib.dox.h:22
Qore::getgroups
list getgroups()
returns a list of group IDs that the user is a member of
Qore::seteuid
int seteuid(softint uid)
Changes the effective process user ID according to the argument passed.
Qore::ExceptionInfo::line
int line
position info: start line number
Definition: ql_lib.dox.h:20
Qore::getgid
int getgid()
Returns the real group ID of the current process.
Qore::gethostname
string gethostname()
Returns the hostname of the system.
Qore::geteuid
int geteuid()
Returns the effective user ID of the current process.
Qore::ExceptionInfo::desc
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:12
Qore::usleep
int usleep(softint usecs)
Causes the current thread to sleep for a certain number of microseconds.
Qore::setgid
int setgid(softint gid)
Changes the process group ID according to the argument passed.
Qore::kill
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...
Qore::getaddrinfo
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...
Qore::list
list list(...)
Returns an untyped list of the arguments passed at the top level.
Qore::exec
nothing exec(string command)
Replaces the current process image with another; this function does not return.
Qore::ExceptionInfo::err
auto err
this key is populated with the value of the first expression of the throw statement. For system exceptions, this is a string giving the exception code.
Definition: ql_lib.dox.h:16
Qore::close_all_fd
nothing close_all_fd(*softbool strd)
closes all possible file descriptors; useful in "daemon" processes that may have inherited open file ...
Qore::getpid
int getpid()
Returns the PID (process ID) of the current process.
Qore::ExceptionInfo::endline
int endline
position info: end line number
Definition: ql_lib.dox.h:14
Qore::dirname
string dirname(string path)
Returns a string giving the path up to a file but not the filename itself.
Qore::ExceptionInfo::arg
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:8
Qore::gethostbyaddr_long
*hash gethostbyaddr_long(string addr, softint type=AF_INET)
Returns a hash representing all host and address information corresponding to the address and address...
Qore::exit
nothing exit(softint rc=0)
Exits the program with the return code passed (this function does not return)
Qore::AF_INET
const AF_INET
IPv4 address family.
Definition: QC_Socket.dox.h:2611
Qore::setegid
int setegid(softint gid)
Changes the process effective group ID according to the argument passed.
Qore::abort
nothing abort()
Aborts the current program (this function does not return)
Qore::SIGHUP
const SIGHUP
SIGHUP.
Definition: ql_misc.dox.h:2122
Qore::gethostbyaddr
*string gethostbyaddr(string addr, softint type=AF_INET)
Returns the official hostname corresponding to the network address passed as an argument.
Qore::ExceptionInfo::callstack
list< hash< CallStackInfo > > callstack
call stack backtrace information
Definition: ql_lib.dox.h:10
Qore::system
int system(string command)
executes a command and returns the exit code of the process
Qore::strerror
string strerror(softint err)
Returns the string corresponding to the error code passed (generally retrieved with errno()) ...
Qore::errno
int errno()
Returns the error code of the last error that occurred in the current thread.
Qore::setuid
int setuid(softint uid)
Changes the process user ID according to the argument passed.
Qore::getppid
int getppid()
Returns the PID (process ID) of the parent process of the current process.
Qore::ExceptionInfo::type
string type
exception type: "User" or "System"; see Exception Type Constants
Definition: ql_lib.dox.h:28
Qore::ExceptionInfo::offset
int offset
position info: line number offset for the "source" key (if known, for user code only) ...
Definition: ql_lib.dox.h:24
Qore::basename
string basename(string path)
Returns a string giving the last element of a file path (meant to be the filename) ...
Qore::fork
int fork()
Creates a copy of the current process with a new PID; returns 0 in the child process; returns the chi...
Qore::ExceptionInfo::source
string source
position info: an optional source string; if multiple sections of a file were parsed with different p...
Definition: ql_lib.dox.h:26
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
Qore::ExceptionInfo::file
string file
position info: the parse label where exception occurred; this is normally the file name; this corresp...
Definition: ql_lib.dox.h:18
Qore::setsid
int setsid()
Creates a new session lead by the calling process.
Qore::seconds
date seconds(softint seconds)
Returns a relative date/time value in seconds based on the integer argument passed to be used in date...
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::ExceptionInfo
exception information hash
Definition: ql_lib.dox.h:6
Qore::gethostbyname_long
*hash gethostbyname_long(string name)
Returns a hash representing all host and address information corresponding to the hostname passed as ...
Qore::sleep
int sleep(softint seconds)
Causes the current thread to sleep for a certain number of seconds.
Qore::setgroups
nothing setgroups(softlist gids)
sets the list of supplementary group IDs for the current process