rillig
84085cca68
make(1): use space instead of tab for preprocessor directives
2020-11-29 09:27:40 +00:00
rillig
b136e34b03
make(1): remove unused label
2020-11-28 16:31:34 +00:00
rillig
4adbce360a
make(1): use comparisons in boolean expressions
...
The generated code stays exactly the same.
2020-11-23 23:41:11 +00:00
rillig
7179b788e7
make(1): align end-of-line comments with tabs
2020-11-23 20:41:20 +00:00
rillig
143a32671d
make(1): remove redundant parentheses from sizeof operator
...
The parentheses are only needed if the argument is a type, not an
expression.
2020-11-05 17:27:16 +00:00
rillig
5658125d0a
make(1): prepare for WARNS=6
...
The FD_* macros from sys/sys/fd_set.h use signed integers on NetBSD 8
and thus produce conversion errors. On NetBSD 9, these macros are fixed
to use 1U instead of 1.
2020-10-18 11:54:43 +00:00
rillig
78449cb4c7
make(1): use consistent include guard for headers
2020-10-18 11:49:47 +00:00
sjg
07bbd59e21
Use O_CLOEXEC and save a syscall.
...
Reviewed by: riastradh
2020-07-10 15:53:30 +00:00
sjg
200ecb7389
filemon_dev:filemon_open need FD_CLOEXEC
...
We need to mark the fd for filemon FD_CLOEXEC
so that when we call filemon_close() the device is
closed and unflushed data written to our temp file.
2020-07-10 00:42:53 +00:00
sjg
b24780ba6c
Rename guard to avoid that already used by Linux filemon.h
...
Reviewed by: riastradh
2020-01-22 22:10:36 +00:00
riastradh
b8bc1cd703
Missed a spot -- define _KERNTYPES to get register_t.
2020-01-19 20:22:57 +00:00
riastradh
bea0f8c176
Per sjg's suggestion, split filemon API into separate back ends.
...
By default we use the ktrace back end, but the /dev/filemon back end
is available as a compile-time option, by setting USE_FILEMON=dev in
make. sjg raised concerns about ktrace performance and would like to
continue using /dev/filemon on FreeBSD (which has seen more
maintenance kernel-side) without forking make.
2020-01-19 19:49:36 +00:00