www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/02/04/14:01:33

Subject: Re: Porting GCC 2.3.3
To: engdahl AT brutus DOT aa DOT ab DOT com (Jon Engdahl)
Date: Thu, 4 Feb 1993 12:19:10 -0600 (CST)
From: J.A.Wheeler <jaws AT brazos DOT cray DOT com>
Cc: J DOT P DOT Fletcher AT aston DOT ac DOT uk, djgpp AT sun DOT soe DOT clarkson DOT edu

Received from the keyboard of Jon Engdahl :
} 
} > 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);
}                                   ^^^^^

The second field in the mkdir systems call is used to determine the
access permissions to the directory. Since Ms.Dos doesn't know about
multiple users, any value you plug in should be fine.  Be aware though
in U**X it will be a 3 digit octal number. I'll refrain from discussing
the various values for sake of brevity.

} 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
} 


-- 
 J.A. Wheeler           (jaws AT cray DOT com) 
          CRAY Research, Inc.
 5 Post Oak Park        (800)-283-8998
 suite 1960             (713)-968-1619  FAX
 Houston, TX. 77027      
 ++++++++++++++++++++++++++++++++

- Raw text -


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