Subject: Re: Accellerated LC story...
To: The Great Mr. Kurtz <davagatw@mars.utm.edu>
From: Allen Briggs <briggs@puma.bevd.blacksburg.va.us>
List: port-mac68k
Date: 12/10/1995 19:18:50
> Anybody know for sure how the interface section works -- specifically,
> is the gets(char) command supported?

I think that function is fine, except that you should use fgets()
instead (for the protection it provides by taking the size of the
buffer as an argument).

> Anybody know where the code is for SFGetFile, or is that just a standard
> Mac file dialog?

Standard Mac one.  I don't know of a different one for selecting a
directory, but I'm sure there are some Mac programmers around here who
could enlighten you.

> Anybody have a copy of the source for the unix rm command to steal 
> such niceties as rm * from?

The actual source for that is in the shell or actually in the
regexp()/regcmp() functions in libc.  The basic idea is:
	open directory
	for each file in the dir
		if file matches pattern add file to command line
	end for
	close dir

> 	BTW, where is the source code for mkfs?  Just curious.

The source for the MacOS mkfs program should be out where the installer
and booter source are from 1.0.  The NetBSD mkfs program is newfs and
can be found in src/sbin/newfs in the NetBSD source tree.

-allen

-- 
Allen Briggs - end killing - allen.briggs@bev.net ** MacBSD == NetBSD/mac68k **
   Where does all my time go?  <a href="http://www.netbsd.org/">Guess.</a>