BHttpForm: Clang also uses pair<> now.
[haiku.git] / src / build / libhaikucompat / syscalls.cpp
blobb88e7366463b2eb9d67752bad5193649bae39b8e
2 #include <stdarg.h>
3 #include <stdio.h>
5 #include <syscalls.h>
8 // #prama mark - iterating, retrieving device/partition data
9 partition_id
10 _kern_get_next_disk_device_id(int32 *cookie, size_t *neededSize)
12 return -1;
16 partition_id
17 _kern_find_disk_device(const char *filename, size_t *neededSize)
19 return -1;
23 partition_id
24 _kern_find_partition(const char *filename, size_t *neededSize)
26 return -1;
30 status_t
31 _kern_get_disk_device_data(partition_id deviceID, bool deviceOnly,
32 bool shadow, struct user_disk_device_data *buffer, size_t bufferSize,
33 size_t *neededSize)
35 return B_ERROR;
39 partition_id
40 _kern_register_file_device(const char *filename)
42 return -1;
46 status_t
47 _kern_unregister_file_device(partition_id deviceID, const char *filename)
49 return B_ERROR;
52 // #pragma mark - disk systems
54 status_t
55 _kern_get_disk_system_info(disk_system_id id,
56 struct user_disk_system_info *info)
58 return B_ERROR;
62 status_t
63 _kern_get_next_disk_system_info(int32 *cookie,
64 struct user_disk_system_info *info)
66 return B_ERROR;
70 status_t
71 _kern_find_disk_system(const char *name,
72 struct user_disk_system_info *info)
74 return B_ERROR;
78 bool
79 _kern_supports_defragmenting_partition(partition_id partitionID,
80 int32 changeCounter, bool *whileMounted)
82 return false;
86 bool
87 _kern_supports_repairing_partition(partition_id partitionID,
88 int32 changeCounter, bool checkOnly, bool *whileMounted)
90 return false;
94 bool
95 _kern_supports_resizing_partition(partition_id partitionID,
96 int32 changeCounter, bool *canResizeContents, bool *whileMounted)
98 return false;
102 bool
103 _kern_supports_moving_partition(partition_id partitionID,
104 int32 changeCounter, partition_id *unmovable,
105 partition_id *needUnmounting, size_t bufferSize)
107 return false;
111 bool
112 _kern_supports_setting_partition_name(partition_id partitionID,
113 int32 changeCounter)
115 return false;
119 bool
120 _kern_supports_setting_partition_content_name(partition_id partitionID,
121 int32 changeCounter, bool *whileMounted)
123 return false;
127 bool
128 _kern_supports_setting_partition_type(partition_id partitionID,
129 int32 changeCounter)
131 return false;
135 bool
136 _kern_supports_setting_partition_parameters(partition_id partitionID,
137 int32 changeCounter)
139 return false;
143 bool
144 _kern_supports_setting_partition_content_parameters(
145 partition_id partitionID, int32 changeCounter, bool *whileMounted)
147 return false;
151 bool
152 _kern_supports_initializing_partition(partition_id partitionID,
153 int32 changeCounter, const char *diskSystemName)
155 return false;
159 bool
160 _kern_supports_creating_child_partition(partition_id partitionID,
161 int32 changeCounter)
163 return false;
167 bool
168 _kern_supports_deleting_child_partition(partition_id partitionID,
169 int32 changeCounter)
171 return false;
175 bool
176 _kern_is_sub_disk_system_for(disk_system_id diskSystemID,
177 partition_id partitionID, int32 changeCounter)
180 return false;
184 status_t
185 _kern_validate_resize_partition(partition_id partitionID, int32 changeCounter,
186 off_t *size)
188 return B_ERROR;
192 status_t
193 _kern_validate_move_partition(partition_id partitionID, int32 changeCounter,
194 off_t *newOffset)
196 return B_ERROR;
200 status_t
201 _kern_validate_set_partition_name(partition_id partitionID, int32 changeCounter,
202 char *name)
204 return B_ERROR;
208 status_t
209 _kern_validate_set_partition_content_name(partition_id partitionID,
210 int32 changeCounter, char *name)
212 return B_ERROR;
216 status_t
217 _kern_validate_set_partition_type(partition_id partitionID, int32 changeCounter,
218 const char *type)
220 return B_ERROR;
224 status_t
225 _kern_validate_initialize_partition(partition_id partitionID,
226 int32 changeCounter, const char *diskSystemName, char *name,
227 const char *parameters, size_t parametersSize)
229 return B_ERROR;
233 status_t
234 _kern_validate_create_child_partition(partition_id partitionID,
235 int32 changeCounter, off_t *offset, off_t *size, const char *type,
236 const char *parameters, size_t parametersSize)
238 return B_ERROR;
242 status_t
243 _kern_get_partitionable_spaces(partition_id partitionID, int32 changeCounter,
244 struct partitionable_space_data *buffer, int32 count, int32 *actualCount)
246 return B_ERROR;
250 status_t
251 _kern_get_next_supported_partition_type(partition_id partitionID,
252 int32 changeCounter, int32 *cookie, char *type)
254 return B_ERROR;
258 status_t
259 _kern_get_partition_type_for_content_type(disk_system_id diskSystemID,
260 const char *contentType, char *type)
262 return B_ERROR;
265 // #pragma mark - disk device modification
267 status_t
268 _kern_prepare_disk_device_modifications(partition_id deviceID)
270 return B_ERROR;
274 status_t
275 _kern_commit_disk_device_modifications(partition_id deviceID,
276 port_id port, int32 token, bool completeProgress)
278 return B_ERROR;
282 status_t
283 _kern_cancel_disk_device_modifications(partition_id deviceID)
285 return B_ERROR;
289 bool
290 _kern_is_disk_device_modified(partition_id deviceID)
292 return false;
296 status_t
297 _kern_defragment_partition(partition_id partitionID, int32 changeCounter)
299 return B_ERROR;
303 status_t
304 _kern_repair_partition(partition_id partitionID, int32 changeCounter,
305 bool checkOnly)
307 return B_ERROR;
311 status_t
312 _kern_resize_partition(partition_id partitionID, int32 changeCounter,
313 off_t size)
315 return B_ERROR;
319 status_t
320 _kern_move_partition(partition_id partitionID, int32 changeCounter,
321 off_t newOffset)
323 return B_ERROR;
327 status_t
328 _kern_set_partition_name(partition_id partitionID, int32 changeCounter,
329 const char *name)
331 return B_ERROR;
335 status_t
336 _kern_set_partition_content_name(partition_id partitionID,
337 int32 changeCounter, const char *name)
339 return B_ERROR;
343 status_t
344 _kern_set_partition_type(partition_id partitionID, int32 changeCounter,
345 const char *type)
347 return B_ERROR;
351 status_t
352 _kern_set_partition_parameters(partition_id partitionID, int32 changeCounter,
353 const char *parameters, size_t parametersSize)
355 return B_ERROR;
359 status_t
360 _kern_set_partition_content_parameters(partition_id partitionID,
361 int32 changeCounter, const char *parameters, size_t parametersSize)
363 return B_ERROR;
367 status_t
368 _kern_initialize_partition(partition_id partitionID, int32 changeCounter,
369 const char *diskSystemName, const char *name, const char *parameters,
370 size_t parametersSize)
372 return B_ERROR;
376 status_t
377 _kern_uninitialize_partition(partition_id partitionID, int32 changeCounter,
378 partition_id parentID, int32 parentChangeCounter)
380 return B_ERROR;
384 status_t
385 _kern_create_child_partition(partition_id partitionID, int32 changeCounter,
386 off_t offset, off_t size, const char *type, const char *parameters,
387 size_t parametersSize, partition_id *childID)
389 return B_ERROR;
393 status_t
394 _kern_delete_partition(partition_id partitionID, int32 changeCounter)
396 return B_ERROR;
400 status_t
401 _kern_delete_child_partition(partition_id partitionID, int32* changeCounter,
402 partition_id childID, int32 childChangeCounter)
404 return B_ERROR;
408 // #pragma mark - jobs
411 status_t
412 _kern_get_next_disk_device_job_info(int32 *cookie,
413 struct user_disk_device_job_info *info)
415 return B_ERROR;
419 status_t
420 _kern_get_disk_device_job_info(disk_job_id id,
421 struct user_disk_device_job_info *info)
423 return B_ERROR;
427 status_t
428 _kern_get_disk_device_job_progress_info(disk_job_id id,
429 struct disk_device_job_progress_info *info)
431 return B_ERROR;
435 status_t
436 _kern_pause_disk_device_job(disk_job_id id)
438 return B_ERROR;
442 status_t
443 _kern_cancel_disk_device_job(disk_job_id id, bool reverse)
445 return B_ERROR;
448 // #pragma mark - other syscalls
450 status_t
451 _kern_get_safemode_option(const char *parameter, char *buffer,
452 size_t *_bufferSize)
454 return B_ERROR;