Subject: Re: asystem call for obtain the content of a directory
To: c5666305 <email@example.com>
From: Frank van der Linden <firstname.lastname@example.org>
Date: 02/19/1998 00:48:39
On Thu, Feb 19, 1998 at 07:07:37AM +0800, c5666305 wrote:
> I would like to know which system call will allow me to obtain the content
> of a directory (As I am no experience in use the system call). If so,
> please show me the direction or send it to me. Thanks.
The system call that does the work here is getdents(). However, you
should rarely need that; opendir() and friends should work for you.
They are implemented on top of getdents() and provide an easier
See the getdents(2) and directory(3) manual pages for more info.