www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Translating sys/resource.h

reply "Lars T. Kyllingstad" <public kyllingen.net> writes:
Hi,

I would like to ask for a little help with something.

I started translating the sys/resource.h POSIX header, because 
some of it may be required in std.process (to get the number of 
possible file descriptors, in order to close them all):

     
https://github.com/kyllingstad/druntime/blob/sysresource/src/core/sys/posix/sys/resource.d

(Regardless of how the discussion about how to handle file 
descriptors in std.process turns out, I think we should aim for 
full POSIX interface coverage in druntime.)

It would be great if someone who uses OSX, FreeBSD and/or Solaris 
could take a look at their system headers, and help me fill in 
the missing platform-dependent information.  I'm guessing that 
the different OSes have different values for the various enums, 
and that they may alias rlim_t to different types than Linux.  
(Some of them may even put extra information into the structs, so 
we may need to put them inside the version statements too.)

Please paste the code here, or, even better, open a pull request 
against my repo. :)  Thanks!

Lars
Mar 10 2013
parent reply "Kagamin" <spam here.lot> writes:
http://svnweb.freebsd.org/base/head/sys/sys/resource.h?view=markup 
?
Mar 11 2013
parent "Lars T. Kyllingstad" <public kyllingen.net> writes:
On Monday, 11 March 2013 at 09:30:37 UTC, Kagamin wrote:
 http://svnweb.freebsd.org/base/head/sys/sys/resource.h?view=markup 
 ?
Thanks!
Mar 12 2013