105 |
int File_checkStat(char *filename, char *description, int permmask); |
int File_checkStat(char *filename, char *description, int permmask); |
106 |
|
|
107 |
|
|
108 |
|
/** |
109 |
|
* Check whether the specified directory exist or create it using |
110 |
|
* specified mode. |
111 |
|
* @param path The fully qualified path to the directory |
112 |
|
* @param mode The permission for the directory |
113 |
|
* @return TRUE if the passed otherwise FALSE |
114 |
|
*/ |
115 |
|
int File_checkQueueDirectory(char *path, mode_t mode); |
116 |
|
|
117 |
|
|
118 |
|
/** |
119 |
|
* Check the queue size limit. |
120 |
|
* @param path The fully qualified path to the directory |
121 |
|
* @param mode The queue limit |
122 |
|
* @return TRUE if the passed otherwise FALSE |
123 |
|
*/ |
124 |
|
int File_checkQueueLimit(char *path, int limit); |
125 |
|
|
126 |
|
|
127 |
|
/** |
128 |
|
* Write data to the queue file |
129 |
|
* @param file Filedescriptor to write to |
130 |
|
* @param data Data to be written |
131 |
|
* @param size Size of the data to be written |
132 |
|
* @return TRUE if the passed otherwise FALSE |
133 |
|
*/ |
134 |
|
int File_writeQueue(FILE *file, void *data, int size); |
135 |
|
|
136 |
|
|
137 |
|
/** |
138 |
|
* Read the data from the queue file's actual position |
139 |
|
* @param file Filedescriptor to read from |
140 |
|
* @param size Size of the data read |
141 |
|
* @return The data read if any or NULL. The size parameter is set |
142 |
|
* appropriately. |
143 |
|
*/ |
144 |
|
void *File_readQueue(FILE *file, int *size); |
145 |
|
|
146 |
|
|
147 |
#endif |
#endif |