Re: directory data structure
- From: Maxwell Lol <nospam@xxxxxxxxxxx>
- Date: Sat, 28 Jun 2008 10:15:44 -0400
sid <kingsiddharth@xxxxxxxxx> writes:
Hi
I want to write a C program that can read directories (say list them
as well).
I found out that we could use an API provided by dirent.h header file,
but I am not too keen on using the API. I want to access it directly
without any API. Any help is welcome.
This doesn't make any sense.
If you don't want an API, then why use C?
You could use the API built into perl. But that's another API.
If you truly want to NOT use an API, use shell commands, not C.
Use dd(1) to read raw data from the disk and enjoy parsing binary
information, where you need the info in the *.h files.
Or use ls(1), find(1) and other shell commands.
.
- Follow-Ups:
- Re: directory data structure
- From: sid
- Re: directory data structure
- From: Dances With Crows
- Re: directory data structure
- References:
- directory data structure
- From: sid
- directory data structure
- Prev by Date: Re: What Linux distro to use for old Intel machine, that fits on CDs?
- Next by Date: Re: Which MTA/MDA?
- Previous by thread: Re: directory data structure
- Next by thread: Re: directory data structure
- Index(es):
Relevant Pages
|