From nobody Mon Aug 29 20:39:47 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MGj3t6DJFz4ZgRY for ; Mon, 29 Aug 2022 20:39:54 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MGj3s6wWYz3hbT for ; Mon, 29 Aug 2022 20:39:53 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id B0D353C0199; Mon, 29 Aug 2022 20:39:47 +0000 (UTC) Date: Mon, 29 Aug 2022 20:39:47 +0000 From: Brooks Davis To: Jake Freeland Cc: freebsd-hackers@freebsd.org Subject: Re: SRC Contributions: Advice and Objections Message-ID: <20220829203947.GB89898@spindle.one-eyed-alien.net> References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1UWUbFP1cBYEclgG" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Rspamd-Queue-Id: 4MGj3s6wWYz3hbT X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of brooks@spindle.one-eyed-alien.net has no SPF policy when checking 199.48.129.229) smtp.mailfrom=brooks@spindle.one-eyed-alien.net X-Spamd-Result: default: False [-3.90 / 15.00]; SIGNED_PGP(-2.00)[]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_TWO(0.00)[2]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FROM_NEQ_ENVFROM(0.00)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; FREEFALL_USER(0.00)[brooks]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[freebsd.org]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --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--