From: Bagas Sanjaya <bagasdotme@gmail.com>
To: "H. Peter Anvin" <hpa@zytor.com>,
Alex Henrie <alexhenrie24@gmail.com>,
Felipe Contreras <felipe.contreras@gmail.com>
Cc: Jonathan Nieder <jrnieder@gmail.com>,
Git mailing list <git@vger.kernel.org>,
Josh Steadmon <steadmon@google.com>, Jeff King <peff@peff.net>,
Jeff Hostetler <jeffhost@microsoft.com>
Subject: Re: RFC: error codes on exit
Date: Sat, 22 May 2021 11:06:11 +0700 [thread overview]
Message-ID: <657d3d24-2f08-f076-5c84-9ae434149530@gmail.com> (raw)
In-Reply-To: <dc14c50d-c626-19f8-e615-52ca3c9051dc@zytor.com>
On 22/05/21 06.20, H. Peter Anvin wrote:
>
> <sysexits.h>
>
> -hpa
>
Looking that header file you mention, I saw:
> #define EX_OK 0 /* successful termination */
>
> #define EX__BASE 64 /* base value for error messages */
>
> #define EX_USAGE 64 /* command line usage error */
> #define EX_DATAERR 65 /* data format error */
> #define EX_NOINPUT 66 /* cannot open input */
> #define EX_NOUSER 67 /* addressee unknown */
> #define EX_NOHOST 68 /* host name unknown */
> #define EX_UNAVAILABLE 69 /* service unavailable */
> #define EX_SOFTWARE 70 /* internal software error */
> #define EX_OSERR 71 /* system error (e.g., can't fork) */
> #define EX_OSFILE 72 /* critical OS file missing */
> #define EX_CANTCREAT 73 /* can't create (user) output file */
> #define EX_IOERR 74 /* input/output error */
> #define EX_TEMPFAIL 75 /* temp failure; user is invited to retry */
> #define EX_PROTOCOL 76 /* remote error in protocol */
> #define EX_NOPERM 77 /* permission denied */
> #define EX_CONFIG 78 /* configuration error */
For EX_USAGE case, we may sometimes display correct usage syntax so that
users can fix their typing.
We may use EX_CONFIG when we encounter any errors when parsing .gitconfig.
EX_OSFILE isn't necessary for Git, though.
--
An old man doll... just what I always wanted! - Clara
next prev parent reply other threads:[~2021-05-22 4:06 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-19 23:34 RFC: error codes on exit Jonathan Nieder
2021-05-20 0:40 ` Felipe Contreras
2021-05-21 16:53 ` Alex Henrie
2021-05-21 23:20 ` H. Peter Anvin
2021-05-22 4:06 ` Bagas Sanjaya [this message]
2021-05-22 8:49 ` Junio C Hamano
2021-05-22 9:08 ` H. Peter Anvin
2021-05-22 21:22 ` Felipe Contreras
2021-05-22 21:29 ` H. Peter Anvin
2021-05-22 21:53 ` Felipe Contreras
2021-05-22 23:02 ` H. Peter Anvin
2021-05-22 9:12 ` Philip Oakley
2021-05-22 21:19 ` Felipe Contreras
2021-05-25 17:24 ` Alex Henrie
2021-05-25 18:43 ` Felipe Contreras
2021-05-20 0:49 ` Junio C Hamano
2021-05-20 1:19 ` Felipe Contreras
2021-05-20 1:55 ` Jonathan Nieder
2021-05-20 2:28 ` Junio C Hamano
2021-05-20 13:28 ` Jeff King
2021-05-20 17:47 ` Jonathan Nieder
2021-05-21 9:43 ` Jeff King
2021-05-20 15:09 ` Jeff Hostetler
2021-05-21 1:33 ` brian m. carlson
2021-05-21 1:20 ` brian m. carlson
2021-05-26 8:21 ` Ævar Arnfjörð Bjarmason
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=657d3d24-2f08-f076-5c84-9ae434149530@gmail.com \
--to=bagasdotme@gmail.com \
--cc=alexhenrie24@gmail.com \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=hpa@zytor.com \
--cc=jeffhost@microsoft.com \
--cc=jrnieder@gmail.com \
--cc=peff@peff.net \
--cc=steadmon@google.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).