From: Ian Pilcher <arequipeno@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: Re: Return value for "impossible" situations
Date: Sun, 25 Jul 2021 14:13:25 -0500 [thread overview]
Message-ID: <sdkd4m$4sr$1@ciao.gmane.io> (raw)
In-Reply-To: <8d6d8484-0a1e-129b-b6b9-a26980732745@petrovitsch.priv.at>
On 7/25/21 1:59 PM, Bernd Petrovitsch wrote:
> This value goes up to userspace (otherwise it makes no real sense to use
> errno-values).
Yes. I know that.
> That depends on the situation/sys-call/....
> You habe to choose the value (the list and short explanation is in `man
> errno`) which leads the userspace application and it's user in the best
> direction.
Yes. I've already reviewed the manpage and the kernel headers, and I
don't see anything that jumps out as appropriate for an unexpected
"logic" error.
Thus my question about a convention for this sort of situation.
> And no, you can't invent new values.
I know.
--
========================================================================
In Soviet Russia, Google searches you!
========================================================================
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next prev parent reply other threads:[~2021-07-25 19:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-25 18:07 Return value for "impossible" situations Ian Pilcher
2021-07-25 18:59 ` Bernd Petrovitsch
2021-07-25 19:13 ` Ian Pilcher [this message]
2021-07-25 23:15 ` Valdis Klētnieks
2021-07-26 4:18 ` Ian Pilcher
2021-07-26 10:42 ` Bernd Petrovitsch
2021-07-26 11:08 ` Bernd Petrovitsch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='sdkd4m$4sr$1@ciao.gmane.io' \
--to=arequipeno@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.