From 44f08a6ecc9d04fbb97475ebb99eaec26be36f90 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 29 Jul 2007 22:24:44 +0000 Subject: * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree. (tests): Add tst-cpuset. * posix/sched_cpualloc.c: New file. * posix/sched_cpufree.c: New file. * posix/tst-cpuset.c: New file. * posix/Versions: Export __sched_cpualloc and __sched_cpufree for GLIBC_2.7. * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros. * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S macros. Define CPU_*_S macros. --- posix/sched_cpufree.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 posix/sched_cpufree.c (limited to 'posix/sched_cpufree.c') diff --git a/posix/sched_cpufree.c b/posix/sched_cpufree.c new file mode 100644 index 0000000000..dd4c6131d7 --- /dev/null +++ b/posix/sched_cpufree.c @@ -0,0 +1,27 @@ +/* Copyright (C) 2007 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +#include +#include + + +void +__sched_cpufree (cpu_set_t *set) +{ + free (set); +} -- cgit 1.4.1