svn commit: r296104 - head/libexec/getty

Baptiste Daroussin bapt at FreeBSD.org
Sat Feb 27 01:07:45 UTC 2016


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
> 
> Log:
>   getty(8): Use poll(2) and nanosleep(2) instead of select(2).
>   
>   Sort headers while here.
>   
>   Obtained from:	NetBSD (CVS Rev. 1.25 - 1.26)
> 
> Modified:
>   head/libexec/getty/subr.c
> 
> Modified: head/libexec/getty/subr.c
> ==============================================================================
> --- 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[] =
>  /*
>   * 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>
>  
>  #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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20160227/c03819c8/attachment.sig>


More information about the svn-src-head mailing list