D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Kernel
/
Filename :
syscall-i.ri
back
Copy
U:RDoc::AnyMethod[iI"syscall:ETI"Kernel#syscall;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"RInvokes Posix system call {syscall(2)}[https://linux.die.net/man/2/syscall], ;TI"&which calls a specified function.;To:RDoc::Markup::BlankLine o; ; [ I"ICalls the operating system function identified by +integer_callno+; ;TI"Preturns the result of the function or raises SystemCallError if it failed. ;TI"3The effect of the call is platform-dependent. ;TI"=The arguments and returned value are platform-dependent.;T@o; ; [I"JFor each of +arguments+: if it is an integer, it is passed directly; ;TI"Iif it is a string, it is interpreted as a binary sequence of bytes. ;TI"1There may be as many as nine such arguments.;T@o; ; [I"OArguments +integer_callno+ and +argument+, as well as the returned value, ;TI"are platform-dependent.;T@o; ; [I"BNote: Method +syscall+ is essentially unsafe and unportable. ;TI">The DL (Fiddle) library is preferred for safer and a bit ;TI"more portable programming.;T@o; ; [I"&Not implemented on all platforms.;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"6syscall(integer_callno, *arguments) -> integer ;T0[ I"(*args);T@'FI"Kernel;TcRDoc::NormalModule00