summaryrefslogtreecommitdiff
path: root/legacy/escape/src/lib/escape_unistd.h
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>2011-11-05 17:50:23 +0000
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>2011-11-05 17:50:23 +0000
commitfff15361e37f008667bf7c45db6fdc99d89e2ef4 (patch)
tree07094e1c4faf63a8c5c288aaf268be9238692436 /legacy/escape/src/lib/escape_unistd.h
parentaeb68dfc9289657071bef0e4d6e298b358bde91f (diff)
Escape: ecrustified
SVN revision: 64786
Diffstat (limited to '')
-rw-r--r--legacy/escape/src/lib/escape_unistd.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/legacy/escape/src/lib/escape_unistd.h b/legacy/escape/src/lib/escape_unistd.h
index e18e623554..0e96d3f3cb 100644
--- a/legacy/escape/src/lib/escape_unistd.h
+++ b/legacy/escape/src/lib/escape_unistd.h
@@ -1,7 +1,6 @@
1#ifndef __ESCAPE_UNISTD_H__ 1#ifndef __ESCAPE_UNISTD_H__
2#define __ESCAPE_UNISTD_H__ 2#define __ESCAPE_UNISTD_H__
3 3
4
5/** 4/**
6 * @file escape_unistd.h 5 * @file escape_unistd.h
7 * @brief The file that provides functions ported from Unix in unistd.h. 6 * @brief The file that provides functions ported from Unix in unistd.h.
@@ -14,7 +13,6 @@
14 13
15#include <sys/syslimits.h> 14#include <sys/syslimits.h>
16 15
17
18/* Path function */ 16/* Path function */
19/** 17/**
20 * @brief return the canonicalized absolute pathname 18 * @brief return the canonicalized absolute pathname
@@ -41,21 +39,22 @@ EAPI char *escape_realpath(const char *path, char *resolved_path);
41#endif 39#endif
42#define realpath escape_realpath 40#define realpath escape_realpath
43 41
44EAPI ssize_t escape_readlink(const char * path, 42EAPI ssize_t
45 char * buf, 43escape_readlink(const char *path,
46 size_t bufsize); 44 char *buf,
45 size_t bufsize);
47#ifdef readlink 46#ifdef readlink
48#undef readlink 47#undef readlink
49#endif 48#endif
50#define readlink escape_readlink 49#define readlink escape_readlink
51 50
52EAPI int escape_symlink(const char *path1, const char *path2); 51EAPI int
52escape_symlink(const char *path1, const char *path2);
53#ifdef symlink 53#ifdef symlink
54#undef symlink 54#undef symlink
55#endif 55#endif
56#define symlink escape_symlink 56#define symlink escape_symlink
57 57
58
59/** 58/**
60 * @brief check real user's permissions for a file 59 * @brief check real user's permissions for a file
61 * 60 *
@@ -71,7 +70,8 @@ EAPI int escape_symlink(const char *path1, const char *path2);
71 * and execute permissions, respectively. 70 * and execute permissions, respectively.
72 * 71 *
73 */ 72 */
74EAPI int escape_access(const char *pathname, int mode); 73EAPI int
74escape_access(const char *pathname, int mode);
75#ifdef access 75#ifdef access
76#undef access 76#undef access
77#endif 77#endif
@@ -88,7 +88,8 @@ EAPI int escape_access(const char *pathname, int mode);
88 * 88 *
89 * Conformity: Not applicable. 89 * Conformity: Not applicable.
90 */ 90 */
91EAPI int escape_pipe(int *fds); 91EAPI int
92escape_pipe(int *fds);
92 93
93/** 94/**
94 * @def pipe(fds) 95 * @def pipe(fds)
@@ -97,13 +98,10 @@ EAPI int escape_pipe(int *fds);
97 */ 98 */
98#define pipe(fds) escape_pipe(fds) 99#define pipe(fds) escape_pipe(fds)
99 100
100
101//#define sync() 101//#define sync()
102 102
103
104/** 103/**
105 * @} 104 * @}
106 */ 105 */
107 106
108
109#endif /* __ESCAPE_UNISTD_H__ */ 107#endif /* __ESCAPE_UNISTD_H__ */