summaryrefslogtreecommitdiffstats
path: root/sys/sys/stat.h
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1994-09-09 15:19:40 +0000
committerdfr <dfr@FreeBSD.org>1994-09-09 15:19:40 +0000
commit0818c1ddfbf13973984d251e7ff37c6e40656279 (patch)
tree63159ada076042663ff77dac77a7bdc881dffc88 /sys/sys/stat.h
parentae0202f3c61e6327e273fea3e5d6a47b525e7823 (diff)
downloadFreeBSD-src-0818c1ddfbf13973984d251e7ff37c6e40656279.zip
FreeBSD-src-0818c1ddfbf13973984d251e7ff37c6e40656279.tar.gz
Fixed a couple of typos which made S_ISFIFO and S_ISSOCK return true for
regular files.
Diffstat (limited to 'sys/sys/stat.h')
-rw-r--r--sys/sys/stat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/stat.h b/sys/sys/stat.h
index ab44103..c645286 100644
--- a/sys/sys/stat.h
+++ b/sys/sys/stat.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)stat.h 8.6 (Berkeley) 3/8/94
- * $Id$
+ * $Id: stat.h,v 1.2 1994/08/02 07:53:40 davidg Exp $
*/
#ifndef _SYS_STAT_H_
@@ -130,11 +130,11 @@ struct stat {
#define S_ISCHR(m) ((m & 0170000) == 0020000) /* char special */
#define S_ISBLK(m) ((m & 0170000) == 0060000) /* block special */
#define S_ISREG(m) ((m & 0170000) == 0100000) /* regular file */
-#define S_ISFIFO(m) ((m & 0170000) == 0100000 || \
+#define S_ISFIFO(m) ((m & 0170000) == 0010000 || \
(m & 0170000) == 0140000) /* fifo or socket */
#ifndef _POSIX_SOURCE
#define S_ISLNK(m) ((m & 0170000) == 0120000) /* symbolic link */
-#define S_ISSOCK(m) ((m & 0170000) == 0100000 || \
+#define S_ISSOCK(m) ((m & 0170000) == 0010000 || \
(m & 0170000) == 0140000) /* fifo or socket */
#endif
OpenPOWER on IntegriCloud