Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ static char *key_labels[]= {
"control",
//{ "leftwindows", },
"option",
" (command)",
"\xf0 (command)",
"space",
//{ "rightalt", },
//{ "rightoption",},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**
** File: DirectoryCopy.c
**
** Copyright 1992-1999 Apple Computer, Inc.
** Copyright © 1992-1999 Apple Computer, Inc.
** All rights reserved.
**
** You may incorporate this sample code into your applications without
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**
** File: DirectoryCopy.h
**
** Copyright 1992-1999 Apple Computer, Inc.
** Copyright © 1992-1999 Apple Computer, Inc.
** All rights reserved.
**
** You may incorporate this sample code into your applications without
Expand Down Expand Up @@ -53,7 +53,7 @@ typedef pascal Boolean (*CopyErrProcPtr) (OSErr error,
short dstVRefNum,
long dstDirID,
ConstStr255Param dstName);
/* Prototype for the CopyErrProc function DirectoryCopy calls.
/* Prototype for the CopyErrProc function DirectoryCopy calls.
This is the prototype for the CopyErrProc function DirectoryCopy
calls if an error condition is detected sometime during the copy. If
CopyErrProc returns false, then DirectoryCopy attempts to continue with
Expand Down Expand Up @@ -85,7 +85,7 @@ typedef pascal Boolean (*CopyErrProcPtr) (OSErr error,

typedef pascal Boolean (*CopyFilterProcPtr) (const CInfoPBRec * const cpbPtr);

/* Prototype for the CopyFilterProc function.
/* Prototype for the CopyFilterProc function.
This is the prototype for the CopyFilterProc function called by
FilteredDirectoryCopy and GetLevelSize. If true is returned,
the file/folder is included in the copy, otherwise it is excluded.
Expand Down Expand Up @@ -113,7 +113,7 @@ pascal OSErr FilteredDirectoryCopy(short srcVRefNum,
Boolean preflight,
CopyErrProcPtr copyErrHandler,
CopyFilterProcPtr copyFilterProc);
/* Make a copy of a directory structure in a new location with item filtering.
/* Make a copy of a directory structure in a new location with item filtering.
The FilteredDirectoryCopy function makes a copy of a directory
structure in a new location. If copyBufferPtr <> NIL, it points to
a buffer of copyBufferSize that is used to copy files data. The
Expand Down Expand Up @@ -171,14 +171,14 @@ pascal OSErr FilteredDirectoryCopy(short srcVRefNum,

Result Codes
noErr 0 No error
readErr 19 Driver does not respond to read requests
writErr 20 Driver does not respond to write requests
badUnitErr 21 Driver reference number does not
readErr 19 Driver does not respond to read requests
writErr 20 Driver does not respond to write requests
badUnitErr 21 Driver reference number does not
match unit table
unitEmptyErr 22 Driver reference number specifies a
unitEmptyErr 22 Driver reference number specifies a
nil handle in unit table
abortErr 27 Request aborted by KillIO
notOpenErr 28 Driver not open
abortErr 27 Request aborted by KillIO
notOpenErr 28 Driver not open
dskFulErr -34 Destination volume is full
nsvErr -35 No such volume
ioErr -36 I/O error
Expand Down Expand Up @@ -223,7 +223,7 @@ pascal OSErr FSpFilteredDirectoryCopy(const FSSpec *srcSpec,
Boolean preflight,
CopyErrProcPtr copyErrHandler,
CopyFilterProcPtr copyFilterProc);
/* Make a copy of a directory structure in a new location with item filtering.
/* Make a copy of a directory structure in a new location with item filtering.
The FSpFilteredDirectoryCopy function makes a copy of a directory
structure in a new location. If copyBufferPtr <> NIL, it points to
a buffer of copyBufferSize that is used to copy files data. The
Expand Down Expand Up @@ -264,14 +264,14 @@ pascal OSErr FSpFilteredDirectoryCopy(const FSSpec *srcSpec,

Result Codes
noErr 0 No error
readErr 19 Driver does not respond to read requests
writErr 20 Driver does not respond to write requests
badUnitErr 21 Driver reference number does not
readErr 19 Driver does not respond to read requests
writErr 20 Driver does not respond to write requests
badUnitErr 21 Driver reference number does not
match unit table
unitEmptyErr 22 Driver reference number specifies a
unitEmptyErr 22 Driver reference number specifies a
nil handle in unit table
abortErr 27 Request aborted by KillIO
notOpenErr 28 Driver not open
abortErr 27 Request aborted by KillIO
notOpenErr 28 Driver not open
dskFulErr -34 Destination volume is full
nsvErr -35 No such volume
ioErr -36 I/O error
Expand Down Expand Up @@ -319,7 +319,7 @@ pascal OSErr DirectoryCopy(short srcVRefNum,
long copyBufferSize,
Boolean preflight,
CopyErrProcPtr copyErrHandler);
/* Make a copy of a directory structure in a new location.
/* Make a copy of a directory structure in a new location.
The DirectoryCopy function makes a copy of a directory structure in a
new location. If copyBufferPtr <> NIL, it points to a buffer of
copyBufferSize that is used to copy files data. The larger the
Expand Down Expand Up @@ -370,14 +370,14 @@ pascal OSErr DirectoryCopy(short srcVRefNum,

Result Codes
noErr 0 No error
readErr 19 Driver does not respond to read requests
writErr 20 Driver does not respond to write requests
badUnitErr 21 Driver reference number does not
readErr 19 Driver does not respond to read requests
writErr 20 Driver does not respond to write requests
badUnitErr 21 Driver reference number does not
match unit table
unitEmptyErr 22 Driver reference number specifies a
unitEmptyErr 22 Driver reference number specifies a
nil handle in unit table
abortErr 27 Request aborted by KillIO
notOpenErr 28 Driver not open
abortErr 27 Request aborted by KillIO
notOpenErr 28 Driver not open
dskFulErr -34 Destination volume is full
nsvErr -35 No such volume
ioErr -36 I/O error
Expand Down Expand Up @@ -421,7 +421,7 @@ pascal OSErr FSpDirectoryCopy(const FSSpec *srcSpec,
long copyBufferSize,
Boolean preflight,
CopyErrProcPtr copyErrHandler);
/* Make a copy of a directory structure in a new location.
/* Make a copy of a directory structure in a new location.
The FSpDirectoryCopy function makes a copy of a directory structure in a
new location. If copyBufferPtr <> NIL, it points to a buffer of
copyBufferSize that is used to copy files data. The larger the
Expand Down Expand Up @@ -456,14 +456,14 @@ pascal OSErr FSpDirectoryCopy(const FSSpec *srcSpec,

Result Codes
noErr 0 No error
readErr 19 Driver does not respond to read requests
writErr 20 Driver does not respond to write requests
badUnitErr 21 Driver reference number does not
readErr 19 Driver does not respond to read requests
writErr 20 Driver does not respond to write requests
badUnitErr 21 Driver reference number does not
match unit table
unitEmptyErr 22 Driver reference number specifies a
unitEmptyErr 22 Driver reference number specifies a
nil handle in unit table
abortErr 27 Request aborted by KillIO
notOpenErr 28 Driver not open
abortErr 27 Request aborted by KillIO
notOpenErr 28 Driver not open
dskFulErr -34 Destination volume is full
nsvErr -35 No such volume
ioErr -36 I/O error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**
** File: FSpCompat.c
**
** Copyright 1992-1999 Apple Computer, Inc.
** Copyright © 1992-1999 Apple Computer, Inc.
** All rights reserved.
**
** You may incorporate this sample code into your applications without
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**
** File: FSpCompat.h
**
** Copyright 1992-1999 Apple Computer, Inc.
** Copyright © 1992-1999 Apple Computer, Inc.
** All rights reserved.
**
** You may incorporate this sample code into your applications without
Expand Down Expand Up @@ -37,7 +37,7 @@ pascal OSErr FSMakeFSSpecCompat(short vRefNum,
long dirID,
ConstStr255Param fileName,
FSSpec *spec);
/* Initialize a FSSpec record.
/* Initialize a FSSpec record.
The FSMakeFSSpecCompat function fills in the fields of an FSSpec record.
If the file system can't create the FSSpec, then the compatibility code
creates a FSSpec that is exactly like an FSSpec except that spec.name
Expand All @@ -55,7 +55,7 @@ pascal OSErr FSMakeFSSpecCompat(short vRefNum,

Result Codes
noErr 0 No error
nsvErr -35 Volume doesnt exist
nsvErr -35 Volume doesnt exist
fnfErr -43 File or directory does not exist
(FSSpec is still valid)
*/
Expand All @@ -65,7 +65,7 @@ pascal OSErr FSMakeFSSpecCompat(short vRefNum,
pascal OSErr FSpOpenDFCompat(const FSSpec *spec,
char permission,
short *refNum);
/* Open a file's data fork.
/* Open a file's data fork.
The FSpOpenDFCompat function opens the data fork of the file specified
by spec.
Differences from FSpOpenDF: If FSpOpenDF isn't available,
Expand Down Expand Up @@ -103,7 +103,7 @@ pascal OSErr FSpOpenDFCompat(const FSSpec *spec,
pascal OSErr FSpOpenRFCompat(const FSSpec *spec,
char permission,
short *refNum);
/* Open a file's resource fork.
/* Open a file's resource fork.
The FSpOpenRFCompat function opens the resource fork of the file
specified by spec.

Expand Down Expand Up @@ -139,7 +139,7 @@ pascal OSErr FSpCreateCompat(const FSSpec *spec,
OSType creator,
OSType fileType,
ScriptCode scriptTag);
/* Create a new file.
/* Create a new file.
The FSpCreateCompat function creates a new file with the specified
type, creator, and script code.
Differences from FSpCreate: FSpCreateCompat correctly sets the
Expand Down Expand Up @@ -173,7 +173,7 @@ pascal OSErr FSpCreateCompat(const FSSpec *spec,
pascal OSErr FSpDirCreateCompat(const FSSpec *spec,
ScriptCode scriptTag,
long *createdDirID);
/* Create a new directory.
/* Create a new directory.
The FSpDirCreateCompat function creates a new directory and returns the
directory ID of the newDirectory.

Expand Down Expand Up @@ -203,7 +203,7 @@ pascal OSErr FSpDirCreateCompat(const FSSpec *spec,
/*****************************************************************************/

pascal OSErr FSpDeleteCompat(const FSSpec *spec);
/* Delete a file or directory.
/* Delete a file or directory.
The FSpDeleteCompat function deletes a file or directory.

spec input: An FSSpec record specifying the file or
Expand All @@ -228,7 +228,7 @@ pascal OSErr FSpDeleteCompat(const FSSpec *spec);

pascal OSErr FSpGetFInfoCompat(const FSSpec *spec,
FInfo *fndrInfo);
/* Get the finder information for a file.
/* Get the finder information for a file.
The FSpGetFInfoCompat function gets the finder information for a file.

spec input: An FSSpec record specifying the file.
Expand All @@ -254,7 +254,7 @@ pascal OSErr FSpGetFInfoCompat(const FSSpec *spec,

pascal OSErr FSpSetFInfoCompat(const FSSpec *spec,
const FInfo *fndrInfo);
/* Set the finder information for a file.
/* Set the finder information for a file.
The FSpSetFInfoCompat function sets the finder information for a file.

spec input: An FSSpec record specifying the file.
Expand All @@ -281,7 +281,7 @@ pascal OSErr FSpSetFInfoCompat(const FSSpec *spec,
/*****************************************************************************/

pascal OSErr FSpSetFLockCompat(const FSSpec *spec);
/* Lock a file.
/* Lock a file.
The FSpSetFLockCompat function locks a file.

spec input: An FSSpec record specifying the file.
Expand All @@ -302,7 +302,7 @@ pascal OSErr FSpSetFLockCompat(const FSSpec *spec);
/*****************************************************************************/

pascal OSErr FSpRstFLockCompat(const FSSpec *spec);
/* Unlock a file.
/* Unlock a file.
The FSpRstFLockCompat function unlocks a file.

spec input: An FSSpec record specifying the file.
Expand All @@ -324,7 +324,7 @@ pascal OSErr FSpRstFLockCompat(const FSSpec *spec);

pascal OSErr FSpRenameCompat(const FSSpec *spec,
ConstStr255Param newName);
/* Rename a file or directory.
/* Rename a file or directory.
The FSpRenameCompat function renames a file or directory.

spec input: An FSSpec record specifying the file.
Expand Down Expand Up @@ -353,7 +353,7 @@ pascal OSErr FSpRenameCompat(const FSSpec *spec,

pascal OSErr FSpCatMoveCompat(const FSSpec *source,
const FSSpec *dest);
/* Move a file or directory to a different location on on the same volume.
/* Move a file or directory to a different location on on the same volume.
The FSpCatMoveCompat function moves a file or directory to a different
location on on the same volume.

Expand Down Expand Up @@ -384,7 +384,7 @@ pascal OSErr FSpCatMoveCompat(const FSSpec *source,

pascal OSErr FSpExchangeFilesCompat(const FSSpec *source,
const FSSpec *dest);
/* Exchange the data stored in two files on the same volume.
/* Exchange the data stored in two files on the same volume.
The FSpExchangeFilesCompat function swaps the data in two files by
changing the information in the volume's catalog and, if the files
are open, in the file control blocks.
Expand Down Expand Up @@ -416,7 +416,7 @@ pascal OSErr FSpExchangeFilesCompat(const FSSpec *source,

pascal short FSpOpenResFileCompat(const FSSpec *spec,
SignedByte permission);
/* Open a file's resource file.
/* Open a file's resource file.
The FSpOpenResFileCompat function opens the resource file specified
by spec.

Expand All @@ -429,19 +429,19 @@ pascal short FSpOpenResFileCompat(const FSSpec *spec,

Result Codes
noErr 0 No error
nsvErr 35 No such volume
ioErr 36 I/O error
bdNamErr 37 Bad filename or volume name (perhaps zero
nsvErr 35 No such volume
ioErr 36 I/O error
bdNamErr 37 Bad filename or volume name (perhaps zero
length)
eofErr 39 End of file
tmfoErr 42 Too many files open
fnfErr 43 File not found
opWrErr 49 File already open with write permission
permErr 54 Permissions error (on file open)
extFSErr 58 Volume belongs to an external file system
memFullErr 108 Not enough room in heap zone
dirNFErr 120 Directory not found
mapReadErr 199 Map inconsistent with operation
eofErr 39 End of file
tmfoErr 42 Too many files open
fnfErr 43 File not found
opWrErr 49 File already open with write permission
permErr 54 Permissions error (on file open)
extFSErr 58 Volume belongs to an external file system
memFullErr 108 Not enough room in heap zone
dirNFErr 120 Directory not found
mapReadErr 199 Map inconsistent with operation
*/

/*****************************************************************************/
Expand All @@ -450,7 +450,7 @@ pascal void FSpCreateResFileCompat(const FSSpec *spec,
OSType creator,
OSType fileType,
ScriptCode scriptTag);
/* Create a resource file.
/* Create a resource file.
The FSpCreateResFileCompat function creates a new resource file with
the specified type, creator, and script code.
Differences from FSpCreateResFile: FSpCreateResFileCompat correctly
Expand All @@ -465,15 +465,15 @@ pascal void FSpCreateResFileCompat(const FSSpec *spec,

Result Codes
noErr 0 No error
dirFulErr 33 Directory full
dskFulErr 34 Disk full
nsvErr 35 No such volume
ioErr 36 I/O error
bdNamErr 37 Bad filename or volume name (perhaps zero
dirFulErr 33 Directory full
dskFulErr 34 Disk full
nsvErr 35 No such volume
ioErr 36 I/O error
bdNamErr 37 Bad filename or volume name (perhaps zero
length)
tmfoErr 42 Too many files open
wPrErrw 44 Disk is write-protected
fLckdErr 45 File is locked
tmfoErr 42 Too many files open
wPrErrw 44 Disk is write-protected
fLckdErr 45 File is locked
*/

/*****************************************************************************/
Expand Down
Loading