Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2016 02:07:40 +0100
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        "Pedro F. Giffuni" <pfg@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r296104 - head/libexec/getty
Message-ID:  <20160227010739.GA84995@ivaldir.etoilebsd.net>
In-Reply-To: <201602261852.u1QIq6vf073975@repo.freebsd.org>
References:  <201602261852.u1QIq6vf073975@repo.freebsd.org>

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

--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 26, 2016 at 06:52:06PM +0000, Pedro F. Giffuni wrote:
> Author: pfg
> Date: Fri Feb 26 18:52:06 2016
> New Revision: 296104
> URL: https://svnweb.freebsd.org/changeset/base/296104
>=20
> Log:
>   getty(8): Use poll(2) and nanosleep(2) instead of select(2).
>  =20
>   Sort headers while here.
>  =20
>   Obtained from:	NetBSD (CVS Rev. 1.25 - 1.26)
>=20
> Modified:
>   head/libexec/getty/subr.c
>=20
> Modified: head/libexec/getty/subr.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/libexec/getty/subr.c	Fri Feb 26 16:18:47 2016	(r296103)
> +++ head/libexec/getty/subr.c	Fri Feb 26 18:52:06 2016	(r296104)
> @@ -38,14 +38,16 @@ static const char rcsid[] =3D
>  /*
>   * Melbourne getty.
>   */
> -#include <stdlib.h>
> -#include <string.h>
> -#include <termios.h>
> -#include <unistd.h>
>  #include <sys/ioctl.h>
>  #include <sys/param.h>
>  #include <sys/time.h>
> +
> +#include <poll.h>
> +#include <stdlib.h>
> +#include <string.h>
>  #include <syslog.h>
> +#include <termios.h>
> +#include <unistd.h>
> =20
>  #include "gettytab.h"
>  #include "pathnames.h"
> @@ -633,24 +635,21 @@ portselector(void)
>  const char *
>  autobaud(void)
>  {
> -	int rfds;
> -	struct timeval timeout;
> +struct pollfd set[1];

Indentation issue here

Bapt

--n8g4imXOkfNTN/H1
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJW0PbbAAoJEGOJi9zxtz5aPvQP/2ME+Y7Dkpw/R/haGfQJ/iSH
b7a4e15UvCip8KxzlBJuQoKwnPoZxuomijD9JyUGie3g8LDHH0cVNvntniriJmwx
n+rLf7wbiCYdmMrxwbxSZoRDdVfdxfLPS2NxC8HIMIMWl00GlxE0fe44iqZXk9a0
pJvoCqWXW6T6Y0xRFhKGkPlTZB2BWk2EUK4c3ulW5F3JZ9fBLPvLLmEXOw4XsNjb
sAJ7K8TZ2k6ivV//ig409s7wC85KsWeb8dbGTJ+t51zf/nADHcc+5AzEHVetpnlW
1G8pOSofvut/ocM8k2Ks/h3zfXq2R5AJK5iLSM7AWgv16uaxS6I3cI3RiXwzGuYd
puBpNcS3/6aZMuOtDSeylECdI/mtNG2TcDkVXpS3aBP8DHVBrDbeA+qOyycA3GRL
Ed2AQgsZ8spbSLotGk3+AZcG7ZuO9PgS4shx0mHdzd6qBZApoXl/SrIIP8YWNId0
9IOZZrBBbg/N1kUVLw/Nz3YF9VWvXWqah9u+JqsVhr0O0n5xFXOa2LusA0ILAEJX
/EWwftszeJLL9wDr5tB4MNhAFA8BQKMTdu4dnTEO0g9K3kB1m5rC0jIAhRqaEw10
0NGgSesIYN7mVD0cYAvFdBospPVElKUebi5XzFtXh+n52Hmahrc/5uNkFaDvNgXD
4N+aLn8XPN9Yy1uEnjEF
=EJTa
-----END PGP SIGNATURE-----

--n8g4imXOkfNTN/H1--



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