source: tags/ms_r18q1/CORE/arb_file.h

Last change on this file was 16552, checked in by westram, 7 years ago
  • partial merge from 'io' into 'trunk'
    • GB_rename_fileGB_move_file
    • add GB_copy_file
    • add safe versions of both
  • adds: log:branches/io@16527:16532
File size: 1.5 KB
Line 
1/* This file is generated by aisc_mkpt.
2 * Any changes you make here will be overwritten later!
3 */
4
5#ifndef ARB_FILE_H
6#define ARB_FILE_H
7
8/* define ARB attributes: */
9#ifndef ATTRIBUTES_H
10# include <attributes.h>
11#endif
12
13
14/* arb_file.cxx */
15
16#ifndef ARB_CORE_H
17#include "arb_core.h"
18#endif
19
20long GB_size_of_file(const char *path);
21long GB_size_of_FILE(FILE *in);
22unsigned long GB_time_of_file(const char *path);
23GB_ERROR GB_set_time_of_file(const char *path, unsigned long new_time);
24long GB_mode_of_file(const char *path);
25long GB_mode_of_link(const char *path);
26bool GB_is_regularfile(const char *path);
27bool GB_is_link(const char *path);
28bool GB_is_fifo(const char *path);
29bool GB_is_fifo(FILE *fp);
30bool GB_is_executablefile(const char *path);
31bool GB_is_privatefile(const char *path, bool read_private);
32bool GB_is_writeablefile(const char *filename);
33bool GB_is_readablefile(const char *filename);
34bool GB_is_directory(const char *path);
35long GB_getuid_of_file(const char *path);
36int GB_unlink(const char *path);
37void GB_unlink_or_warn(const char *path, GB_ERROR *error);
38GB_ERROR GB_symlink(const char *target, const char *link);
39GB_ERROR GB_set_mode_of_file(const char *path, long mode);
40char *GB_follow_unix_link(const char *path);
41GB_ERROR GB_move_file(const char *oldpath, const char *newpath);
42GB_ERROR GB_copy_file(const char *srcpath, const char *dstpath);
43GB_ERROR GB_safe_rename_file(const char *oldpath, const char *newpath);
44GB_ERROR GB_safe_copy_file(const char *oldpath, const char *newpath);
45
46#else
47#error arb_file.h included twice
48#endif /* ARB_FILE_H */
Note: See TracBrowser for help on using the repository browser.