summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-01-02 06:19:15 +0000
committerRoland McGrath <roland@gnu.org>1996-01-02 06:19:15 +0000
commitfc4026d8e43407ba2739e493878d1ce259500059 (patch)
tree8473474493e6a95c5eb9fc6331b4658adb0b9707 /io
parent0a95f04d06a3226097124a3cee6b4a86452908b0 (diff)
downloadglibc-fc4026d8e43407ba2739e493878d1ce259500059.tar.gz
glibc-fc4026d8e43407ba2739e493878d1ce259500059.tar.xz
glibc-fc4026d8e43407ba2739e493878d1ce259500059.zip
Tue Jan 2 00:50:10 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
	* misc/queue.h: New file, incorporated from 4.4BSD.
	* misc/Makefile (headers): Add queue.h.

	* posix/sys/types.h [__USE_BSD]: Include endian.h.

	* io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
	New macros.
Diffstat (limited to 'io')
-rw-r--r--io/sys/stat.h12
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));