Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!ucsd!ucbvax!hplabs!hpfcso!bigelow From: bigelow@hpfcso.HP.COM (Jim Bigelow) Newsgroups: comp.lang.pascal Subject: Re: System Calls from a Pascal program Message-ID: <9110010@hpfcso.HP.COM> Date: 16 Feb 90 17:36:44 GMT References: <3125@pur-phy> Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 19 Hi Dave, > Can anyone out there give the procedure and/or function calls that should > be used to do a Unix system call from inside of a Pascal program. The syntax > and an example would be helpful as well. What I am looking for is a way to > create a directory from inside a Pascal program. In HP pascal on the HP9000/S300 all that's required is to declare the C library routine as external, e.g., function mkdir $alias '_mkdir'$ ( path :str; mode: integer): integer; external; Converting the pascal string to a C null terminated string is a little tricky! Good luck, Jim Bigelow S300 Pascal