Back to index

glibc  2.9
not-cancel.h
Go to the documentation of this file.
00001 /* Uncancelable versions of cancelable interfaces.  Generic version.
00002    Copyright (C) 2003, 2006 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004    Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
00005 
00006    The GNU C Library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Lesser General Public
00008    License as published by the Free Software Foundation; either
00009    version 2.1 of the License, or (at your option) any later version.
00010 
00011    The GNU C Library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Lesser General Public License for more details.
00015 
00016    You should have received a copy of the GNU Lesser General Public
00017    License along with the GNU C Library; if not, write to the Free
00018    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019    02111-1307 USA.  */
00020 
00021 /* By default we have none.  Map the name to the normal functions.  */
00022 #define open_not_cancel(name, flags, mode) \
00023   __libc_open (name, flags, mode)
00024 #define open_not_cancel_2(name, flags) \
00025   __libc_open (name, flags)
00026 #define openat_not_cancel(fd, name, flags, mode) \
00027   __openat (fd, name, flags, mode)
00028 #define openat_not_cancel_3(fd, name, flags) \
00029   __openat (fd, name, flags, 0)
00030 #define openat64_not_cancel(fd, name, flags, mode) \
00031   __openat64 (fd, name, flags, mode)
00032 #define openat64_not_cancel_3(fd, name, flags) \
00033   __openat64 (fd, name, flags, 0)
00034 #define close_not_cancel(fd) \
00035   __close (fd)
00036 #define close_not_cancel_no_status(fd) \
00037   (void) __close (fd)
00038 #define read_not_cancel(fd, buf, n) \
00039   __read (fd, buf, n)
00040 #define write_not_cancel(fd, buf, n) \
00041   __write (fd, buf, n)
00042 #define writev_not_cancel_no_status(fd, iov, n) \
00043   (void) __writev (fd, iov, n)
00044 #define fcntl_not_cancel(fd, cmd, val) \
00045   __fcntl (fd, cmd, val)
00046 # define waitpid_not_cancel(pid, stat_loc, options) \
00047   __waitpid (pid, stat_loc, options)