]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/generic/not-cancel.h
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / generic / not-cancel.h
CommitLineData
2c008571 1/* Uncancelable versions of cancelable interfaces. Generic version.
04277e02 2 Copyright (C) 2003-2019 Free Software Foundation, Inc.
2c008571
UD
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
59ba27a6
PE
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
2c008571 19
b29848b9
ST
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
2c008571 29/* By default we have none. Map the name to the normal functions. */
c2284574
AZ
30#define __open_nocancel(...) \
31 __open (__VA_ARGS__)
32#define __open64_nocancel(...) \
33 __open64 (__VA_ARGS__)
0bb2fabc
AZ
34#define __openat_nocancel(...) \
35 __openat (__VA_ARGS__)
36#define __openat64_nocancel(...) \
37 __openat64 (__VA_ARGS__)
c181840c 38#define __close_nocancel(fd) \
73299943 39 __close (fd)
c181840c 40#define __close_nocancel_nostatus(fd) \
2c008571 41 (void) __close (fd)
a748eb31 42#define __read_nocancel(fd, buf, n) \
2c008571 43 __read (fd, buf, n)
c647fb88 44#define __write_nocancel(fd, buf, n) \
2c008571 45 __write (fd, buf, n)
19926de9 46#define __writev_nocancel_nostatus(fd, iov, n) \
2c008571 47 (void) __writev (fd, iov, n)
a8410a5f 48# define __waitpid_nocancel(pid, stat_loc, options) \
73299943 49 __waitpid (pid, stat_loc, options)
08d6eb46 50#define __pause_nocancel() \
962e6658 51 __pause ()
6f33fd04 52#define __nanosleep_nocancel(requested_time, remaining) \
962e6658 53 __nanosleep (requested_time, remaining)
06ab719d
AZ
54#define __fcntl64_nocancel(fd, cmd, ...) \
55 __fcntl64 (fd, cmd, __VA_ARGS__)
b29848b9
ST
56
57#endif /* NOT_CANCEL_H */