pennae
f9aee2f2c4
don't malloc/memset posix accessor buffer
...
it's relatively small and fits on the stack nicely, and we don't need it
initialized either.
2023-12-19 19:32:16 +01:00
Eelco Dolstra
57246c4c38
PosixSourceAccessor: Cache lstat() calls
...
Since we're doing a lot of them in assertNoSymlinks().
2023-12-06 13:55:54 +01:00
Eelco Dolstra
83c067c0fa
PosixSourceAccessor: Don't follow any symlinks
...
All path components must not be symlinks now (so the user needs to
call `resolveSymlinks()` when needed).
2023-12-05 23:02:59 +01:00
John Ericson
ac89bb064a
Split up util.{hh,cc}
...
All OS and IO operations should be moved out, leaving only some misc
portable pure functions.
This is useful to avoid copious CPP when doing things like Windows and
Emscripten ports.
Newly exposed functions to break cycles:
- `restoreSignals`
- `updateWindowSize`
2023-11-05 12:20:02 -05:00
Eelco Dolstra
2f5c1a27dc
LocalStoreAccessor: Reuse PosixSourceAccessor
2023-11-01 17:22:25 +01:00
Eelco Dolstra
cdb27c1519
SourceAccessor: Change the main interface from lstat() to maybeLstat()
2023-11-01 15:26:07 +01:00
Eelco Dolstra
34a42f0d0a
Move PosixSourceAccessor into its own file
2023-10-23 11:05:50 +02:00