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