mes/lib/linux
Jan Nieuwenhuizen 3abd3e0bcc
mescc: Mes C Library: lseek: Be careful clearing read buffer.
* lib/linux/lseek.c (_lseek): New function.
* lib/linux/lseek.c (lseek): Use it to check if we should reset read
buffer.
* lib/mes/__buffered_read.c (__read_buffer_max): New variable.
(__buffered_read_init): Add environment override: MES_READ_BUFFER.
(__buffered_read): Use it.
2020-01-20 22:47:52 +01:00
..
x86-mes build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86-mes-gcc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86-mes-mescc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86_64-mes build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86_64-mes-gcc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86_64-mes-mescc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
_getcwd.c mescc: Mes C library: Move common getcwd, open bits to posix. 2019-06-25 23:10:52 +02:00
_open3.c mescc: Mes C Library: Add buffered read. 2019-07-27 22:58:49 +02:00
_read.c mescc: Mes C Library: Move posix bits to read. 2019-06-25 01:58:15 +02:00
access.c build: Simplify. 2019-06-08 15:36:22 +02:00
brk.c build: Simplify. 2019-06-08 15:36:22 +02:00
chdir.c build: Simplify. 2019-06-08 15:36:22 +02:00
chmod.c build: Simplify. 2019-06-08 15:36:22 +02:00
clock_gettime.c build: Simplify. 2019-06-08 15:36:22 +02:00
close.c mescc: Mes C Library: Add buffered read. 2019-07-27 22:58:49 +02:00
dup.c build: Simplify. 2019-06-08 15:36:22 +02:00
dup2.c build: Simplify. 2019-06-08 15:36:22 +02:00
execve.c build: Simplify. 2019-06-08 15:36:22 +02:00
fcntl.c build: Simplify. 2019-06-08 15:36:22 +02:00
fork.c build: Simplify. 2019-06-08 15:36:22 +02:00
fstat.c build: Simplify. 2019-06-08 15:36:22 +02:00
fsync.c build: Simplify. 2019-06-08 15:36:22 +02:00
getdents.c build: Simplify. 2019-06-08 15:36:22 +02:00
getegid.c build: Simplify. 2019-06-08 15:36:22 +02:00
geteuid.c build: Simplify. 2019-06-08 15:36:22 +02:00
getgid.c build: Simplify. 2019-06-08 15:36:22 +02:00
getpid.c build: Simplify. 2019-06-08 15:36:22 +02:00
getppid.c build: Simplify. 2019-06-08 15:36:22 +02:00
getrusage.c build: Simplify. 2019-06-08 15:36:22 +02:00
gettimeofday.c build: Simplify. 2019-06-08 15:36:22 +02:00
getuid.c build: Simplify. 2019-06-08 15:36:22 +02:00
ioctl.c mescc: Mes C Library: Fix isatty for x86_64. 2019-11-23 21:29:36 +01:00
kill.c build: Simplify. 2019-06-08 15:36:22 +02:00
link.c build: Simplify. 2019-06-08 15:36:22 +02:00
lseek.c mescc: Mes C Library: lseek: Be careful clearing read buffer. 2020-01-20 22:47:52 +01:00
lstat.c build: Simplify. 2019-06-08 15:36:22 +02:00
mkdir.c build: Simplify. 2019-06-08 15:36:22 +02:00
mknod.c mescc: Mes C Library: Support GNU Tar: Add creat, mknod. 2019-07-12 11:56:58 +02:00
nanosleep.c build: Simplify. 2019-06-08 15:36:22 +02:00
pipe.c build: Simplify. 2019-06-08 15:36:22 +02:00
read.c build: Simplify. 2019-06-08 15:36:22 +02:00
readlink.c mescc: Mes C Library: Support GNU Tar: Add readlink, symlink. 2019-06-13 01:07:19 +02:00
rename.c build: Simplify. 2019-06-08 15:36:22 +02:00
rmdir.c build: Simplify. 2019-06-08 15:36:22 +02:00
setgid.c build: Simplify. 2019-06-08 15:36:22 +02:00
settimer.c build: Simplify. 2019-06-08 15:36:22 +02:00
setuid.c build: Simplify. 2019-06-08 15:36:22 +02:00
signal.c signal: Use SA_RESTORER on x86-64. 2019-09-09 16:04:15 +02:00
sigprogmask.c build: Simplify. 2019-06-08 15:36:22 +02:00
stat.c build: Simplify. 2019-06-08 15:36:22 +02:00
symlink.c mescc: Mes C Library: Support GNU Tar: Add readlink, symlink. 2019-06-13 01:07:19 +02:00
time.c build: Simplify. 2019-06-08 15:36:22 +02:00
unlink.c build: Simplify. 2019-06-08 15:36:22 +02:00
waitpid.c build: Simplify. 2019-06-08 15:36:22 +02:00