Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 1996 05:02:15 GMT
From:      nnd@itfs.nsk.su (Nickolay N. Dudorov)
To:        current@freebsd.org
Subject:   Current <dirent.h>, <sys/types.h> and POSIX (?)
Message-ID:  <Dv17Br.6An@itfs.nsk.su>

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

	There are two (mainly identical) #include s in
current to deal with directory entries:

	<dirent.h> and
	<sys/dir.h>

Both of them require #include <sys/types.h> for compilation.

I was told (in qmail-beta mailing list) that by POSIX
it is not necessary to include <sys/types.h> to use
<dirent.h>.

Could someone POSIXly-impaired (:-) confirm that ?

BTW, in NetBSD-current(?) <dirent.h> contains
#include <sys/types.h> just before #include <sys/dirent.h>

(I see it in file with
/*      $NetBSD: dirent.h,v 1.10 1995/12/05 03:09:19 jtc Exp $ */
and
*       @dirent.h    8.2 (Berkeley) 7/28/94

and in FreeBSD-current there is
*       @dirent.h    8.1 (Berkeley) 6/8/93 )

	N.Dudorov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Dv17Br.6An>