about summary refs log tree commit diff
path: root/libio/tst-readline.c
Commit message (Collapse)AuthorAgeFilesLines
* Increase timeout of libio/tst-readlineSzabolcs Nagy2018-10-091-0/+1
| | | | | | | | | | | | | | | | | | | | Increase timeout from the default 20s to 100s. This test makes close to 20 million syscalls with distribution: 12327675 read 4143204 lseek 929475 close 929471 openat 92817 fstat 1431 write ... The default timeout assumes each can finish in 1us on average which is not true on slow machines. Reviewed-by: Carlos O'Donell <carlos@redhat.com> * libio/tst-readline.c (TIMEOUT): Define.
* Fix copyright years in recent commitsFlorian Weimer2018-07-101-1/+1
|
* libio: Implement internal function __libc_readline_unlockedFlorian Weimer2018-07-061-0/+236
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.