618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering#pragma once
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering/***
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering This file is part of systemd.
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering Copyright 2010-2015 Lennart Poettering
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering Copyright 2015 Filipe Brandenburger
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering systemd is free software; you can redistribute it and/or modify it
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering under the terms of the GNU Lesser General Public License as published by
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering (at your option) any later version.
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering systemd is distributed in the hope that it will be useful, but
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering Lesser General Public License for more details.
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering You should have received a copy of the GNU Lesser General Public License
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering***/
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering#include <sched.h>
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering#include "macro.h"
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering
618234a5258768359cb1086b152c5f08aaf89754Lennart PoetteringDEFINE_TRIVIAL_CLEANUP_FUNC(cpu_set_t*, CPU_FREE);
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering#define _cleanup_cpu_free_ _cleanup_(CPU_FREEp)
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering
618234a5258768359cb1086b152c5f08aaf89754Lennart Poetteringcpu_set_t* cpu_set_malloc(unsigned *ncpus);
618234a5258768359cb1086b152c5f08aaf89754Lennart Poettering
618234a5258768359cb1086b152c5f08aaf89754Lennart Poetteringint parse_cpu_set_and_warn(const char *rvalue, cpu_set_t **cpu_set, const char *unit, const char *filename, unsigned line, const char *lvalue);