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


4.13.4 Moving the current position

Function: lseek fd off whence

Interface to the C function lseek(), (libc)lseek. Change the file position of the file descriptor fd to off from whence; whence must a fixnum, off must be an exact integer. If successful return a non–negative exact integer representing the number of bytes from the beginning of the file, else raise an exception.