NAME
Sidef::Sys::Sys
DESCRIPTION
This object provides some methods related to the Sidef working system.
SYNOPSIS
Sys.method(arg)
METHODS
>
Obj > Obj -> Obj
Return the
Aliases: say, println
Sys.print(obj1, obj2, ...) -> Bool
Print a list of argument to the standard output (STDOUT). Returns true on success.
Sys.print("hello", "-", "world");
Returns an object of type: Sidef::Types::Bool::Bool
alarm
Sys.alarm() -> Obj
Return the
bless
Sys.bless() -> Obj
Return the
copy
Sys.copy() -> Obj
Return the
die
Sys.die() -> Obj
Return the
Aliases: raise
eval
Sys.eval() -> Obj
Return the
exec
Sys.exec() -> Obj
Return the
exit
Sys.exit(Number)
Exit the main program with a given code. If no argument is specified, the code 0 (SUCCESS) is assumed.
Sys.exit(0) # exit with success
Sys.exit(-1) # exit with some error
getgrent
Sys.getgrent() -> Obj
Return the
getgrgid
Sys.getgrgid() -> Obj
Return the
getgrnam
Sys.getgrnam() -> Obj
Return the
gethostbyaddr
Sys.gethostbyaddr() -> Obj
Return the
gethostbyname
Sys.gethostbyname() -> Obj
Return the
gethostent
Sys.gethostent() -> Obj
Return the
getnetbyaddr
Sys.getnetbyaddr() -> Obj
Return the
getnetbyname
Sys.getnetbyname() -> Obj
Return the
getnetent
Sys.getnetent() -> Obj
Return the
getpgrp
Sys.getpgrp() -> Obj
Return the
getppid
Sys.getppid() -> Obj
Return the
getpriority
Sys.getpriority() -> Obj
Return the
getprotobyname
Sys.getprotobyname() -> Obj
Return the
getprotobynumber
Sys.getprotobynumber() -> Obj
Return the
getprotoent
Sys.getprotoent() -> Obj
Return the
getpwent
Sys.getpwent() -> Obj
Return the
getpwnam
Sys.getpwnam() -> Obj
Return the
getpwuid
Sys.getpwuid() -> Obj
Return the
getservbyname
Sys.getservbyname() -> Obj
Return the
getservbyport
Sys.getservbyport() -> Obj
Return the
getservent
Sys.getservent() -> Obj
Return the
isweak
Sys.isweak() -> Obj
Return the
nanosleep
Sys.nanosleep() -> Obj
Return the
Aliases: nanoSleep
open
Sys.open() -> Obj
Return the
opendir
Sys.opendir() -> Obj
Return the
osName
Sys.osName() -> String
Return the name of the current operating system under which Sidef is running.
Sys.osName # 'linux' under Linux
# 'MSWin32' under Windows
Aliases: osname().
Returns an object of type: Sidef::Types::String::String
printf
Sys.printf() -> Obj
Return the
printh
Sys.printh(handle, obj1, obj2, ...) -> Bool
Print a list of argument into a handle object. The handle object can be of type GLOB or anyother handle which has the print method. Returns true on success.
Sys.printh(STDERR, "This is a warning!\n");
Returns an object of type: Sidef::Types::Bool::Bool
read
Sys.read() -> Obj
Return the
readln
Sys.readln() -> Obj
Return the
Aliases: scanln
ref
Sys.ref() -> Obj
Return the
refaddr
Sys.refaddr() -> Obj
Return the
reftype
Sys.reftype() -> Obj
Return the
run
Sys.run() -> Obj
Return the
Aliases: system
select
Sys.select() -> Obj
Return the
setgrent
Sys.setgrent() -> Obj
Return the
sethostent
Sys.sethostent() -> Obj
Return the
setnetent
Sys.setnetent() -> Obj
Return the
setpgrp
Sys.setpgrp() -> Obj
Return the
setpriority
Sys.setpriority() -> Obj
Return the
setprotoent
Sys.setprotoent() -> Obj
Return the
setpwent
Sys.setpwent() -> Obj
Return the
setservent
Sys.setservent() -> Obj
Return the
sidef
Sys.sidef() -> String
Return the full path of the 'sidef' main program.
Sys.sidef # under Linux, normally is '/usr/bin/sidef'
Returns an object of type: Sidef::Types::String::String
sleep
Sys.sleep() -> Obj
Return the
stderr
Sys.stderr() -> Obj
Return the
stdin
Sys.stdin() -> Obj
Return the
stdout
Sys.stdout() -> Obj
Return the
ualarm
Sys.ualarm() -> Obj
Return the
umask
Sys.umask() -> Obj
Return the
unweaken
Sys.unweaken() -> Obj
Return the
user
Sys.user() -> Obj
Return the
Aliases: getlogin
usleep
Sys.usleep() -> Obj
Return the
warn
Sys.warn() -> Obj
Return the
weaken
Sys.weaken() -> Obj
Return the