diff options
Diffstat (limited to 'io/sys/stat.h')
-rw-r--r-- | io/sys/stat.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h index b5b9e36..762e3ad 100644 --- a/io/sys/stat.h +++ b/io/sys/stat.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1995 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1995, 1996 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -105,6 +105,16 @@ __BEGIN_DECLS #define S_IRWXO (S_IRWXG >> 3) +#ifdef __USE_BSD +/* Macros for common mode bit masks. */ +#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */ +#define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */ +#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666 */ + +#define S_BLKSIZE 512 /* Block size for `st_blocks'. */ +#endif + + /* Get file attributes for FILE and put them in BUF. */ extern int __stat __P ((__const char *__file, struct stat *__buf)); extern int stat __P ((__const char *__file, struct stat *__buf)); |