Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 1999 11:57:28 +0930 (CST)
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Ming-I Hsieh <mihs@wm28.csie.ncu.edu.tw>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   RE: Why not let "sys/stat.h" include "sys/types.h"?
Message-ID:  <XFMail.990615115728.doconnor@gsoft.com.au>
In-Reply-To: <3765B7DC.E87AD77C@wm28.csie.ncu.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help

On 15-Jun-99 Ming-I Hsieh wrote:
>  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 you're supposed to know what you need when you use certain things..

As the stat(2) man page says, you need to include both <sys/types.h> and
<sys/stat.h>

---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990615115728.doconnor>