From eb11b67370ab6acec53f88af085b91c4e2f64f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 20 Aug 2002 11:10:51 +0000 Subject: [PATCH] Added a preliminary sys/types.h that just includes ktypes.h for now. Changed other headers to include sys/types.h rather than ktypes.h. Added a license reference at the beginning of those files. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@840 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/dirent.h | 13 ++++--------- headers/posix/fcntl.h | 6 ++++-- headers/posix/sys/param.h | 3 +++ headers/posix/sys/types.h | 2 ++ headers/posix/unistd.h | 4 +--- 5 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 headers/posix/sys/types.h diff --git a/headers/posix/dirent.h b/headers/posix/dirent.h index 72c890f01a..0ff63074e3 100644 --- a/headers/posix/dirent.h +++ b/headers/posix/dirent.h @@ -1,15 +1,10 @@ -/** - * @file dirent.h - * @brief File Control functions and definitions - */ - #ifndef _DIRENT_H #define _DIRENT_H +/* +** Distributed under the terms of the OpenBeOS License. +*/ -// ToDo: should really be -// This file should reside in headers/posix, not here... -// needs ino_t (int64), and dev_t (long) -#include +#include typedef struct dirent { diff --git a/headers/posix/fcntl.h b/headers/posix/fcntl.h index 7b30ec75c3..c94368435d 100644 --- a/headers/posix/fcntl.h +++ b/headers/posix/fcntl.h @@ -1,8 +1,10 @@ #ifndef _FCNTL_H #define _FCNTL_H +/* +** Distributed under the terms of the OpenBeOS License. +*/ -//#include /* for mode_t */ -#include /* ToDo: remove me */ +#include #include /* commands that can be passed to fcntl */ diff --git a/headers/posix/sys/param.h b/headers/posix/sys/param.h index 314deb5f38..05d42aad51 100644 --- a/headers/posix/sys/param.h +++ b/headers/posix/sys/param.h @@ -1,5 +1,8 @@ #ifndef _SYS_PARAM_H #define _SYS_PARAM_H +/* +** Distributed under the terms of the OpenBeOS License. +*/ #include diff --git a/headers/posix/sys/types.h b/headers/posix/sys/types.h new file mode 100644 index 0000000000..92992b197f --- /dev/null +++ b/headers/posix/sys/types.h @@ -0,0 +1,2 @@ +// ToDo: fix me! +#include diff --git a/headers/posix/unistd.h b/headers/posix/unistd.h index cf8220c1a1..44f901ec2d 100644 --- a/headers/posix/unistd.h +++ b/headers/posix/unistd.h @@ -5,9 +5,7 @@ */ #include -// ToDo: fix ktypes issue... -#include -//#include +#include #ifdef __cplusplus extern "C" {