Re: Posix.FileStatus: st_rdev from struct stat is missing
Mon, 12 Jun 2000 11:12:50 -0700, Sigbjorn Finne <[EMAIL PROTECTED]> pisze: > An implementation of UNIX 9? (aka the single UNIX spec) for Haskell > would be a Fine Thing (but is there a demand?) IMHO generic FFI should settle before. Then I would be glad to take part in making such interface. I just wanted to make a ls-like directory listing. Posix lacks symlinks, sticky bits and device id of device files. SUSV2 still seems to lack any interpretation of device id (major/minor), so device id cannot be portably printed in a nice way. It's annoying that to get an unsupported bit of information from Posix types (like st_rdev or S_ISLNK), the only way that does not depend on implementation of Haskell's Posix module is to rewrite an interface to a C function together with marshalling relevant C types from scratch. -- __("$ P+++ L++>$ E- ^^ W++ N+++ o? K? w(---) O? M- V? PS-- PE++ Y? PGP+ t QRCZAK 5? X- R tv-- b+>++ DI D- G+ e> h! r--%>++ y-
RE: Posix.FileStatus: st_rdev from struct stat is missing
[EMAIL PROTECTED] writes: > > Sorry if I asked this before, but I could not find the answer now: > are POSIX specifications freely available somewhere? > The last time I looked, you had to pay IEEE in order to have them send you a copy. Or get Donald Lewine's O'Reilly book on Posix.1, it's quite useful. An implementation of UNIX 9? (aka the single UNIX spec) for Haskell would be a Fine Thing (but is there a demand?) --sigbjorn
Re: Posix.FileStatus: st_rdev from struct stat is missing
Mon, 12 Jun 2000 09:36:33 -0700, Sigbjorn Finne <[EMAIL PROTECTED]> pisze: > None of these are POSIX supported (same with st_blksize.) Ah. Sorry if I asked this before, but I could not find the answer now: are POSIX specifications freely available somewhere? It would be nice to have module(s) Unix, providing parts of the interface of e.g. The Single UNIX(R) Specification, as an addition to Posix (i.e. the same FileStatus would have additional fields visible, and lstat would be there). -- __("$ P+++ L++>$ E- ^^ W++ N+++ o? K? w(---) O? M- V? PS-- PE++ Y? PGP+ t QRCZAK 5? X- R tv-- b+>++ DI D- G+ e> h! r--%>++ y-
RE: Posix.FileStatus: st_rdev from struct stat is missing
None of these are POSIX supported (same with st_blksize.) --sigbjorn Sven Panne <[EMAIL PROTECTED]> writes: > > Marcin 'Qrczak' Kowalczyk wrote: > > The subject says all. > > st_blocks is missing, too. But I'm unsure about versionitis here, > so could some POSIX guru enlighten us on those fields? Are they > guaranteed to exist on all OS versions or must configure.in come > to the rescue? > > Cheers, >Sven > >
Re: Posix.FileStatus: st_rdev from struct stat is missing
Marcin 'Qrczak' Kowalczyk wrote: > The subject says all. st_blocks is missing, too. But I'm unsure about versionitis here, so could some POSIX guru enlighten us on those fields? Are they guaranteed to exist on all OS versions or must configure.in come to the rescue? Cheers, Sven
Posix.FileStatus: st_rdev from struct stat is missing
The subject says all. -- __("$ P+++ L++>$ E- ^^ W++ N+++ o? K? w(---) O? M- V? PS-- PE++ Y? PGP+ t QRCZAK 5? X- R tv-- b+>++ DI D- G+ e> h! r--%>++ y-