update to 4.07

- resolves #1358060
This commit is contained in:
Nikola Forró 2016-07-28 11:28:15 +02:00
parent 25baa2d05f
commit 494e70cf48
5 changed files with 8 additions and 128 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
/man-pages-4.04.tar.xz
/man-pages-4.05.tar.xz
/man-pages-4.06.tar.xz
/man-pages-4.07.tar.xz

View File

@ -1,55 +0,0 @@
From 10e46057dd8de9042ae216c50f531c5fc94054f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
Date: Wed, 4 May 2016 10:55:56 +0200
Subject: [PATCH] clone.2, fork.2: Document ERESTARTNOINTR error code
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Since Linux 2.6.17, clone and fork syscalls return ERESTARTNOINTR
when interrupted by a signal before newly created process is added
to its process group.
This error code can only be seen by ptrace at syscall exit tracing.
The information was obtained from kernel source code:
http://bit.ly/24xdofn
Signed-off-by: Nikola Forró <nforro@redhat.com>
---
man2/clone.2 | 4 ++++
man2/fork.2 | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/man2/clone.2 b/man2/clone.2
index 8373700..ab1e58d 100644
--- a/man2/clone.2
+++ b/man2/clone.2
@@ -1013,6 +1013,10 @@ and the call would cause the limit on the number of
nested user namespaces to be exceeded.
See
.BR user_namespaces (7).
+.TP
+.BR ERESTARTNOINTR " (since Linux 2.6.17)"
+System call was interrupted by a signal and will be restarted.
+(This can be seen only during a trace.)
.SH VERSIONS
There is no entry for
.BR clone ()
diff --git a/man2/fork.2 b/man2/fork.2
index 559a47f..3accc8c 100644
--- a/man2/fork.2
+++ b/man2/fork.2
@@ -242,6 +242,10 @@ failed to allocate the necessary kernel structures because memory is tight.
is not supported on this platform (for example,
.\" e.g., arm (optionally), blackfin, c6x, frv, h8300, microblaze, xtensa
hardware without a Memory-Management Unit).
+.TP
+.BR ERESTARTNOINTR " (since Linux 2.6.17)"
+System call was interrupted by a signal and will be restarted.
+(This can be seen only during a trace.)
.SH CONFORMING TO
POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
.SH NOTES
--
2.7.4

View File

@ -6,8 +6,8 @@
Summary: Linux kernel and C library user-space interface documentation
Name: man-pages
Version: 4.06
Release: 2%{?dist}
Version: 4.07
Release: 1%{?dist}
License: GPL+ and GPLv2+ and BSD and MIT and Copyright only and IEEE
Group: Documentation
URL: http://www.kernel.org/doc/man-pages/
@ -58,9 +58,6 @@ A large collection of manual pages from the Linux Documentation Project (LDP).
# we do not have sccs (#203302)
%{__rm} %{posix_name}/man1p/{admin,delta,get,prs,rmdel,sact,sccs,unget,val,what}.1p
# remove non-free man-pages (bz#1334279)
%{__rm} man2/sysinfo.2 man2/getitimer.2
%build
# nothing to build
@ -79,6 +76,10 @@ popd
%{_mandir}/man*/*
%changelog
* Thu Jul 28 2016 Nikola Forró <nforro@redhat.com> - 4.07-1
- update to 4.07
resolves #1358060
* Mon Jun 13 2016 Tom Callaway <spot@fedoraproject.org> - 4.06-2
- remove non-free man-pages (bz#1334279)

View File

@ -1,67 +0,0 @@
From ea5bce080a2a7faacdcb3ca52185003e6e225b87 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
Date: Thu, 28 Apr 2016 16:54:29 +0200
Subject: [PATCH] popen.3: RETURN VALUE: describe successful case
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Reference:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/popen.html
http://pubs.opengroup.org/onlinepubs/9699919799/functions/pclose.html
Signed-off-by: Nikola Forró <nforro@redhat.com>
---
man3/popen.3 | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/man3/popen.3 b/man3/popen.3
index f075581..bafa42c 100644
--- a/man3/popen.3
+++ b/man3/popen.3
@@ -123,17 +123,18 @@ function waits for the associated process to terminate and returns the exit
status of the command as returned by
.BR wait4 (2).
.SH RETURN VALUE
-The
-.BR popen ()
-function returns NULL if the
+.BR popen ():
+on success, returns a pointer to an open stream that
+can be used to read or write to the pipe;
+if the
.BR fork (2)
or
.BR pipe (2)
-calls fail, or if it cannot allocate memory.
-.PP
-The
-.BR pclose ()
-function returns \-1 if
+calls fail, or if the function cannot allocate memory,
+NULL is returned.
+
+.BR pclose ():
+on success, returns the exit status of the command; if
.\" These conditions actually give undefined results, so I commented
.\" them out.
.\" .I stream
@@ -141,10 +142,12 @@ function returns \-1 if
.\".I stream
.\" already "pclose()d", or if
.BR wait4 (2)
-returns an error, or some other error is detected.
-In the event of an error, these functions set
+returns an error, or some other error is detected,
+\-1 is returned.
+.PP
+Both functions set
.I errno
-to indicate the cause of the error.
+to an appropriate value in the case of an error.
.SH ERRORS
The
.BR popen ()
--
2.7.4

View File

@ -1,3 +1,3 @@
825fde78e6fddd02426ecdd50e2cbe0d man-pages-posix-2013-a.tar.xz
dbd7fac6b9f9d39f0667138ad841c4b9 man-pages-additional-20140218.tar.xz
a7b6c7e2a03a4b0d61eee4e52de68a42 man-pages-4.06.tar.xz
6d6c59b83431852ba44930785def30d4 man-pages-4.07.tar.xz