Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Jan 2018 08:36:29 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Brooks Davis <brooks@freebsd.org>
Cc:        Ian Lepore <ian@freebsd.org>, Freebsd hackers list <freebsd-hackers@freebsd.org>, cem@freebsd.org
Subject:   Re: Is it considered to be ok to not check the return code of close(2) in base?
Message-ID:  <53796.1515314189@critter.freebsd.dk>
In-Reply-To: <20180106215947.GG95035@spindle.one-eyed-alien.net>
References:  <24acbd94-c52f-e71a-8a96-d608a10963c6@rawbw.com> <1514572041.12000.7.camel@freebsd.org> <CAOtMX2jSonHQ9xzVD3Q9XS2twBm_CT3Tquwn%2Bf6zmc7aV0QerQ@mail.gmail.com> <20180105221330.GD95035@spindle.one-eyed-alien.net> <24173.1515191675@critter.freebsd.dk> <CAG6CVpULXoq6w4Xb%2BiSJ08phFuiCPhEod25Y4Am5PN9R=R5iZQ@mail.gmail.com> <1515201055.1865.5.camel@freebsd.org> <20180106215947.GG95035@spindle.one-eyed-alien.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
In message <20180106215947.GG95035@spindle.one-eyed-alien.net>, Brooks Dav=
is writes:

>The portable API is terrible and closefrom() with arguments
>other than 3 (or maybe 4) is in many ways worse with require dup2(2)
>shenanigans.

Agreed.

-- =

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    =

Never attribute to malice what can adequately be explained by incompetence=
.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53796.1515314189>