110 lines
49 KiB
Plaintext
110 lines
49 KiB
Plaintext
1
|
||
|
||
Medley for the Sun User's Guide, Release 2.0
|
||
1
|
||
|
||
Medley for the Sun User's Guide, Release 2.0
|
||
5. MEDLEY FILE SYSTEMS
|
||
1
|
||
|
||
5. MEDLEY FILE SYSTEMS
|
||
1
|
||
|
||
|
||
5. MEDLEY FILE SYSTEMS
|
||
6
|
||
|
||
This chapter discusses the conventions for using files from Medley.
|
||
File Naming Conventions(FILE% NAME NIL File% name NIL NIL 31 SUBTEXT conventions)(FILE% NAME NIL Conventions NIL NIL 31 SUBTEXT file% names)
|
||
1
|
||
|
||
In Lisp, a file name(FILE% NAME NIL File% name NIL NIL 31 SUBTEXT Lisp) (pathname(PATHNAME NIL pathname,% Lisp NIL NIL 31)) consists of a collection of fields: the host, directory, name, extension and version. These fields are optional. The standard Lisp syntax for these fields is:
|
||
{host}<directory>name.extension;version
|
||
The directory field can be a directory path consisting of a sequence of directory and subdirectory components. Slash(SLASH NIL Slash NIL NIL 31)es (/(/ NIL NIL NIL NIL 31)) and right angle brackets(RIGHT% ANGLE% BRACKETS NIL Right% angle% bracket NIL NIL 31) (>(> NIL NIL NIL NIL 31)) can be used to delimit a directory name(DIRECTORY% NAME NIL Directory NIL NIL 31 SUBTEXT name% delimiting); there is no distinction made between them. Square brackets ([](%[%] NIL NIL NIL NIL 31))(BRACKETS NIL Brackets NIL NIL 31 SUBNAME right% angle) (BRACKETS NIL Brackets NIL NIL 31 SUBNAME square)(SQUARE% BRACKETS NIL Square% brackets NIL NIL 31) are not acceptable as directory delimiters.
|
||
Duplicated directory delimiters are treated as a single delimiter. Thus, the following two file names specify the same file:
|
||
{DSK}<LISP>USERS>FOO.;1
|
||
{DSK}</LISP/USERS/>FOO.;1
|
||
Hosts that Medley Supports
|
||
1
|
||
|
||
{CORE}({CORE} NIL NIL NIL NIL 31) Creates "files" in memory; useful for quick temporary files
|
||
{LPT}({LPT} NIL NIL NIL NIL 31) Creates files that are automatically sent to your printer
|
||
{NULL}({NULL} NIL NIL NIL NIL 31) Creates a file that does nothing
|
||
{DSK} and Give you access to the Sun's file systems; the rest of the chapter
|
||
{UNIX} concentrates on them.
|
||
The above hosts are described in more detail in the IRM.
|
||
Using SunOS Files from Medley
|
||
1
|
||
|
||
You can access any mounted SunOS(SUNOS NIL SunOS NIL NIL 31 SUBNAME file% system) file system directly from Lisp. The mounted file system is available as an I/O device of the Lisp environment. This file system appears as the local disk of Lisp, even though it may be a remotely mounted file system of networked Sun file servers.
|
||
Many of the file devices to which the Medley environment can talk, including PUP, XNS file servers, the {CORE} device, and others, have facilities that are not directly supported by SunOS. For example, many file systems have file version numbers and case insensitive file search conventions.
|
||
Medley on the Sun Workstation has two distinct "host" names that can be used to access the SunOS file system. These host names are provided for compatibility with existing applications and tools. They also simultaneously allow natural interaction with the SunOS file system. The names are:
|
||
{DSK}({DSK} NIL NIL NIL NIL 32) On the Xerox workstation, {DSK} gave you access to your local hard disk; to use {DSK}, you had to create a directory on each disk partition you wanted to use. On the Sun Workstation, in contrast, the {DSK} device lets you access the file system using similar conventions to those used for {DSK} on the Xerox workstation local disk devices. In particular, {DSK} files have version numbers(VERSION% NUMBERS NIL Version NIL NIL 32 SUBTEXT numbers); {DSK} file name recognition(FILE% NAME NIL File% name NIL NIL 32 SUBNAME recognition) also ignores the case of letters.
|
||
{UNIX}({UNIX} (Function) NIL NIL NIL 32) The {UNIX} device lets you use the mounted file systems with the normal naming conventions of the SunOS file system. {UNIX} files do not have version numbers, and the file name recognition treats lowercase letters as distinct from their uppercase equivalents.
|
||
File streams(FILE% STREAMS NIL File% streams NIL NIL 32) can be opened or closed on both devices. The reason for having both devices is to more easily support the running of applications that were originally developed on a Xerox workstation, while still allowing new applications to interact more naturally with UNIX.
|
||
NOTE: Both {DSK} and {UNIX} work as filters. They act as pointers to a device. On 11xxs, {DSK}foo is the same as {DSK}<lispfiles>foo. On the Sun, {DSK}foo is the same as $HOME/foo ~user/foo.
|
||
Common {DSK} and {UNIX} Naming Conventions(CONVENTIONS NIL Conventions NIL NIL 32 SUBNAME common% {DSK}% and% {UNIX})
|
||
<EFBFBD><EFBFBD> |