From owner-freebsd-arch@FreeBSD.ORG Sun Feb 17 14:42:22 2013 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 40ED4588 for ; Sun, 17 Feb 2013 14:42:22 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 0B317A3D for ; Sun, 17 Feb 2013 14:42:21 +0000 (UTC) Received: from localhost (89-73-195-149.dynamic.chello.pl [89.73.195.149]) by mail.dawidek.net (Postfix) with ESMTPSA id DF6F0F96; Sun, 17 Feb 2013 15:39:27 +0100 (CET) Date: Sun, 17 Feb 2013 15:43:22 +0100 From: Pawel Jakub Dawidek To: Jilles Tjoelker Subject: Re: bindat(2) and connectat(2) syscalls for review. Message-ID: <20130217144321.GJ2023@garage.freebsd.pl> References: <20130213230354.GC1375@garage.freebsd.pl> <20130213232004.GA2522@kib.kiev.ua> <20130213234030.GD1375@garage.freebsd.pl> <20130214185549.GA36288@stack.nl> <86ip5saqiu.fsf@ds4.des.no> <20130216232039.GD2023@garage.freebsd.pl> <86y5enaan7.fsf@ds4.des.no> <20130217142038.GA55034@stack.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+G3HLlWI7eRTl+h" Content-Disposition: inline In-Reply-To: <20130217142038.GA55034@stack.nl> X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Konstantin Belousov , Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= , freebsd-arch@FreeBSD.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Feb 2013 14:42:22 -0000 --k+G3HLlWI7eRTl+h Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 17, 2013 at 03:20:38PM +0100, Jilles Tjoelker wrote: > On Sun, Feb 17, 2013 at 04:21:00AM +0100, Dag-Erling Sm=F8rgrav wrote: > > Pawel Jakub Dawidek writes: > > > Dag-Erling Sm=F8rgrav writes: > > > > Jilles Tjoelker writes: > > > > > A flag parameter is a good thing; you may not know yet what you w= ill > > > > > need it for. > > > > int bind(int s, const struct sockaddr *addr, socklen_t addrlen); > > > > int connect(int s, const struct sockaddr *name, socklen_t namelen); > > > > Where's the flag argument? > > > The is no flag argument in my patch, but it was proposed by Kostik in > > > the e-mail Jilles replied to. >=20 > > That was a rhetorical question... unless Jilles wants to go through our > > entire code base and add a flag argument to every syscall or library > > function that doesn't already have one, "just in case". >=20 > The point is not to add a flags argument everywhere for the sake of it; > rather, to add a flags argument if a function is extended or created > anyway. This leaves some space for future extensibility. >=20 > For example, POSIX considered eaccess() not useful enough, but when > access() was extended to faccessat(), a flag argument was added which > allowed the eaccess() functionality. But if we are going to do that, it would be nice to have at least one useful flag to use in there:) --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --k+G3HLlWI7eRTl+h Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEg7IkACgkQForvXbEpPzRkMQCgl22uax6ucfmuYmxp0DrQ9Ufe 19sAoNophK9ls8gYVjnbuTOd9yAOru8j =8o6B -----END PGP SIGNATURE----- --k+G3HLlWI7eRTl+h--