Re: pty.h replacement

2009-12-10 Thread Simon Josefsson
Bruno Haible writes: > The reason is that libgnu.a is not being included in the link > line. This fixes it: Thanks. Strange that it didn't happen on my system. /Simon

Re: pty.h replacement

2009-12-10 Thread Bruno Haible
Simon Josefsson wrote: > > Subject: [PATCH] Add pty module for forkpty and openpty. > > I have pushed that patch I get a link error when building all of gnulib together: gcc -std=gnu99 -g -O2 -Wl,--as-needed -o test-pty test-pty.o -lutil -lm test-pty.o: In function `main': /home/bruno/

Re: pty.h replacement

2009-12-10 Thread Simon Josefsson
Simon Josefsson writes: > Subject: [PATCH] Add pty module for forkpty and openpty. I have pushed that patch -- it added a new module, so it should have minimal impact on existing code. If there is any problem with it, we'll find out when InetUtils starts to use it. /Simon

Re: pty.h replacement

2009-12-08 Thread Simon Josefsson
{-lutil}. >> @end itemize > > Should also mention the other platforms (FreeBSD, NetBSD, OpenBSD). It has been rewritten, see below. >> +# gl_PTY >> +# ---- > > 20 dashes to underline 6 characters? Cut'n'paste problem, fixed below. >

Re: pty.h replacement

2009-12-08 Thread Simon Josefsson
Thanks for review Bruno. It seems the issue is more complicated, which I kind of guessed. Bruno Haible writes: > Actually, since openpty and forkpty are glibc function, therefore two files > doc/glibc-functions/openpty.texi > doc/glibc-functions/forkpty.texi > should be created. They escape

Re: pty.h replacement

2009-12-07 Thread Bruno Haible
s unlimited permission to copy and/or distribute it, > +dnl with or without modifications, as long as this notice is preserved. > + > +# gl_PTY > +# 20 dashes to underline 6 characters? > +# Test whether forkpty is provided by pty.h and -lutil. When forkpty &