Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!kddlab!titcca!kogwy!wnoc-tyo-news!astemgw!choshi!frf!yang From: yang@nff.ncl.omron.co.jp (YANG Liqun) Newsgroups: comp.unix.questions Subject: Re: getwd and floor function calls Message-ID: Date: 5 Feb 91 01:06:53 GMT Sender: news@frf.omron.co.jp Distribution: comp Organization: OMRON Corp., Kyoto, Japan Lines: 24 writes: >I have been doing some porting from DEC Ultrix to Motorola System V/88K. It >seems that Ultrix is BSD in nature and Motorola is POSIX system V. I have >some source code written in c that uses the following functions: >getwd() >floor() >They do not seem to be supported in System V. For floor(), you must use -lm cc option. For getwd(), getcwd() is the equvalent in System V(but it is slower because getcwd calls popen to excecute "sh -c pwd".) Yang -- ------------------------------------------------------------------------------- | Yang Li-qun | | OE, OMRON Corporation | | 20, Igadera Shimokaiinji Nagaokakyo-City | | Kyoto 617 Japan | | Tel: 075-951-5111 Fax: 075-956-7403 | | E-mail:yang@nff.ncl.omron.co.jp | -------------------------------------------------------------------------------