diff options
Diffstat (limited to 'io')
-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 b5b9e363d7..762e3ad77e 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)); |