Blame sysdeps/unix/sysv/linux/pread64_nocancel.c

Packit Bot eb4901
/* Linux pread64() syscall implementation -- non-cancellable.
Packit Bot eb4901
   Copyright (C) 2019 Free Software Foundation, Inc.
Packit Bot eb4901
   This file is part of the GNU C Library.
Packit Bot eb4901
Packit Bot eb4901
   The GNU C Library is free software; you can redistribute it and/or
Packit Bot eb4901
   modify it under the terms of the GNU Lesser General Public
Packit Bot eb4901
   License as published by the Free Software Foundation; either
Packit Bot eb4901
   version 2.1 of the License, or (at your option) any later version.
Packit Bot eb4901
Packit Bot eb4901
   The GNU C Library is distributed in the hope that it will be useful,
Packit Bot eb4901
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot eb4901
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Bot eb4901
   Lesser General Public License for more details.
Packit Bot eb4901
Packit Bot eb4901
   You should have received a copy of the GNU Lesser General Public
Packit Bot eb4901
   License along with the GNU C Library; if not, see
Packit Bot eb4901
   <http://www.gnu.org/licenses/>.  */
Packit Bot eb4901
Packit Bot eb4901
#include <unistd.h>
Packit Bot eb4901
#include <sysdep-cancel.h>
Packit Bot eb4901
#include <not-cancel.h>
Packit Bot eb4901
Packit Bot eb4901
#ifndef __NR_pread64
Packit Bot eb4901
# define __NR_pread64 __NR_pread
Packit Bot eb4901
#endif
Packit Bot eb4901
Packit Bot eb4901
ssize_t
Packit Bot eb4901
__pread64_nocancel (int fd, void *buf, size_t count, off64_t offset)
Packit Bot eb4901
{
Packit Bot eb4901
  return INLINE_SYSCALL_CALL (pread64, fd, buf, count, SYSCALL_LL64_PRW (offset));
Packit Bot eb4901
}
Packit Bot eb4901
hidden_def (__pread64_nocancel)