• R/O
  • SSH

posixpp: 提交列表

The main posixpp library and associated tests.

Rev. 时间 作者
5f78080a2b88 tip 2022-12-08 23:28:42 Eric Hopper

Add some comments inspired by a ChatGPT session.

901261d5fd16 2022-01-12 01:03:33 Eric Hopper

Add sample compile command so I don't have to reconstruct it ...
every time I want to use it.

b1b7172b6000 2022-01-11 04:41:07 Eric Hopper

Merge with other clang-tidy cleanups.

adc44f7e5a6f 2022-01-11 04:22:51 Eric Hopper

Add support for fcntl + wrapper for F_DUPFD and F_DUPFD_CLOEXEC ...
fcntl commands.

857a394ad592 2022-01-11 04:19:25 Eric Hopper

Fix various random clang-tidy complaints.

15ec4b4900e4 2022-01-11 03:43:12 Eric Hopper

Remove excess blank line.

65d4804a6639 2022-01-11 03:41:44 Eric Hopper

Silence "return from norreturn" warnings.

0985bb9e2c34 2022-01-11 03:40:46 Eric Hopper

Fix destructor for union to be constexpr so expected<T> destructor can be.

a69f8a0de90c 2021-06-30 02:38:38 Eric Hopper

Fix various clang-tidy complaints.

9eb80934ba7d 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.

Show on old repository browser