Date: Mon, 13 May 1996 22:20:31 -0600 (CST) From: Aaron Ucko Subject: Re: where to find the header f To: j DOT aldrich6 AT genie DOT com Cc: djgpp AT delorie DOT com Message-id: <01I4O8LX7XYA001AD1@VAX1.ROCKHURST.EDU> Organization: Rockhurst College; Kansas City, MO MIME-version: 1.0 Content-type: TEXT/PLAIN; CHARSET=US-ASCII Content-transfer-encoding: 7BIT >This is very dangerous! Your program is linking in the DJGPP >version of mkdir, which expects ( char*, int, int ), and passing it >( char * ). Fortunately, this doesn't appear to result in any serious >problems in your program, but it is a surefire guarantee of >crashes if done too often. it's (char *, int), not (char *, int, int). Anyway, this is perfectly safe; the second argument is meaningless under DOS and hence ignored, and DJGPP uses the C calling convention, in which the caller pops arguments, so the stack cannot be messed up. -- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) | httyp! "That's right," he said. "We're philosophers. We think, therefore we am." -- Terry Pratchett, _Small Gods_ | Geek Code 3.1 [for explanation, finger hayden AT mankato DOT msus DOT edu]: GCS/M/S/C d- s: a18 C++(+++)>++++ UL++>++++ P++ L++>+++++ E- W(-) N++(+) o+ K- w--- O M@ V-(--) PS++(+++) PE- Y(+) PGP(+) t(+) !5 X-- R(-) tv-@ b++(+++) DI+ !D-- G++(+++) e->+++++(*) h!>+ r-(--)>+++ y?