* PIPE(2) Example Does Not Compile
@ 2013-11-08 4:32 Trevor Bramwell
[not found] ` <CADeGDptxvibs5GBdHszA9cQxxoyAkJw7uN9qSjNGT0PKe_+xgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Trevor Bramwell @ 2013-11-08 4:32 UTC (permalink / raw)
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 658 bytes --]
Dear man-page maintainers,
I believe I found a bug in the PIPE(2) example code.
When trying to compile the example code, the following error was thrown:
pipes.c: In function ‘main’:
pipes.c:10:5: error: unknown type name ‘pid_t’
pid_t cpid;
^
After adding the line:
#include <sys/types.h>
The example compiled fine.
I compiled with:
gcc -Wall -std=c99
Attached is a patch that append the line to include sys/types.h.
---
manpage-version: 3.54-1
gcc-version: gcc (Debian 4.8.2-1) 4.8.2
Let me know if you need any more info, or if this is not truly a bug.
Thank you,
-- Trevor Bramwell
[-- Attachment #2: pipe2.2.patch --]
[-- Type: text/x-patch, Size: 250 bytes --]
--- pipe2.2.old 2013-11-07 19:57:10.234837196 -0800
+++ pipe2.2 2013-11-07 19:57:10.234837196 -0800
@@ -139,6 +139,7 @@
and echoes it on standard output.
.nf
+#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <CADeGDptxvibs5GBdHszA9cQxxoyAkJw7uN9qSjNGT0PKe_+xgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: PIPE(2) Example Does Not Compile [not found] ` <CADeGDptxvibs5GBdHszA9cQxxoyAkJw7uN9qSjNGT0PKe_+xgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-12-30 6:57 ` Michael Kerrisk (man-pages) [not found] ` <52C1196F.5060109-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Michael Kerrisk (man-pages) @ 2013-12-30 6:57 UTC (permalink / raw) To: trevor-wfkQdcsGPFLk1uMJSBkQmQ Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA On 11/08/13 17:32, Trevor Bramwell wrote: > Dear man-page maintainers, > > I believe I found a bug in the PIPE(2) example code. > > When trying to compile the example code, the following error was thrown: > > pipes.c: In function ‘main’: > pipes.c:10:5: error: unknown type name ‘pid_t’ > pid_t cpid; > ^ > After adding the line: > > #include <sys/types.h> > > The example compiled fine. > > I compiled with: > > gcc -Wall -std=c99 > > Attached is a patch that append the line to include sys/types.h. > --- > manpage-version: 3.54-1 > gcc-version: gcc (Debian 4.8.2-1) 4.8.2 > > Let me know if you need any more info, or if this is not truly a bug. Trevor, Did I reply to this mail message already? I did apply your patch. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <52C1196F.5060109-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: PIPE(2) Example Does Not Compile [not found] ` <52C1196F.5060109-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2014-01-01 23:03 ` Trevor Bramwell [not found] ` <CADeGDpsOWTz7ukrWkz6qBqWBJZ3FM2sXvtdZjCb4pJXPnokRVw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Trevor Bramwell @ 2014-01-01 23:03 UTC (permalink / raw) To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA > Did I reply to this mail message already? I did apply your patch. Michael, Yes you did. I sent it twice as the first time I did not CC the correct lists. Thanks for applying my patch! -- Trevor Bramwell -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CADeGDpsOWTz7ukrWkz6qBqWBJZ3FM2sXvtdZjCb4pJXPnokRVw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: PIPE(2) Example Does Not Compile [not found] ` <CADeGDpsOWTz7ukrWkz6qBqWBJZ3FM2sXvtdZjCb4pJXPnokRVw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-01-01 23:04 ` Michael Kerrisk (man-pages) 0 siblings, 0 replies; 5+ messages in thread From: Michael Kerrisk (man-pages) @ 2014-01-01 23:04 UTC (permalink / raw) To: Trevor Bramwell; +Cc: linux-man On Thu, Jan 2, 2014 at 12:03 PM, Trevor Bramwell <trevor-wfkQdcsGPFLk1uMJSBkQmQ@public.gmane.org> wrote: >> Did I reply to this mail message already? I did apply your patch. > > Michael, > > Yes you did. I sent it twice as the first time I did not CC the correct lists. Ahh -- okay. Thanks for clarifying. Cheers, Michael > Thanks for applying my patch! -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CADeGDps-YEGmW2KcCh1ejaKHC+LuGKzrBVnM7Ty3XCqS5uNm0Q@mail.gmail.com>]
[parent not found: <CADeGDps-YEGmW2KcCh1ejaKHC+LuGKzrBVnM7Ty3XCqS5uNm0Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: PIPE(2) Example Does Not Compile [not found] ` <CADeGDps-YEGmW2KcCh1ejaKHC+LuGKzrBVnM7Ty3XCqS5uNm0Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-12-09 5:51 ` Michael Kerrisk (man-pages) 0 siblings, 0 replies; 5+ messages in thread From: Michael Kerrisk (man-pages) @ 2013-12-09 5:51 UTC (permalink / raw) To: trevor-wfkQdcsGPFLk1uMJSBkQmQ Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA On 11/07/13 20:24, Trevor Bramwell wrote: > Dear man-page maintainers, > > I believe I found a bug in the PIPE(2) example code. > > When trying to compile the example code, the following error was thrown: > > pipes.c: In function ‘main’: > pipes.c:10:5: error: unknown type name ‘pid_t’ > pid_t cpid; > ^ > After adding the line: > > #include <sys/types.h> > > The example compiled fine. > > I compiled with: > > gcc -Wall -std=c99 > > Attached is a patch that append the line to include sys/types.h. Thanks. Patch applied. Cheers, Michael > --- > manpage-version: 3.54-1 > gcc-version: gcc (Debian 4.8.2-1) 4.8.2 > > Let me know if you need any more info, or if this is not truly a bug. > > Thank you, > -- Trevor Bramwell -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-01-01 23:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 4:32 PIPE(2) Example Does Not Compile Trevor Bramwell
[not found] ` <CADeGDptxvibs5GBdHszA9cQxxoyAkJw7uN9qSjNGT0PKe_+xgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-12-30 6:57 ` Michael Kerrisk (man-pages)
[not found] ` <52C1196F.5060109-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-01 23:03 ` Trevor Bramwell
[not found] ` <CADeGDpsOWTz7ukrWkz6qBqWBJZ3FM2sXvtdZjCb4pJXPnokRVw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-01 23:04 ` Michael Kerrisk (man-pages)
[not found] <CADeGDps-YEGmW2KcCh1ejaKHC+LuGKzrBVnM7Ty3XCqS5uNm0Q@mail.gmail.com>
[not found] ` <CADeGDps-YEGmW2KcCh1ejaKHC+LuGKzrBVnM7Ty3XCqS5uNm0Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-12-09 5:51 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).