Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: DEC Alpha - Digital Unix 3.0 - Re: Diff file for 3.1.6-test-2 available



Irving_Wolfe@xxxxxxxxxxxxx wrote:
> My "make all" ended with:
> 
> gcc -c -I.  -DHAVE_CONFIG_H -DMODULE -Wall -Wno-implicit -Wmissing-prototypes
>  -O2 -fpic -o clone..o clone.c
> clone.c: In function `bin_clone':
> clone.c:64: too few arguments to function `ioctl'
> *** Exit 1
> Stop.

Don't see why ioctl() shouldn't have three arguments, like it does
everywhere else in the code --- some manual pages specify this --- but it's
weird this hasn't shown up before.  Maybe it's got something to do with the
difference between varargs and stdarg?

--- Src/Modules/clone.c.ioc	Thu Dec 17 12:17:01 1998
+++ Src/Modules/clone.c	Mon Jul 19 16:26:35 1999
@@ -61,7 +61,7 @@
 	    zwarnnam(nam, "failed to create new session: %e", NULL, errno);
 #endif
 #ifdef TIOCNOTTY
-	    if (ioctl(SHTTY, TIOCNOTTY))
+	    if (ioctl(SHTTY, TIOCNOTTY, 0))
 		zwarnnam(nam, "%e", NULL, errno);
 	    setpgrp(0L, mypid);
 #endif

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author