mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
hurd: Fix 64bit fcntl lock implementation
* sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd' values in the 64bit value cases.
This commit is contained in:
parent
dfa6216f24
commit
bbb7dc8475
@ -1,3 +1,8 @@
|
|||||||
|
2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||||
|
|
||||||
|
* sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
|
||||||
|
values in the 64bit value cases.
|
||||||
|
|
||||||
2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
|
2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
|
||||||
|
|
||||||
* include/time.h
|
* include/time.h
|
||||||
|
@ -158,13 +158,13 @@ __libc_fcntl (int fd, int cmd, ...)
|
|||||||
va_end (ap);
|
va_end (ap);
|
||||||
switch (cmd)
|
switch (cmd)
|
||||||
{
|
{
|
||||||
case F_GETLK:
|
case F_GETLK64:
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
case F_SETLKW:
|
case F_SETLKW64:
|
||||||
wait = 1;
|
wait = 1;
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
case F_SETLK:
|
case F_SETLK64:
|
||||||
return __f_setlk (fd, fl->l_type, fl->l_whence,
|
return __f_setlk (fd, fl->l_type, fl->l_whence,
|
||||||
fl->l_start, fl->l_len, wait);
|
fl->l_start, fl->l_len, wait);
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user