mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 12:20:20 +02:00
Update Gnulib to v0.1-4379-g2ef5a9b4b
Also bump required autoconf version to 2.64, as required by Gnulib.
This commit is contained in:
parent
758b31994c
commit
a91b95cca2
483 changed files with 26665 additions and 10031 deletions
13
lib/pipe2.c
13
lib/pipe2.c
|
@ -1,5 +1,5 @@
|
|||
/* Create a pipe, with specific opening flags.
|
||||
Copyright (C) 2009-2017 Free Software Foundation, Inc.
|
||||
Copyright (C) 2009-2021 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
|
@ -12,7 +12,7 @@
|
|||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, see <http://www.gnu.org/licenses/>. */
|
||||
with this program; if not, see <https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
# include "nonblocking.h"
|
||||
#endif
|
||||
|
||||
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
|
||||
#if defined _WIN32 && ! defined __CYGWIN__
|
||||
/* Native Windows API. */
|
||||
|
||||
# include <io.h>
|
||||
|
@ -73,7 +73,7 @@ pipe2 (int fd[2], int flags)
|
|||
return -1;
|
||||
}
|
||||
|
||||
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
|
||||
#if defined _WIN32 && ! defined __CYGWIN__
|
||||
/* Native Windows API. */
|
||||
|
||||
if (_pipe (fd, 4096, flags & ~O_NONBLOCK) < 0)
|
||||
|
@ -107,7 +107,7 @@ pipe2 (int fd[2], int flags)
|
|||
if (pipe (fd) < 0)
|
||||
return -1;
|
||||
|
||||
/* POSIX <http://www.opengroup.org/onlinepubs/9699919799/functions/pipe.html>
|
||||
/* POSIX <https://pubs.opengroup.org/onlinepubs/9699919799/functions/pipe.html>
|
||||
says that initially, the O_NONBLOCK and FD_CLOEXEC flags are cleared on
|
||||
both fd[0] and fd[1]. */
|
||||
|
||||
|
@ -152,8 +152,7 @@ pipe2 (int fd[2], int flags)
|
|||
|
||||
#endif
|
||||
|
||||
#if GNULIB_defined_O_NONBLOCK || \
|
||||
!((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
|
||||
#if GNULIB_defined_O_NONBLOCK || !(defined _WIN32 && ! defined __CYGWIN__)
|
||||
fail:
|
||||
{
|
||||
int saved_errno = errno;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue