_llseek(2) System Calls Manual _llseek(2) NOMBRE _llseek - reposiciona el puntero de lectura/escritura BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include /* Definicion de las constantes SYS_* */ #include int syscall(SYS__llseek, unsigned int fd, unsigned long offset_high, unsigned long offset_low, loff_t *resultado, unsigned int whence); Note: glibc provides no wrapper for _llseek(), necessitating the use of syscall(2). DESCRIPCION Note: for information about the llseek(3) library function, see lseek64(3). The _llseek() system call repositions the offset of the open file description associated with the file descriptor fd to the value (offset_high << 32) | offset_low This new offset is a byte offset relative to the beginning of the file, the current file offset, or the end of the file, depending on whether whence is SEEK_SET, SEEK_CUR, or SEEK_END, respectively. The new file offset is returned in the argument result. The type loff_t is a 64-bit signed type. Esta llamada de sistema esta presente en diversas plataformas de 32 bits para dar soporte a la busqueda de grandes desplazamientos de archivo. VALOR DEVUELTO Si no se produce ningun error, _llseek() devuelve 0. Si se produce, se devuelve el valor -1 y se asigna a errno un valor que indica el tipo de error que se ha producido. ERRORES EBADF fd no es un descriptor de fichero abierto. EFAULT Problema al copiar el resultado al espacio de usuario. EINVAL whence no es valido. VERSIONES You probably want to use the lseek(2) wrapper function instead. ESTANDARES Linux. VEASE TAMBIEN lseek(2), open(2), lseek64(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Juan Piernas y Marcos Fouces Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de Manual de Linux 6.9.1 2 Mayo 2024 _llseek(2)