]>
git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/config/nvptx/affinity-fmt.c
1 /* Copyright (C) 2018-2021 Free Software Foundation, Inc.
3 This file is part of the GNU Offloading and Multi Processing Library
6 Libgomp is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
11 Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 Under Section 7 of GPL version 3, you are granted additional
17 permissions described in the GCC Runtime Library Exception, version
18 3.1, as published by the Free Software Foundation.
20 You should have received a copy of the GNU General Public License and
21 a copy of the GCC Runtime Library Exception along with this program;
22 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23 <http://www.gnu.org/licenses/>. */
32 #ifdef HAVE_INTTYPES_H
33 # include <inttypes.h> /* For PRIx64. */
36 #include <sys/utsname.h>
39 /* The HAVE_GETPID and HAVE_GETHOSTNAME configure tests are passing for nvptx,
40 while the nvptx newlib implementation does not support those functions.
41 Override the configure test results here. */
43 #undef HAVE_GETHOSTNAME
45 /* The nvptx newlib implementation does not support fwrite, but it does support
46 write. Map fwrite to write. */
48 #define fwrite(ptr, size, nmemb, stream) write (1, (ptr), (nmemb) * (size))
50 #include "../../affinity-fmt.c"