Document use of CC and CFLAGS in more detail (bug 20980, bug 21234).
[glibc.git] / sysdeps / generic / not-cancel.h
blob19ad8cbc4c475af2856e1b643a13471f71addff4
1 /* Uncancelable versions of cancelable interfaces. Generic version.
2 Copyright (C) 2003-2018 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef NOT_CANCEL_H
21 # define NOT_CANCEL_H
23 #include <fcntl.h>
24 #include <unistd.h>
25 #include <sys/wait.h>
26 #include <time.h>
27 #include <sys/uio.h>
29 /* By default we have none. Map the name to the normal functions. */
30 #define __open_nocancel(...) \
31 __open (__VA_ARGS__)
32 #define __open64_nocancel(...) \
33 __open64 (__VA_ARGS__)
34 #define __openat_nocancel(...) \
35 __openat (__VA_ARGS__)
36 #define __openat64_nocancel(...) \
37 __openat64 (__VA_ARGS__)
38 #define __close_nocancel(fd) \
39 __close (fd)
40 #define __close_nocancel_nostatus(fd) \
41 (void) __close (fd)
42 #define __read_nocancel(fd, buf, n) \
43 __read (fd, buf, n)
44 #define __write_nocancel(fd, buf, n) \
45 __write (fd, buf, n)
46 #define __writev_nocancel_nostatus(fd, iov, n) \
47 (void) __writev (fd, iov, n)
48 # define __waitpid_nocancel(pid, stat_loc, options) \
49 __waitpid (pid, stat_loc, options)
50 #define __pause_nocancel() \
51 __pause ()
52 #define __nanosleep_nocancel(requested_time, remaining) \
53 __nanosleep (requested_time, remaining)
54 #define __fcntl_nocancel(fd, cmd, ...) \
55 __fcntl (fd, cmd, __VA_ARGS__)
57 #endif /* NOT_CANCEL_H */