Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] getdents
@ 1999-11-03  2:11 Matthew Wilcox
  1999-11-04  1:12 ` Kevin Vajk
  0 siblings, 1 reply; 6+ messages in thread
From: Matthew Wilcox @ 1999-11-03  2:11 UTC (permalink / raw)
  To: parisc-linux


I'm trying to implement the HPUX getdents syscall so that we can `-ls'
in sash.  Unfortunately, there appears to be no manual page on this.
Could someone let me know exactly what libc is expecting getdents
to return?  So far I have deduced the following:

It takes three parameters; a file descriptor, an address and a length
in bytes.  On return, that block of memory is filled with as many of
the following struct as will fit:

struct hpux_dirent {
	ino_t	d_ino;
	short	d_reclen;
	short	d_namlen;
	char	d_name[1];
};

But checking through the other compatibility implementations of getdents;
there is so much variation about what else might be returned in that
block that I would prefer to not speculate further unless I have to.

-- 
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-11-04  5:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-03  2:11 [parisc-linux] getdents Matthew Wilcox
1999-11-04  1:12 ` Kevin Vajk
1999-11-04  1:29   ` Kevin Vajk
1999-11-04  1:43     ` Matthew Wilcox
1999-11-04  5:52       ` Grant Grundler
1999-11-04  1:39   ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox