Article 7167J V7 pwd, converted to modern POSIX systems

V7 pwd, converted to modern POSIX systems

by
Thom Holwerda
from OSnews on (#7167J)

This is a conversion of the original V7 pwd program for use on POSIX systems (tested primarily on Linux). This is mostly of historical interest - modern systems have a library routine or system call for getting the current directory, and don't need this.

I've attempted to make the minimum set of logic/functionality changes needed to make the program work, preserving the core of the original logic. I've made slightly more aesthetic changes, to make reading easier for a post-standardization C speaker.

Cliff L. Biffle

Over on Fedi, Cliff L. Biffle provides more details as to why he undertook this project.

External Content
Source RSS or Atom Feed
Feed Location http://www.osnews.com/files/recent.xml
Feed Title OSnews
Feed Link https://www.osnews.com/
Reply 0 comments