Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 
 

GETDIRENTRIES

Section: Manual del Programador de Linux (3)
Updated: 24 Enero 1998
Index Return to Main Contents
 

NOMBRE

getdirentries - obtiene entradas de directorio en un formato independiente del sistema de ficheros  

SINOPSIS

#define __USE_BSD o #define __USE_MISC
#include <dirent.h>

ssize_t getdirentries(int fd, char *buf, size_t nbytes , off_t *pbase);  

DESCRIPCIÓN

Lee 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 DEVUELTO

getdirentries 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.  

ERRORES

Vea el código fuente de la biblioteca de Linux para los detalles.  

VÉASE TAMBIÉN

open(2), lseek(2)


 

Index

NOMBRE
SINOPSIS
DESCRIPCIÓN
VALOR DEVUELTO
ERRORES
VÉASE TAMBIÉN

 
 
 
 
Google
  Web Linuxinfor   
 

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.