diff options
author | Bernd Schubert <bschubert@ddn.com> | 2025-03-11 22:21:09 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-04-15 00:50:26 +0200 |
commit | 42a8b7614da0e0151b38e276b1cb6c6832126d50 (patch) | |
tree | 0c1632cce76ec00cf9b927af157c165f29cdec09 /lib/util.h | |
parent | e65395521bae162b72f038f02ccbe5686f7bf88c (diff) | |
download | libfuse-42a8b7614da0e0151b38e276b1cb6c6832126d50.tar.gz |
fuse_lowlevel: Simplify se->buf_reallocable
se->buf_reallocable is true when reading /dev/fuse is handled
from internal functions - we can set the variable in
fuse_session_receive_buf_internal(). With that we also
don't need to have it an _Atomic variable anymore.
In _fuse_session_receive_buf() we can use "bool internal"
to check if the buffer can be re-allocated.
Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Diffstat (limited to 'lib/util.h')
-rw-r--r-- | lib/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -5,6 +5,9 @@ #define ROUND_UP(val, round_to) (((val) + (round_to - 1)) & ~(round_to - 1)) +#define likely(x) __builtin_expect(!!(x), 1) +#define unlikely(x) __builtin_expect(!!(x), 0) + int libfuse_strtol(const char *str, long *res); /** |