From owner-freebsd-hackers Mon Jun 14 21:55:31 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id DF3F614D6F for ; Mon, 14 Jun 1999 21:55:29 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id WAA46193; Mon, 14 Jun 1999 22:55:13 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id WAA86656; Mon, 14 Jun 1999 22:54:56 -0600 (MDT) Message-Id: <199906150454.WAA86656@harmony.village.org> To: Ming-I Hsieh Subject: Re: Why not let "sys/stat.h" include "sys/types.h"? Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Tue, 15 Jun 1999 10:18:04 +0800." <3765B7DC.E87AD77C@wm28.csie.ncu.edu.tw> References: <3765B7DC.E87AD77C@wm28.csie.ncu.edu.tw> Date: Mon, 14 Jun 1999 22:54:56 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <3765B7DC.E87AD77C@wm28.csie.ncu.edu.tw> Ming-I Hsieh writes: : Anyone can tell me why the ``sys/stat.h'' don't include ``sys/types''! : It will cause some imcompatible between FreeBSD and some others UN*X. Because it isn't supposed to. STAT(2) FreeBSD System Calls Manual STAT(2) ... #include #include int stat(const char *path, struct stat *sb) ... I believe that posix and/or ANSI-C (now ISO-C, soon to be C9x) requires that name space polution be limited in what sys/stat.h can cause to be defined. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message