From fc4026d8e43407ba2739e493878d1ce259500059 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 2 Jan 1996 06:19:15 +0000 Subject: Tue Jan 2 00:50:10 1996 Roland McGrath * 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. --- io/sys/stat.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'io/sys/stat.h') 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)); -- cgit v1.2.3