-
Notifications
You must be signed in to change notification settings - Fork 8
/
create.h
20 lines (17 loc) · 827 Bytes
/
create.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
* copyfs - copy on write filesystem http://n0x.org/copyfs/
* Copyright (C) 2004 Nicolas Vigier <boklm@mars-attacks.org>
* Thomas Joubert <widan@net-42.eu.org>
* This program can be distributed under the terms of the GNU GPL.
* See the file COPYING.
*/
#ifndef CREATE_H
# define CREATE_H
char *create_meta_name(char *vpath, char *prefix);
int create_new_version(const char *vpath);
int create_new_subversion(const char *vpath, mode_t mode, uid_t uid, gid_t gid);
int create_new_file(const char *vpath, mode_t mode, uid_t uid, gid_t gid, dev_t dev);
int create_new_symlink(const char *dest, const char *vpath, uid_t uid, gid_t gid);
int create_new_directory(const char *vpath, mode_t mode, uid_t uid, gid_t gid);
int create_copy_file(const char *source, const char *target);
#endif /* !CREATE_H */