|
From: Andre R. <and...@us...> - 2004-10-23 21:00:28
|
Update of /cvsroot/frontierkernel/Frontier/Common/MoreFiles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15015/Frontier/Common/MoreFiles Added Files: MoreFilesX.c Log Message: Use the newer MoreFilesX for the Carbon version. --- NEW FILE: MoreFilesX.c --- /* File: MoreFilesX.c Contains: A collection of useful high-level File Manager routines which use the HFS Plus APIs wherever possible. Version: MoreFilesX 1.0.1 Copyright: © 1992-2002 by Apple Computer, Inc., all rights reserved. Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribution of this Apple software constitutes acceptance of these terms. If you do not agree with these terms, please do not use, install, modify or redistribute this Apple software. In consideration of your agreement to abide by the following terms, and subject to these terms, Apple grants you a personal, non-exclusive license, under AppleÕs copyrights in this original Apple software (the "Apple Software"), to use, [...2731 lines suppressed...] &catalogInfo, NULL, NULL, NULL); require_noerr(result, FSGetCatalogInfo); /* Make sure oldDefault is a directory */ require_action(0 != (kFSNodeIsDirectoryMask & catalogInfo.nodeFlags), OldDefaultNotDirectory, result = dirNFErr); /* Set the current working directory to oldDefault */ result = HSetVol(NULL, catalogInfo.volume, catalogInfo.nodeID); require_noerr(result, HSetVol); HSetVol: OldDefaultNotDirectory: FSGetCatalogInfo: BadParameter: return ( result ); } /*****************************************************************************/ |