mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Update.
2004-04-19 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more compact code.
This commit is contained in:
parent
d3b5202891
commit
bfa2612286
@ -1,3 +1,8 @@
|
|||||||
|
2004-04-19 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
|
||||||
|
compact code.
|
||||||
|
|
||||||
2004-04-20 Jakub Jelinek <jakub@redhat.com>
|
2004-04-20 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
|
* stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Define
|
||||||
|
for librt. Save the return value to a safe register.
|
||||||
|
(CDISABLE): Define for librt. Set the function argument correctly.
|
||||||
|
|
||||||
2004-04-18 Jakub Jelinek <jakub@redhat.com>
|
2004-04-18 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
|
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2004-04-19 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
|
||||||
|
compact code.
|
||||||
|
|
||||||
2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info.
|
* sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info.
|
||||||
|
@ -32,12 +32,19 @@ mq_unlink (const char *name)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ret = INLINE_SYSCALL (mq_unlink, 1, name + 1);
|
INTERNAL_SYSCALL_DECL (err);
|
||||||
|
int ret = INTERNAL_SYSCALL (mq_unlink, err, 1, name + 1);
|
||||||
|
|
||||||
/* While unlink can return either EPERM or EACCES, mq_unlink should
|
/* While unlink can return either EPERM or EACCES, mq_unlink should
|
||||||
return just EACCES. */
|
return just EACCES. */
|
||||||
if (ret < 0 && errno == EPERM)
|
if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (ret, err), 0))
|
||||||
__set_errno (EACCES);
|
{
|
||||||
|
ret = INTERNAL_SYSCALL_ERRNO (ret, err);
|
||||||
|
if (ret == EPERM)
|
||||||
|
ret = EACCES;
|
||||||
|
__set_errno (ret);
|
||||||
|
ret = -1;
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user