Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
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
142 string dirname(string path);
143
145
149 nothing dirname();
150
152
162 int errno();
163
165
175 nothing exec(string command);
176
178
190 nothing exit(softint rc = 0);
191
193
219 int fork();
220
222
244 list getaddrinfo(*string node, *softstring service, softint family = AF_UNSPEC, softint flags = 0);
245
247
260 int getegid();
261
263
276 int geteuid();
277
279
292 int getgid();
293
295
319 *string gethostbyaddr(string addr, softint type = AF_INET);
320
322
326 nothing gethostbyaddr();
327
329
353 *hash gethostbyaddr_long(string addr, softint type = AF_INET);
354
356
360 nothing gethostbyaddr_long();
361
363
382 *string gethostbyname(string name);
383
385
389 nothing gethostbyname();
390
392
411 *hash gethostbyname_long(string name);
412
414
418 nothing gethostbyname_long();
419
421
434 string gethostname();
435
437
450 int getpid();
451
453
469 int getppid();
470
472
485 int getuid();
486
488
508 int kill(softint pid, softint sig = SIGHUP);
509
511
518 nothing kill();
519
521
536 int rand();
537
539
555 int setegid(softint gid);
556
558
574 int seteuid(softint uid);
575
577
593 int setgid(softint gid);
594
596
609 int setsid();
610
612
628 int setuid(softint uid);
629
631
645 int sleep(softint seconds);
646
648
655 nothing sleep();
656
658
670 nothing srand(softint seed);
671
673
680 nothing srand();
681
683
696 string strerror(softint err);
697
699
712 string strerror();
713
715
734 int system(string command);
735
737
744 nothing system();
745
747
763 int usleep(softint usecs);
764
766
782 int usleep(date d);
783
785
792 nothing usleep();
793
795 };
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:2099
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::seteuid
int seteuid(softint uid)
Changes the effective process user ID according to the argument passed.
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::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 a 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::getpid
int getpid()
Returns the PID (process ID) of the current process.
Qore::dirname
string dirname(string path)
Returns a string giving the path up to a file but not the filename itself.
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:2091
Qore::type
string type(any arg)
Returns a string giving the data type of the argument passed; see String Type Constants for the value...
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:1497
Qore::gethostbyaddr
*string gethostbyaddr(string addr, softint type=AF_INET)
Returns the official hostname corresponding to the network addressed passed as an argument...
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::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::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::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.