www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/02/04/12:59:57

Date: Thu, 4 Feb 93 12:42:45 EST
From: engdahl AT brutus DOT aa DOT ab DOT com (Jon Engdahl)
To: J DOT P DOT Fletcher AT aston DOT ac DOT uk
Subject: Re: Porting GCC 2.3.3
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> I have now tried to compile this with DJGPP V1.09.  It fails with
> messages indicating a wrong number of arguments for mkdir().  This
> function is shown in std.h as mkdir(char *,int).  Does anyone know
> the solution of this?
> 

Oh ...

Borland C's mkdir only has one arg; UNIX's has two. According to my
interpretation of the UNIX man page for mkdir, you should change it to
something like

           status = mkdir(filename,0755);
                                  ^^^^^
There may be a more correct way to say "0755", but I think this will
get you by. The options I can think of are using a #define'd symbol, or
getting a value out of the tar file. I'll let one of the UNIX experts
elaborate.

I handled djtarx pretty roughly when I was hacking it into zmangle, and
some of the smaller pieces like this may have fallen onto the floor and
are probably still stuck in the carpet. I sent it out thinking of it as
an example of one way to mangle UNIX file names for DOS, but if anyone
wants to use it for its intended purpose, that's great.

I have no idea whether it will run under GO32. An exercise for the
reader...


> John
> 
> 
> ---------------------------------------------------------------------
> Dr John P. Fletcher
> Department of Chemical Engineering and Applied Chemistry,
> Aston University,         Tel: (44) 21 359 3611 ext 4625
> Aston Triangle,         Email(Most systems): J DOT P DOT FLETCHER AT ASTON DOT AC DOT UK
> BIRMINGHAM B4 7ET  U.K.   Email(JANET only): J DOT P DOT FLETCHER AT UK DOT ASTON DOT AC
> ---------------------------------------------------------------------
> 

Jonathan Engdahl, Sr. Project Engineer  | engdahl AT aa DOT ab DOT com   313-998-2450
Allen-Bradley Co.                       | A Rockwell International Company
555 Briarwood Circle,                   | Industrial Communication Network
Ann Arbor, Michigan, 48108, USA         | system design, software, ASICs

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019