|
|||||||
|
|
GETDIRENTRIESSection: Manual del Programador de Linux (3)Updated: 24 Enero 1998 Index Return to Main Contents NOMBREgetdirentries - obtiene entradas de directorio en un formato independiente del sistema de ficherosSINOPSIS#define __USE_BSD o #define __USE_MISC#include <dirent.h> ssize_t getdirentries(int fd, char *buf, size_t nbytes , off_t *pbase); DESCRIPCIÓNLee entradas de directorio del especificado por fd y las guarda en el sitio apuntado por buf. Como mucho se leen nbytes bytes. La lectura empieza en la posición *pbase, y *pbase se actualiza con la nueva posición tras la lectura.VALOR DEVUELTOgetdirentries devuelve el número de bytes leídos o cero cuando llega al final del directorio. Si ocurre un error, se devuelve -1 y se pone un valor apropiado en errno.ERRORESVea el código fuente de la biblioteca de Linux para los detalles.VÉASE TAMBIÉNopen(2), lseek(2)
Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |