Nix/src/libutil
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
..
args Overhaul completions, redo #6693 (#8131) 2023-10-23 15:03:11 +02:00
tests Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
abstract-setting-to-json.hh Split OptionalPathSetting from PathSetting 2023-06-18 23:31:18 -04:00
ansicolor.hh Finish converting existing comments for internal API docs (#8146) 2023-04-07 13:55:28 +00:00
archive.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
archive.hh Make ParseSink a bit better 2023-11-01 02:36:43 -04:00
args.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
args.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
callback.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
canon-path.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
canon-path.hh Merge remote-tracking branch 'upstream/master' into source-path 2023-04-17 11:41:50 +02:00
cgroup.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
cgroup.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
chunked-vector.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
closure.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
comparator.hh Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
compression.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
compression.hh Rename and protect BufferedSink::write 2023-04-07 09:21:50 +02:00
compute-levels.cc Add x86_64 compute levels as additional system types 2021-02-22 09:11:15 +01:00
compute-levels.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
config-impl.hh Merge pull request #8374 from obsidiansystems/improve-path-setting 2023-06-21 15:40:43 -04:00
config.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
config.hh libutil: Use c++ style cast 2023-10-19 18:26:49 +01:00
current-process.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
current-process.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
environment-variables.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
environment-variables.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
error.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
error.hh traces: Do not print unknown location 2023-09-03 13:44:32 +02:00
experimental-features.cc Add git commit verification input attributes 2023-11-03 20:15:12 +01:00
experimental-features.hh Add git commit verification input attributes 2023-11-03 20:15:12 +01:00
file-descriptor.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
file-descriptor.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
file-system.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
file-system.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
finally.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
fmt.hh fmt(): Handle std::string_view 2023-11-01 16:33:22 +01:00
fs-sink.cc Make ParseSink a bit better 2023-11-01 02:36:43 -04:00
fs-sink.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
git.cc Fix the parsing of the sourcehut refs file 2022-05-04 14:38:59 +02:00
git.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
hash.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
hash.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
hilite.cc Fix incorrect comment in hiliteMatches 2022-06-05 20:30:18 +02:00
hilite.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
json-impls.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
json-utils.cc Fix derivation load assertion errors 2023-08-05 01:34:30 +02:00
json-utils.hh Fix derivation load assertion errors 2023-08-05 01:34:30 +02:00
local.mk Overhaul completions, redo #6693 (#8131) 2023-10-23 15:03:11 +02:00
logging.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
logging.hh Finish converting existing comments for internal API docs (#8146) 2023-04-07 13:55:28 +00:00
lru-cache.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
monitor-fd.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
namespaces.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
namespaces.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
pool.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
posix-source-accessor.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
posix-source-accessor.hh SourceAccessor: Change the main interface from lstat() to maybeLstat() 2023-11-01 15:26:07 +01:00
processes.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
processes.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
ref.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
references.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
references.hh Don't assume the type of string::size_type 2023-06-15 21:24:14 +02:00
regex-combinators.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
serialise.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
serialise.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
signals.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
signals.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
source-accessor.cc Merge FSAccessor into SourceAccessor 2023-11-01 17:09:28 +01:00
source-accessor.hh Merge FSAccessor into SourceAccessor 2023-11-01 17:09:28 +01:00
split.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
suggestions.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
suggestions.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
sync.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
tarfile.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
tarfile.hh TarArchive: Remove a duplicate constant and increase the buffer size 2023-04-25 16:43:10 +02:00
terminal.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
terminal.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
thread-pool.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
thread-pool.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
topo-sort.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
types.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
unix-domain-socket.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
unix-domain-socket.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
url-parts.hh Put functional tests in tests/functional 2023-10-06 09:05:56 -04:00
url.cc fetchTree cleanup 2023-10-13 14:34:23 +02:00
url.hh fetchTree cleanup 2023-10-13 14:34:23 +02:00
users.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
users.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
util.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
util.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
variant-wrapper.hh Fixing #7479 2023-08-18 11:44:00 -04:00
xml-writer.cc xml-writer: Remove std aliases 2022-02-25 16:13:02 +01:00
xml-writer.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00