xref: /netbsd-src/external/gpl3/gcc/dist/libgomp/config/linux/proc.h (revision b1e838363e3c6fc78a55519254d99869742dd33c)
1*b1e83836Smrg /* Copyright (C) 2011-2022 Free Software Foundation, Inc.
248fb7bfaSmrg    Contributed by Uros Bizjak <ubizjak@gmail.com>
348fb7bfaSmrg 
44d5abbe8Smrg    This file is part of the GNU Offloading and Multi Processing Library
54d5abbe8Smrg    (libgomp).
648fb7bfaSmrg 
748fb7bfaSmrg    Libgomp is free software; you can redistribute it and/or modify it
848fb7bfaSmrg    under the terms of the GNU General Public License as published by
948fb7bfaSmrg    the Free Software Foundation; either version 3, or (at your option)
1048fb7bfaSmrg    any later version.
1148fb7bfaSmrg 
1248fb7bfaSmrg    Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
1348fb7bfaSmrg    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1448fb7bfaSmrg    FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1548fb7bfaSmrg    more details.
1648fb7bfaSmrg 
1748fb7bfaSmrg    Under Section 7 of GPL version 3, you are granted additional
1848fb7bfaSmrg    permissions described in the GCC Runtime Library Exception, version
1948fb7bfaSmrg    3.1, as published by the Free Software Foundation.
2048fb7bfaSmrg 
2148fb7bfaSmrg    You should have received a copy of the GNU General Public License and
2248fb7bfaSmrg    a copy of the GCC Runtime Library Exception along with this program;
2348fb7bfaSmrg    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2448fb7bfaSmrg    <http://www.gnu.org/licenses/>.  */
2548fb7bfaSmrg 
2648fb7bfaSmrg #ifndef GOMP_PROC_H
2748fb7bfaSmrg #define GOMP_PROC_H 1
2848fb7bfaSmrg 
2948fb7bfaSmrg #include <sched.h>
3048fb7bfaSmrg 
3148fb7bfaSmrg #ifdef HAVE_PTHREAD_AFFINITY_NP
324d5abbe8Smrg extern unsigned long gomp_cpuset_size attribute_hidden;
334d5abbe8Smrg extern cpu_set_t *gomp_cpusetp attribute_hidden;
344d5abbe8Smrg extern unsigned long gomp_cpuset_popcount (unsigned long, cpu_set_t *)
354d5abbe8Smrg      attribute_hidden;
3648fb7bfaSmrg #endif
3748fb7bfaSmrg 
3848fb7bfaSmrg #endif /* GOMP_PROC_H */
39