开发者

Existing C++ *nix system library?

There are several good cross-platform libraries, by which we usually mean something that wraps the commonalities of Windows and *nix. Is there anything for developers that don't really care about Windows but want the benefits of C++ wrapping *nix system calls?

I am thinking of a library that reduces the tedium of struct setup, checking return codes and errno, throws app开发者_JAVA百科ropriate (and actionable) exceptions, and generally reduces the system call boilerplate.

I accept that there are some standalone syscalls for which this might not make sense but there are plenty which could be naturally grouped e.g. stat/lstat/fstat, getpid/getppid/geteuid/etc.

Is there anything good out there?


Sounds like Boost Filesystem and Boost Threads cover a lot of that ground. Threading is also included in C++0x.

Don't know of any for managing process information a la getpid, though. What other kinds of info and interfaces would be bundled into a process object?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜