diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-07-06 16:53:48 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-07-06 17:52:54 +0200 |
commit | 3f5e3f5d066dcffb80af48ae2cf35a01a85a8f10 (patch) | |
tree | 2eb99509fbdfb5f61ee40bdf634c63f092b85ae2 /libio/fseeko64.c | |
parent | aarch64: add HWCAP_ATOMICS to HWCAP_IMPORTANT (diff) | |
download | glibc-3f5e3f5d066dcffb80af48ae2cf35a01a85a8f10.tar.gz glibc-3f5e3f5d066dcffb80af48ae2cf35a01a85a8f10.tar.bz2 glibc-3f5e3f5d066dcffb80af48ae2cf35a01a85a8f10.zip |
libio: Implement internal function __libc_readline_unlocked
This is a variant of fgets which fails with ERANGE if the
buffer is too small, and the buffer length is given as an
argument of type size_t.
This function will be useful for implementing NSS file reading
operations. Compared to a direct implementation using the public API,
it avoids an lseek system call in case the line terminator can be
found in the internal read buffer.
Diffstat (limited to 'libio/fseeko64.c')
-rw-r--r-- | libio/fseeko64.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libio/fseeko64.c b/libio/fseeko64.c index eea6455bc3..1d9bb190a6 100644 --- a/libio/fseeko64.c +++ b/libio/fseeko64.c @@ -32,7 +32,7 @@ #ifndef __OFF_T_MATCHES_OFF64_T int -fseeko64 (FILE *fp, off64_t offset, int whence) +__fseeko64 (FILE *fp, off64_t offset, int whence) { int result; CHECK_FILE (fp, -1); @@ -41,5 +41,6 @@ fseeko64 (FILE *fp, off64_t offset, int whence) _IO_release_lock (fp); return result; } - +libc_hidden_def (__fseeko64) +weak_alias (__fseeko64, fseeko64) #endif |