Path: utzoo!utgpu!watserv1!watmath!att!emory!gatech!ncar!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!pitt!darth!investor.pgh.pa.us!rbp From: rbp@investor.pgh.pa.us (Bob Peirce #305) Newsgroups: comp.sources.d Subject: Re: mbase is missing something - ie remove function Message-ID: <1991Jan9.194739.23938@investor.pgh.pa.us> Date: 9 Jan 91 19:47:39 GMT References: <7389@plains.NoDak.edu> <49906@prls.UUCP> Reply-To: rbp@investor.pgh.pa.us (Bob Peirce #305) Organization: Cookson, Peirce & Co., Pittsburgh, PA Lines: 21 In article <49906@prls.UUCP> gordon@prls.UUCP (Gordon Vickers) writes: >In article <7389@plains.NoDak.edu> rajkumar@plains.NoDak.edu (A. Joseph Rajkumar) writes: >>Hi >> >> I would appreciate knowing if anyone has got mbase to compile >>correctly. I tried it and it seems a remove function is missing. > > Yes, remove() is missing. It is called only once and it's argument > is just a charector string. I replaced it with code that simply > nulls the argument string. This is problable wrong but at least > it allowed me to compile (but not test) the program. > The call to remove comes after the question of whether you want to overwrite an existing relation. The implication is the file is removed, so I substituted unlink(rel). This seems to work. I had a problem with the system call to chmod, so I called chmod() directly. I wonder why he uses 0755? -- Bob Peirce, Pittsburgh, PA 412-471-5320 ...!uunet!pitt!investor!rbp rbp@investor.pgh.pa.us