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

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