C ++ - shell for posix and linux functions

Do you know about any good posix library shells and linux functions and structures (e.g. sockets or file descriptors) in C ++ classes? For example, I am thinking of the base class FileDescriptor and some inheriting classes (unix sockets, etc.) with methods such as writing, reading, or even some system calls (sendfile, splice) - all exceptions are for exception, instead of setting errno. Or some class of shared memory, etc.

I can’t find anything like it, and now I think that I write it myself, because I often have to write a C ++ application for Linux and use the C functions (painful error checking) or wrap them myself each time.

--- EDIT ---

Well, neither QT nor Boost will compile on the system, we use - this is a small Linux kernel based on 2.4.29, installed on embedded computers.

+6
c ++ linux posix wrapper
source share
6 answers

Try Common C ++ . I have not used it myself, but it supports what you mentioned.

+3
source share

Well, not quite a wrapper, but Boost has it all , and supports all major platforms.

+4
source share

Boost has several portable interfaces for some of the things you need, for example. Boost.Interprocess or Boost.Asio .

+4
source share

Qt solves many problems that are usually platform dependent. The GUI is wise, but console stuff is also covered. eg:.

+1
source share

There Qt is much more than a GUI library. Nokia called it the "application and user interface." The "application" part refers to the Qt wrapper of interfaces for files, sockets, threads, etc.

Qt is C ++, and IMHO is one of the best developed C ++ codes, so it is definitely worth a try.

0
source share

posixcpp . Now it is at an early stage. This is not cross-platform, but focused on GCC and Linux. License for LGPL 3.

0
source share

All Articles