31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/**
* \param path The path to the file to open as a string
* \param mode The mode in which the file should be opened as a string
* \return A new autoreleased OFFile
*/
+ fileWithPath: (OFString*)path
andMode: (OFString*)mode;
/**
* \return An OFFile singleton for stdin
*/
+ standardInput;
/**
|
|
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/**
* \param path The path to the file to open as a string
* \param mode The mode in which the file should be opened as a string
* \return A new autoreleased OFFile
*/
+ fileWithPath: (OFString*)path
mode: (OFString*)mode;
/**
* \return An OFFile singleton for stdin
*/
+ standardInput;
/**
|
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
* \param path The path to the file of which the owner should be changed as a
* string
* \param owner The new owner for the file
* \param group The new group for the file
* \return A boolean whether the operation succeeded
*/
+ (void)changeOwnerOfFile: (OFString*)path
toOwner: (uid_t)owner
andGroup: (gid_t)group;
/**
* Deletes a file.
*
* \param path The path to the file of which should be deleted as a string
* \return A boolean whether the operation succeeded
*/
|
|
|
|
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
* \param path The path to the file of which the owner should be changed as a
* string
* \param owner The new owner for the file
* \param group The new group for the file
* \return A boolean whether the operation succeeded
*/
+ (void)changeOwnerOfFile: (OFString*)path
owner: (uid_t)owner
group: (gid_t)group;
/**
* Deletes a file.
*
* \param path The path to the file of which should be deleted as a string
* \return A boolean whether the operation succeeded
*/
|
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
* Initializes an already allocated OFFile.
*
* \param path The path to the file to open as a string
* \param mode The mode in which the file should be opened as a string
* \return An initialized OFFile
*/
- initWithPath: (OFString*)path
andMode: (OFString*)mode;
/**
* Reads from the file into a buffer.
*
* \param buf The buffer into which the data is read
* \param size The size of the data that should be read.
* The buffer MUST be at least size * nitems big!
|
|
|
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
* Initializes an already allocated OFFile.
*
* \param path The path to the file to open as a string
* \param mode The mode in which the file should be opened as a string
* \return An initialized OFFile
*/
- initWithPath: (OFString*)path
mode: (OFString*)mode;
/**
* Reads from the file into a buffer.
*
* \param buf The buffer into which the data is read
* \param size The size of the data that should be read.
* The buffer MUST be at least size * nitems big!
|