Differences From Artifact [00385e02ec]:
- File
src/OFFile.h
— part of check-in
[260391fc1c]
at
2013-12-11 23:53:07
on branch trunk
— Add +[OFFile moveItemAtPath:toPath:].
This replaces +[OFFile renameItemAtPath:toPath:] and supports moving
files to different logical devices. (user: js, size: 8836) [annotate] [blame] [check-ins using]
To Artifact [e01ad20745]:
- File src/OFFile.h — part of check-in [ce99d76d79] at 2013-12-15 14:57:39 on branch trunk — OFFile: Clean up the stat mess. (user: js, size: 9129) [annotate] [blame] [check-ins using]
︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | + + + + + + + | # define __STDC_LIMIT_MACROS #endif #ifndef __STDC_CONSTANT_MACROS # define __STDC_CONSTANT_MACROS #endif #include <sys/types.h> #include <sys/stat.h> #import "OFSeekableStream.h" @class OFArray; @class OFDate; #ifndef _WIN32 typedef struct stat of_stat_t; #else typedef struct _stat of_stat_t; #endif /*! * @brief A class which provides functions to read, write and manipulate files. */ @interface OFFile: OFSeekableStream { int _fd; |
︙ | |||
283 284 285 286 287 288 289 | 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 | + + + + + + + + + | * @brief Initializes an already allocated OFFile. * * @param fd A file descriptor, returned from for example open(). * It is not closed when the OFFile object is deallocated! */ - initWithFileDescriptor: (int)fd; @end #ifdef __cplusplus extern "C" { #endif extern int of_stat(OFString *path, of_stat_t *buffer); extern int of_lstat(OFString *path, of_stat_t *buffer); #ifdef __cplusplus } #endif |