1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

htl: Use __hurd_fail () instead of assigning errno

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230520115531.3911877-2-bugaevc@gmail.com>
This commit is contained in:
Sergey Bugaev
2023-05-20 14:55:30 +03:00
committed by Samuel Thibault
parent 9ec31e5727
commit 70d0dda0c1
4 changed files with 9 additions and 18 deletions

View File

@@ -19,6 +19,7 @@
#include <semaphore.h>
#include <errno.h>
#include <hurd.h>
#include <pt-internal.h>
int
@@ -26,10 +27,7 @@ __sem_init (sem_t *sem, int pshared, unsigned value)
{
#ifdef SEM_VALUE_MAX
if (value > SEM_VALUE_MAX)
{
errno = EINVAL;
return -1;
}
return __hurd_fail (EINVAL);
#endif
struct new_sem *isem = (struct new_sem *) sem;