Article View: gnu.utils.bug
Article #459getwd portability for tar 1.07
From: djm
Date: Fri, 29 Sep 1989 03:13
Date: Fri, 29 Sep 1989 03:13
12 lines
1011 bytes
1011 bytes
In GNU tar 1.07 the portability considerations for getwd() are divided between two files: port.c and tar.c. In port.c is an implementation that opens a pipe to pwd (slow), and in tar.c getcwd() is used instead if MSDOS is defined. But since MSDOS isn't the only system that has getcwd() but not getwd() (my System V machine, for example), and since getwd() can be implemented as a call to getcwd() on those systems, I think that the code in tar.c should be removed and an alternate definition of getwd(), in terms of getcwd(), be made available in port.c. Perhaps when both NEED_GETWD and (a new macro) HAVE_GETCWD are defined. -- David J. MacKenzie <djm@wam.umd.edu>
Technical Details
Message-ID:
<8909290313.AA04283@cscwam.UMD.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!decwrl!wam.UMD.EDU!djmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!decwrl!wam.UMD.EDU!djm From: djm@wam.UMD.EDU Newsgroups: gnu.utils.bug Subject: getwd portability for tar 1.07 Message-ID: <8909290313.AA04283@cscwam.UMD.EDU> Date: 29 Sep 89 03:13:16 GMT Distribution: na Organization: University of Maryland Lines: 12