From: Jerry D <jvdelisle2@gmail.com>
To: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Cc: gfortran <fortran@gcc.gnu.org>, gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [patch, libgfortran] Part 2: PR105456 Child I/O does not propage iostat
Date: Thu, 29 Feb 2024 09:36:43 -0800 [thread overview]
Message-ID: <a54fa158-378a-4b5d-b1d1-703d9a45e4d7@gmail.com> (raw)
In-Reply-To: <20240229104705.62e46010@nbbrfq.loc>
On 2/29/24 1:47 AM, Bernhard Reutner-Fischer wrote:
> On Wed, 28 Feb 2024 21:29:06 -0800
> Jerry D <jvdelisle2@gmail.com> wrote:
>
>> The attached patch adds the error checks similar to the first patch
>> previously committed.
>>
>> I noticed a redundancy in some defines MSGLEN and IOMSG_LEN so I
>> consolidated this to one define in io.h. This is just cleanup stuff.
>>
>> I have added test cases for each of the places where UDTIO is done in
>> the library.
>>
>> Regressions tested on x86_64.
>>
>> OK for trunk?
>
> I think the commit hooks will complain about several missing spaces
> before open brace; See contrib/check_GNU_style.py /tmp/pr105456-3.diff
I was given the OK from git gcc-verify. Regardless if hooks fail I just
fix and try again.
>
> Would it make sense to introduce and use an internal helper like trim()?
> Or would it be possible to trim the message in generate_error_common()?
>
I was debating this and what would be the best approach. I was not sure
where to put it. I like the idea of doing in the generate_error_common.
I will try that and see how it plays.
> And, just for my own education, the length limitation of iomsg to 255
> chars is not backed by the standard AFAICS, right? It's just our
> STRERR_MAXSZ?
Yes, its what we have had for a long lone time. Once you throw an error
things get very processor dependent. I found MSGLEN set to 100 and
IOMSG_len to 256. Nothing magic about it.
I appreciate the comments.
--- snip ---
Jerry -
next prev parent reply other threads:[~2024-02-29 17:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-29 5:29 Jerry D
2024-02-29 9:47 ` Bernhard Reutner-Fischer
2024-02-29 17:36 ` Jerry D [this message]
2024-02-29 18:13 ` Steve Kargl
2024-02-29 18:28 ` Jerry D
2024-02-29 20:56 ` Steve Kargl
2024-02-29 22:28 ` Jerry D
2024-03-01 20:50 ` rep.dot.nop
[not found] ` <05A1AEE6-6A68-4D4F-8BEA-6E87969E19E7@gmail.com>
2024-03-05 3:15 ` Jerry D
2024-03-05 21:30 ` rep.dot.nop
2024-03-05 21:37 ` Harald Anlauf
2024-03-05 21:51 ` Harald Anlauf
2024-03-06 4:06 ` Jerry D
2024-03-06 6:06 ` Steve Kargl
2024-03-06 17:13 ` Harald Anlauf
2024-03-06 17:13 ` Harald Anlauf
2024-03-06 18:03 ` Jerry D
2024-03-06 18:24 ` Jerry D
2024-03-07 4:01 ` Jerry D
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=a54fa158-378a-4b5d-b1d1-703d9a45e4d7@gmail.com \
--to=jvdelisle2@gmail.com \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=rep.dot.nop@gmail.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 read-only IMAP folder(s) and NNTP newsgroup(s).