diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-01 20:52:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-01 20:52:52 +0200 |
commit | b85ec419cb1f564ffb3d2d142c747c91e36e8867 (patch) | |
tree | 09e5978a7e37f476770446b6404f7e437221d27d /src/basic/util.h | |
parent | 92dcf85e11d24b60f099401c1865add607d0bf4a (diff) | |
parent | 5cc623e644852923def55962d2ee92333af8ead7 (diff) |
Merge pull request #1098 from filbranden/cpuaffinity2
Getting rid of FOREACH_WORD_QUOTED and some more cleanup in config_parse_cpu_affinity2
Diffstat (limited to 'src/basic/util.h')
-rw-r--r-- | src/basic/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/util.h b/src/basic/util.h index 1484ef58e5..ff7a00e928 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -363,6 +363,9 @@ int fd_is_temporary_fs(int fd); int pipe_eof(int fd); +DEFINE_TRIVIAL_CLEANUP_FUNC(cpu_set_t*, CPU_FREE); +#define _cleanup_cpu_free_ _cleanup_(CPU_FREEp) + cpu_set_t* cpu_set_malloc(unsigned *ncpus); #define xsprintf(buf, fmt, ...) assert_se((size_t) snprintf(buf, ELEMENTSOF(buf), fmt, __VA_ARGS__) < ELEMENTSOF(buf)) |