Re: directory data structure



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.




.



Relevant Pages

  • Re: directory data structure
    ... header file, but I am not too keen on using the API. ... insanely complex and there's a large amount of sample code that uses ...  This is not a good idea, because some programmers who ...
    (comp.os.linux.misc)
  • Re: directory data structure
    ... 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. ... This is not a good idea, because some programmers who ... What kinds of parts does God need? ...
    (comp.os.linux.misc)
  • Help me, Which library has KeTryToAcquireSpinLockAtDpcLevel() API??
    ... no the API ... 'KeTryToAcquireSpinLockAtDpcLevel' is there in the header file ... 'ntddk.h' but not at all present in wdm.lib library file. ... file but gives a linker error saying that symbol ...
    (microsoft.public.win32.programmer.kernel)
  • Help me, Which library has KeTryToAcquireSpinLockAtDpcLevel() API??
    ... no the API ... 'KeTryToAcquireSpinLockAtDpcLevel' is there in the header file ... 'ntddk.h' but not at all present in wdm.lib library file. ... file but gives a linker error saying that symbol ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: directories
    ... sid wrote: ... I found out that we could use an API provided by dirent.h header file, ... Do you want to extract the directory infor- ...
    (comp.lang.c)