glibc/hurd
Sergey Bugaev 9ec31e5727 hurd: Use __hurd_fail () instead of assigning errno
The __hurd_fail () inline function is the dedicated, idiomatic way of
reporting errors in the Hurd part of glibc. Not only is it more concise
than '{ errno = err; return -1; }', it is since commit
6639cc1002
"hurd: Mark error functions as __COLD" marked with the cold attribute,
telling the compiler that this codepath is unlikely to be executed.

In one case, use __hurd_dfail () over the plain __hurd_fail ().

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230520115531.3911877-1-bugaevc@gmail.com>
2023-05-20 18:14:01 +02:00
..
hurd hurd: Mark error functions as __COLD 2023-04-29 17:03:59 +02:00
alloc-fd.c hurd: Use __hurd_fail () instead of assigning errno 2023-05-20 18:14:01 +02:00
catch-exc.c hurd: Avoid leaking task & thread ports 2023-04-18 01:20:46 +02:00
catch-signal.c
compat-20.c
ctty-input.c
ctty-output.c
Depend
dtable.c hurd: Avoid extra ctty RPCs in init_dtable () 2023-04-17 14:08:12 +02:00
exc2signal.c
faultexc.defs
fchroot.c
fcntl-internal.h
fd-cleanup.c
fd-close.c
fd-read.c
fd-write.c
fopenport.c hurd: Use __hurd_fail () instead of assigning errno 2023-05-20 18:14:01 +02:00
get-host.c
getdport.c hurd: Use __hurd_fail () instead of assigning errno 2023-05-20 18:14:01 +02:00
geteuids.c
getumask.c
hurd-raise.c
hurd.h hurd: Mark error functions as __COLD 2023-04-29 17:03:59 +02:00
hurdauth.c
hurdchdir.c
hurdexec.c
hurdfault.c hurd: Use MACHINE_THREAD_STATE_SETUP_CALL 2023-05-17 22:52:46 +02:00
hurdfault.h
hurdfchdir.c
hurdhost.h
hurdid.c
hurdinit.c hurd: Run init_pids () before init_dtable () 2023-04-17 23:04:41 +02:00
hurdioctl.c
hurdkill.c
hurdlock.c
hurdlock.h
hurdlookup.c
hurdmalloc.c
hurdmalloc.h
hurdmsg.c hurd: Respect existing FD_CLOEXEC in S_msg_set_fd 2023-04-29 16:57:04 +02:00
hurdpid.c
hurdports.c
hurdprio.c
hurdrlimit.c
hurdselect.c hurd: Use __hurd_fail () instead of assigning errno 2023-05-20 18:14:01 +02:00
hurdsig.c hurd: Use __mach_setup_thread_call () 2023-05-17 22:57:06 +02:00
hurdsock.c hurd: Use __hurd_fail () instead of assigning errno 2023-05-20 18:14:01 +02:00
hurdsocket.h
hurdstartup.c
hurdstartup.h
intern-fd.c
intr-msg.c Update hurd/hurdselect.c to be more portable. 2023-05-06 23:10:55 +02:00
intr-rpc.defs
intr-rpc.h
longjmp-ts.c hurd: Fix file name in #error 2023-04-03 00:55:12 +02:00
lookup-at.c
lookup-retry.c hurd: Fix FS_RETRY_MAGICAL "machtype" handling 2023-04-29 16:58:10 +02:00
Makefile
msgportdemux.c
new-fd.c
Notes
openport.c
path-lookup.c
pid2task.c
port2fd.c
port-cleanup.c
ports-get.c
ports-set.c
preempt-sig.c
privports.c
report-wait.c
RPC_gsync_wait_intr.c
set-hooks.h Remove set-hooks.h from generic includes 2023-03-27 13:57:55 -03:00
set-host.c
setauth.c
seteuids.c
siginfo.c
sigunwind.c hurd: Improve reply port handling when exiting signal handlers 2023-04-10 23:54:28 +02:00
stack_chk_fail_local.c
task2pid.c
thread-cancel.c
thread-self.c hurd: Fix using interposable hurd_thread_self 2023-05-19 20:45:51 +02:00
trampoline.c hurd: Do not declare local variables volatile 2023-04-10 20:42:28 +02:00
Versions hurd: Fix using interposable hurd_thread_self 2023-05-19 20:45:51 +02:00
vpprintf.c
xattr.c