RTEMS: cpukit/include/rtems/rfs/rtems-rfs-link.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
rtems-rfs-link.h
Go to the documentation of this file.
1
13/*
14 * COPYRIGHT (c) 2010 Chris Johns <chrisj@rtems.org>
15 *
16 * The license and distribution terms for this file may be
17 * found in the file LICENSE in this distribution or at
18 * http://www.rtems.org/license/LICENSE.
19 */
20
21
22#if !defined (_RTEMS_RFS_LINK_H_)
23#define _RTEMS_RFS_LINK_H_
24
25#include <dirent.h>
26
27#include <rtems/rfs/rtems-rfs-file-system.h>
28#include <rtems/rfs/rtems-rfs-inode.h>
29
33 typedef enum rtems_rfs_unlink_dir_e
34{
35 rtems_rfs_unlink_dir_denied,
36 rtems_rfs_unlink_dir_if_empty,
37 rtems_rfs_unlink_dir_allowed
38} rtems_rfs_unlink_dir;
39
55int rtems_rfs_link (rtems_rfs_file_system* fs,
56 const char* name,
57 int length,
58 rtems_rfs_ino parent,
59 rtems_rfs_ino target,
60 bool link_dir);
61
76int rtems_rfs_unlink (rtems_rfs_file_system* fs,
77 rtems_rfs_ino parent,
78 rtems_rfs_ino target,
79 uint32_t doff,
80 rtems_rfs_unlink_dir dir_mode);
81
96int rtems_rfs_symlink (rtems_rfs_file_system* fs,
97 const char* name,
98 int length,
99 const char* link,
100 int link_length,
101 uid_t uid,
102 gid_t gid,
103 rtems_rfs_ino parent);
104
118int rtems_rfs_symlink_read (rtems_rfs_file_system* fs,
119 rtems_rfs_ino link,
120 char* path,
121 size_t size,
122 size_t* length);
123
124#endif
link
int link(const char *path1, const char *path2)
Definition: link.c:28
rtems-rfs-file-system.h
RTEMS File System Data.
rtems-rfs-inode.h
RTEMS File System Information Node.
rtems_rfs_ino
uint32_t rtems_rfs_ino
Definition: rtems-rfs-inode.h:78
rtems_rfs_unlink_dir
enum rtems_rfs_unlink_dir_e rtems_rfs_unlink_dir
rtems_rfs_link
int rtems_rfs_link(rtems_rfs_file_system *fs, const char *name, int length, rtems_rfs_ino parent, rtems_rfs_ino target, bool link_dir)
Definition: rtems-rfs-link.c:36
rtems_rfs_unlink_dir_e
rtems_rfs_unlink_dir_e
Definition: rtems-rfs-link.h:34
rtems_rfs_unlink_dir_denied
@ rtems_rfs_unlink_dir_denied
Definition: rtems-rfs-link.h:35
rtems_rfs_unlink_dir_if_empty
@ rtems_rfs_unlink_dir_if_empty
Definition: rtems-rfs-link.h:36
rtems_rfs_unlink_dir_allowed
@ rtems_rfs_unlink_dir_allowed
Definition: rtems-rfs-link.h:37
rtems_rfs_symlink_read
int rtems_rfs_symlink_read(rtems_rfs_file_system *fs, rtems_rfs_ino link, char *path, size_t size, size_t *length)
Definition: rtems-rfs-link.c:362
rtems_rfs_unlink
int rtems_rfs_unlink(rtems_rfs_file_system *fs, rtems_rfs_ino parent, rtems_rfs_ino target, uint32_t doff, rtems_rfs_unlink_dir dir_mode)
Definition: rtems-rfs-link.c:110
rtems_rfs_symlink
int rtems_rfs_symlink(rtems_rfs_file_system *fs, const char *name, int length, const char *link, int link_length, uid_t uid, gid_t gid, rtems_rfs_ino parent)
Definition: rtems-rfs-link.c:247
_rtems_rfs_file_system
Definition: rtems-rfs-file-system.h:116