Next: , Previous: , Up: posix fd   [Index]


4.13.8 Special device operations

Function: fcntl fd command
Function: fcntl fd command arg

Interface to the C function fcntl(), (libc)fcntl. Perform the operation specified by command on the file descriptor fd using arg; fd and command must be fixnums; arg must be #f, a fixnum, a bytevector or a pointer, if it is #f or not given no argument is handed to fcntl(). If successful return a fixnum representing the return value of fcntl(), else raise an exception.

Function: ioctl fd command
Function: ioctl fd command arg

Interface to the C function ioctl(), (libc)ioctl. Perform the operation specified by command on the file descriptor fd using arg; fd and command must be fixnums; arg must be #f, a fixnum, a bytevector or a pointer, if it is #f or not given no argument is handed to ioctl(). If successful return a fixnum representing the return value of ioctl(), else raise an exception.