Subversion Repositories Kolibri OS

Rev

Rev 6109 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6109 Rev 6536
Line 80... Line 80...
80
#define 	S_BLKSIZE  1024 /* size of a block */
80
#define 	S_BLKSIZE  1024 /* size of a block */
Line 81... Line 81...
81
 
81
 
82
#define	S_ISUID		0004000	/* set user id on execution */
82
#define	S_ISUID		0004000	/* set user id on execution */
83
#define	S_ISGID		0002000	/* set group id on execution */
83
#define	S_ISGID		0002000	/* set group id on execution */
84
#define	S_ISVTX		0001000	/* save swapped text even after use */
84
#define	S_ISVTX		0001000	/* save swapped text even after use */
85
#ifndef	_POSIX_SOURCE
85
#if __BSD_VISIBLE
86
#define	S_IREAD		0000400	/* read permission, owner */
86
#define	S_IREAD		0000400	/* read permission, owner */
87
#define	S_IWRITE 	0000200	/* write permission, owner */
87
#define	S_IWRITE 	0000200	/* write permission, owner */
88
#define	S_IEXEC		0000100	/* execute/search permission, owner */
88
#define	S_IEXEC		0000100	/* execute/search permission, owner */
89
#define	S_ENFMT 	0002000	/* enforcement-mode locking */
89
#define	S_ENFMT 	0002000	/* enforcement-mode locking */
Line 90... Line 90...
90
#endif	/* !_POSIX_SOURCE */
90
#endif	/* !_BSD_VISIBLE */
91
 
91
 
92
#define	S_IFMT		_IFMT
92
#define	S_IFMT		_IFMT
93
#define	S_IFDIR		_IFDIR
93
#define	S_IFDIR		_IFDIR
Line 122... Line 122...
122
#define	S_IRWXO		(S_IROTH | S_IWOTH | S_IXOTH)
122
#define	S_IRWXO		(S_IROTH | S_IWOTH | S_IXOTH)
123
#define		S_IROTH	0000004	/* read permission, other */
123
#define		S_IROTH	0000004	/* read permission, other */
124
#define		S_IWOTH	0000002	/* write permission, other */
124
#define		S_IWOTH	0000002	/* write permission, other */
125
#define		S_IXOTH 0000001/* execute/search permission, other */
125
#define		S_IXOTH 0000001/* execute/search permission, other */
Line 126... Line 126...
126
 
126
 
127
#ifndef _POSIX_SOURCE
127
#if __BSD_VISIBLE
128
#define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO) /* 0777 */
128
#define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO) /* 0777 */
129
#define ALLPERMS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) /* 07777 */
129
#define ALLPERMS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) /* 07777 */
130
#define DEFFILEMODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) /* 0666 */
130
#define DEFFILEMODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) /* 0666 */
Line 142... Line 142...
142
/* Special tv_nsec values for futimens(2) and utimensat(2). */
142
/* Special tv_nsec values for futimens(2) and utimensat(2). */
143
#define UTIME_NOW	-2L
143
#define UTIME_NOW	-2L
144
#define UTIME_OMIT	-1L
144
#define UTIME_OMIT	-1L
145
#endif
145
#endif
Line -... Line 146...
-
 
146
 
-
 
147
int	_EXFUN(chmod,( const char *__path, mode_t __mode ));
146
 
148
int     _EXFUN(fchmod,(int __fd, mode_t __mode));
147
int	_EXFUN(fstat,( int __fd, struct stat *__sbuf ));
149
int	_EXFUN(fstat,( int __fd, struct stat *__sbuf ));
148
int	_EXFUN(mkdir,( const char *_path, mode_t __mode ));
150
int	_EXFUN(mkdir,( const char *_path, mode_t __mode ));
149
int	_EXFUN(mkfifo,( const char *__path, mode_t __mode ));
151
int	_EXFUN(mkfifo,( const char *__path, mode_t __mode ));
150
int	_EXFUN(stat,( const char *__restrict __path, struct stat *__restrict __sbuf ));
152
int	_EXFUN(stat,( const char *__restrict __path, struct stat *__restrict __sbuf ));
Line 153... Line 155...
153
#if defined (__SPU__) || defined(__rtems__) || defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
155
#if defined (__SPU__) || defined(__rtems__) || defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
154
int	_EXFUN(lstat,( const char *__restrict __path, struct stat *__restrict __buf ));
156
int	_EXFUN(lstat,( const char *__restrict __path, struct stat *__restrict __buf ));
155
int	_EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
157
int	_EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
156
#endif
158
#endif
Line 157... Line 159...
157
 
159
 
158
#if (__POSIX_VISIBLE >= 200809 || defined (__CYGWIN__)) && !defined(__INSIDE_CYGWIN__)
160
#if __ATFILE_VISIBLE && !defined(__INSIDE_CYGWIN__)
159
int	_EXFUN(fchmodat, (int, const char *, mode_t, int));
-
 
160
#endif
-
 
161
#if (__BSD_VISIBLE || __POSIX_VISIBLE >= 200809 || defined (__CYGWIN__)) && !defined(__INSIDE_CYGWIN__)
161
int	_EXFUN(fchmodat, (int, const char *, mode_t, int));
162
int	_EXFUN(fstatat, (int, const char *__restrict , struct stat *__restrict, int));
162
int	_EXFUN(fstatat, (int, const char *__restrict , struct stat *__restrict, int));
163
int	_EXFUN(mkdirat, (int, const char *, mode_t));
163
int	_EXFUN(mkdirat, (int, const char *, mode_t));
164
int	_EXFUN(mkfifoat, (int, const char *, mode_t));
-
 
165
#endif
-
 
166
#if (__BSD_VISIBLE || __XSI_VISIBLE >= 700 || defined (__CYGWIN__)) && !defined(__INSIDE_CYGWIN__)
164
int	_EXFUN(mkfifoat, (int, const char *, mode_t));
167
int	_EXFUN(mknodat, (int, const char *, mode_t, dev_t));
-
 
168
#endif
-
 
169
#if (__BSD_VISIBLE || __POSIX_VISIBLE >= 200809 || defined (__CYGWIN__)) && !defined(__INSIDE_CYGWIN__)
165
int	_EXFUN(mknodat, (int, const char *, mode_t, dev_t));
-
 
166
int	_EXFUN(utimensat, (int, const char *, const struct timespec *, int));
-
 
167
#endif
170
int	_EXFUN(utimensat, (int, const char *, const struct timespec *, int));
168
#if __POSIX_VISIBLE >= 200809 && !defined(__INSIDE_CYGWIN__)
171
int	_EXFUN(futimens, (int, const struct timespec *));
169
int	_EXFUN(futimens, (int, const struct timespec *));
Line 172... Line 170...
172
#endif
170
#endif
173
 
171