• R/O
  • SSH

posixpp: List of commits

The main posixpp library and associated tests.


RSS
Rev. Time Author
9eb80934ba7d tip 2021-05-11 01:07:00 Eric Hopper

Fix 'move to self' bug.

b1efa70ccb74 2021-05-11 01:02:35 Eric Hopper

Move close to near top of member functions because it's important.

2c7097052749 2021-05-11 00:59:13 Eric Hopper

More dup documentation, add some TODOs.

845b89885277 2021-05-03 15:30:36 Eric Hopper

Make read, write, and open be 'free' functions. Justification...

These are not intrinsic to every kind of file descriptor. If open is a
member, so should epoll_create, socket, and signalfd (among others). But
that would require dragging in a whole bunch of constants and types
associated solely with each of these calls. That doesn't seem right, the
fd type should be thin.

So, the fd type will now contain only a very few functions that are relevant
for just about any kind of file descriptor.

Of course, the magic of argument dependent lookup enables some of these now
'free' functions (like read and write) to be called without referencing the
namespace they're in because C++ rightly considers them part of the
interface for the fd type they take.

21ff2fa93f67 2021-05-03 02:03:13 Eric Hopper

Use library to create tiny, no-runtime support program.

8e9f35b58b20 2021-05-02 23:48:07 Eric Hopper

Fix exit.

1f9d5bc4023b 2021-05-01 01:32:37 Eric Hopper

Add exit system calls, also hard to test for.

d30c74a036b5 2021-04-30 01:31:19 Eric Hopper

Implement dup3 as well, and add TODO for test case.

2737e2304026 2021-04-30 01:31:13 Eric Hopper

Tests for dup and dup2.

61484b250fd1 2021-04-28 21:51:39 Eric Hopper

Fix to use .native() instead of .string() to get filenames.

24a7c6e1a249 2021-04-28 21:39:34 Eric Hopper

Update to latest version of Catch2 for sub-project.

e43164705d7a 2021-04-28 21:27:25 Eric Hopper

Reduce log clutter from tempdir.

cdd7cf6a1539 2021-04-28 21:26:43 Eric Hopper

Fix and slightly extend open/write/close test to now be an...
open/write/close/open/read/close test.

8a2cbc829766 2021-04-28 21:25:52 Eric Hopper

Result doesn't need to be moved. Also, use is_valid(), not as_fd()

510383d3b583 2021-04-28 00:28:07 Eric Hopper

Ignore a directory full of saved experiments.

e5ded4f9d6ea 2021-04-26 15:22:11 Eric Hopper

Add tests that would've caught the previous error, as well as...
tests that make sure the move and copy semantics work as expected.

d78d228d0ec0 2021-04-26 05:48:39 Eric Hopper

Fix bug in expected.

7d104087c5a4 2021-04-25 07:46:38 Eric Hopper

Add target to use for temporary development experiments.

fb5ee525b881 2021-04-25 07:45:43 Eric Hopper

Remove dependency on variant. It uses virtual tables.

7188050a1ebe 2021-02-21 12:28:11 Eric Hopper

Revert CMake version since LGTM doesn't support C++20.

322a7a67473e 2021-02-21 12:16:59 Eric Hopper

Configure git submodules like hg submodules is configured.

f08563246236 2021-02-21 12:00:44 Eric Hopper

Lower required revision of CMake so LGTM can work.

a0e636a57e56 2021-02-19 16:18:19 Eric Hopper

Touchups on fd class. Documentation, moving stuff around, etc...

c017ac4845af 2021-02-17 11:51:25 Eric Hopper

Several small changes.

1. Use noexcept in more places.
2. Make close call return expected<void>
3. Add dup and dup2.
4. Drop lambda for int to fd coversion and use inline static instead.

0bdb02fe5844 2021-02-17 08:07:26 Eric Hopper

Fix warning about discard return value by adding error handling.

02855f3edde6 2021-02-17 04:59:29 Eric Hopper

Explanatory comment.

e38807a6aaf9 2021-02-17 04:59:28 Eric Hopper

Add permbits for use for the 'mode' argument.

a3ea6857c2f8 2021-01-21 06:57:12 Eric Hopper

Update interface for tests.

a206782e27d7 2021-01-21 05:16:45 Eric Hopper

Add fdflags.h for flags associated with a file descriptor.

1b9e82800e24 2021-01-20 11:43:57 Eric Hopper

Completely rework flagset into being a factory for flagset types.

Show on old repository browser