Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2022 20:39:47 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Jake Freeland <jake@technologyfriends.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: SRC Contributions: Advice and Objections
Message-ID:  <20220829203947.GB89898@spindle.one-eyed-alien.net>
In-Reply-To: <CAOgZAGaiBbuXhBwF=fyTUH%2Bb38fAQVeW%2B0Zivh5fDFD2JXJdjA@mail.gmail.com>
References:  <CAOgZAGaiBbuXhBwF=fyTUH%2Bb38fAQVeW%2B0Zivh5fDFD2JXJdjA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--1UWUbFP1cBYEclgG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Mon, Aug 29, 2022 at 03:17:51PM -0500, Jake Freeland wrote:
> * Implementing timerfd:
> https://man7.org/linux/man-pages/man2/timerfd_gettime.2.html
> I am unsure whether it would be beneficial to upstream POSIX timer
> patches for igt-gpu-tools or to implement timerfd for FreeBSD. I am
> erring on the side of implementing timerfd if other applications need
> to use it in the future.

This might be a good place to start on kernel work because we already
have an implementation for linux compat.  You'd need to move the
implementation into sys/kern and add manpages, syscall, and libc
wrappers.  IMO this is a good idea vs using a wrapper epoll-shim because
it allows better support for timers in capability mode.

> * Adding %m format specifier to scanf:
> The %m format specifier is a POSIX extension to the ISO C standard that can
> precede
> %c, %s, and %[. The %m allocates a memory buffer to hold the string
> including a
> terminating null character.

This seems reasonable (unless there's a move afoot to deprecate this in
a future POSIX, but I don't think I've seen traffic to that effect.)

-- Brooks

--1UWUbFP1cBYEclgG
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJjDSQTAAoJEKzQXbSebgfA2UoH/jNnRQ/+f8b1Enxb4ZrEswji
M3g9CzJgUPs5ANhRzPAWXKHKLcafN3UKHdgnTEs+yDZATdMVrRJ2SnjRx1LznYJ2
cnGmTit4ovGfyFLYNAoSMo17rm7oZS96RMKwh5fQF0iLQy8HD/6A/WaLJifebTSw
BdxzRwyG6qjHudyiHlr5Ge350s8Oxlu3yQQW18UgqJc9VpsvQn7+1Vbmt2agU5p0
8ckri8dkDFRogQRw3VzbYzWOWS3b+r8ugAV6EkF5trHDvFfspu6HXKKlPfqtV3b6
qhl0s8LZrixVdS6/srdF9Jc/mUkt29IuUP4NTSvdgIxFrgdHEr9iIsJ+5VrTvaI=
=/Yg2
-----END PGP SIGNATURE-----

--1UWUbFP1cBYEclgG--



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