]>
Commit | Line | Data |
---|---|---|
c1f25758 | 1 | /* Uncancelable versions of cancelable interfaces. Hurd version. |
d614a753 | 2 | Copyright (C) 2003-2020 Free Software Foundation, Inc. |
c1f25758 ST |
3 | This file is part of the GNU C Library. |
4 | Contributed by Ulrich Drepper <drepper@redhat.com>, 2003. | |
5 | ||
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. | |
10 | ||
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. | |
15 | ||
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 | <https://www.gnu.org/licenses/>. */ | |
19 | ||
20 | #ifndef NOT_CANCEL_H | |
21 | # define NOT_CANCEL_H | |
22 | ||
23 | #include <fcntl.h> | |
24 | #include <unistd.h> | |
25 | #include <sys/wait.h> | |
26 | #include <time.h> | |
27 | #include <sys/uio.h> | |
28 | #include <hurd.h> | |
29 | #include <hurd/fd.h> | |
30 | ||
31 | /* For now we have none. Map the name to the normal functions. */ | |
32 | #define __open_nocancel(...) \ | |
33 | __open (__VA_ARGS__) | |
34 | #define __open64_nocancel(...) \ | |
35 | __open64 (__VA_ARGS__) | |
36 | #define __openat_nocancel(...) \ | |
37 | __openat (__VA_ARGS__) | |
38 | #define __openat64_nocancel(...) \ | |
39 | __openat64 (__VA_ARGS__) | |
40 | #define __close_nocancel(fd) \ | |
41 | __close (fd) | |
42 | ||
186e119b | 43 | void __close_nocancel_nostatus (int fd); |
c1f25758 ST |
44 | |
45 | #define __read_nocancel(fd, buf, n) \ | |
46 | __read (fd, buf, n) | |
47 | #define __pread64_nocancel(fd, buf, count, offset) \ | |
48 | __pread64 (fd, buf, count, offset) | |
49 | #define __write_nocancel(fd, buf, n) \ | |
50 | __write (fd, buf, n) | |
51 | #define __writev_nocancel_nostatus(fd, iov, n) \ | |
52 | (void) __writev (fd, iov, n) | |
53 | # define __waitpid_nocancel(pid, stat_loc, options) \ | |
54 | __waitpid (pid, stat_loc, options) | |
55 | #define __fcntl64_nocancel(fd, cmd, ...) \ | |
56 | __fcntl64 (fd, cmd, __VA_ARGS__) | |
57 | ||
186e119b ST |
58 | #if IS_IN (libc) || IS_IN (rtld) |
59 | hidden_proto (__close_nocancel_nostatus) | |
60 | #endif | |
61 | ||
c1f25758 | 62 | #endif /* NOT_CANCEL_H */ |