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

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