mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
Rewrite attribute handling code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14454 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4aabe798ba
commit
a48b2ccb08
4 changed files with 648 additions and 350 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2002-09-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSFileManager.m: Basic/dummy implementations of new MacOS-X
|
||||||
|
methods added. Attribute handling totally rewritten to work in a lazy
|
||||||
|
way ... so we only set up attribute info in the dictionary when we
|
||||||
|
actually need it. Account 'Number' methods and dictionary keys changed
|
||||||
|
to be account 'ID' instead ... in accordance with MacOS-X usage.
|
||||||
|
|
||||||
2002-09-15 Richard Frith-Macdonald <rfm@gnu.org>
|
2002-09-15 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSFileManager.m: MacOS-X ([componentsToDisplayForPath:]) and
|
* Source/NSFileManager.m: MacOS-X ([componentsToDisplayForPath:]) and
|
||||||
|
|
|
@ -130,14 +130,18 @@
|
||||||
@end /* NSDirectoryEnumerator */
|
@end /* NSDirectoryEnumerator */
|
||||||
|
|
||||||
/* File Attributes */
|
/* File Attributes */
|
||||||
|
GS_EXPORT NSString* const NSFileAppendOnly;
|
||||||
GS_EXPORT NSString* const NSFileCreationDate;
|
GS_EXPORT NSString* const NSFileCreationDate;
|
||||||
GS_EXPORT NSString* const NSFileDeviceIdentifier;
|
GS_EXPORT NSString* const NSFileDeviceIdentifier;
|
||||||
|
GS_EXPORT NSString* const NSFileExtensionHidden;
|
||||||
|
GS_EXPORT NSString* const NSFileGroupOwnerAccountID;
|
||||||
GS_EXPORT NSString* const NSFileGroupOwnerAccountName;
|
GS_EXPORT NSString* const NSFileGroupOwnerAccountName;
|
||||||
GS_EXPORT NSString* const NSFileGroupOwnerAccountNumber;
|
GS_EXPORT NSString* const NSFileHFSCreatorCode;
|
||||||
GS_EXPORT NSString* const NSFileDeviceIdentifier;
|
GS_EXPORT NSString* const NSFileHFSTypeCode;
|
||||||
|
GS_EXPORT NSString* const NSFileImmutable;
|
||||||
GS_EXPORT NSString* const NSFileModificationDate;
|
GS_EXPORT NSString* const NSFileModificationDate;
|
||||||
|
GS_EXPORT NSString* const NSFileOwnerAccountID;
|
||||||
GS_EXPORT NSString* const NSFileOwnerAccountName;
|
GS_EXPORT NSString* const NSFileOwnerAccountName;
|
||||||
GS_EXPORT NSString* const NSFileOwnerAccountNumber;
|
|
||||||
GS_EXPORT NSString* const NSFilePosixPermissions;
|
GS_EXPORT NSString* const NSFilePosixPermissions;
|
||||||
GS_EXPORT NSString* const NSFileReferenceCount;
|
GS_EXPORT NSString* const NSFileReferenceCount;
|
||||||
GS_EXPORT NSString* const NSFileSize;
|
GS_EXPORT NSString* const NSFileSize;
|
||||||
|
@ -166,19 +170,22 @@ GS_EXPORT NSString* const NSFileSystemFreeNodes;
|
||||||
/* Easy access to attributes in a dictionary */
|
/* Easy access to attributes in a dictionary */
|
||||||
|
|
||||||
@interface NSDictionary(NSFileAttributes)
|
@interface NSDictionary(NSFileAttributes)
|
||||||
|
- (NSDate*) fileCreationDate;
|
||||||
|
- (BOOL) fileExtensionHidden;
|
||||||
|
- (int) fileHFSCreatorCode;
|
||||||
|
- (int) fileHFSTypeCode;
|
||||||
|
- (BOOL) fileIsAppendOnly;
|
||||||
|
- (BOOL) fileIsImmutable;
|
||||||
- (unsigned long long) fileSize;
|
- (unsigned long long) fileSize;
|
||||||
- (NSString*) fileType;
|
- (NSString*) fileType;
|
||||||
|
- (unsigned long) fileOwnerAccountID;
|
||||||
- (NSString*) fileOwnerAccountName;
|
- (NSString*) fileOwnerAccountName;
|
||||||
|
- (unsigned long) fileGroupOwnerAccountID;
|
||||||
- (NSString*) fileGroupOwnerAccountName;
|
- (NSString*) fileGroupOwnerAccountName;
|
||||||
- (NSDate*) fileModificationDate;
|
- (NSDate*) fileModificationDate;
|
||||||
- (unsigned long) filePosixPermissions;
|
- (unsigned long) filePosixPermissions;
|
||||||
- (unsigned long) fileSystemNumber;
|
- (unsigned long) fileSystemNumber;
|
||||||
- (unsigned long) fileSystemFileNumber;
|
- (unsigned long) fileSystemFileNumber;
|
||||||
|
|
||||||
#ifndef STRICT_MACOS_X
|
|
||||||
- (unsigned long) fileOwnerAccountNumber;
|
|
||||||
- (unsigned long) fileGroupOwnerAccountNumber;
|
|
||||||
#endif
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -516,7 +516,7 @@ AC_CHECK_HEADERS(sys/stat.h sys/vfs.h sys/statfs.h sys/statvfs.h pwd.h grp.h)
|
||||||
AC_CHECK_HEADERS(sys/mount.h sys/types.h windows.h locale.h langinfo.h)
|
AC_CHECK_HEADERS(sys/mount.h sys/types.h windows.h locale.h langinfo.h)
|
||||||
saved_LIBS="$LIBS"
|
saved_LIBS="$LIBS"
|
||||||
AC_CHECK_LIB(m, main)
|
AC_CHECK_LIB(m, main)
|
||||||
AC_CHECK_FUNCS(statvfs symlink readlink geteuid getlogin getpwnam getpwuid rint)
|
AC_CHECK_FUNCS(statvfs symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint)
|
||||||
LIBS="$saved_LIBS"
|
LIBS="$saved_LIBS"
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue