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
This commit is contained in:
parent
12696848a1
commit
eb11b67370
@ -1,15 +1,10 @@
|
|||||||
/**
|
|
||||||
* @file dirent.h
|
|
||||||
* @brief File Control functions and definitions
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _DIRENT_H
|
#ifndef _DIRENT_H
|
||||||
#define _DIRENT_H
|
#define _DIRENT_H
|
||||||
|
/*
|
||||||
|
** Distributed under the terms of the OpenBeOS License.
|
||||||
|
*/
|
||||||
|
|
||||||
// ToDo: should really be <sys/types>
|
#include <sys/types.h>
|
||||||
// This file should reside in headers/posix, not here...
|
|
||||||
// needs ino_t (int64), and dev_t (long)
|
|
||||||
#include <ktypes.h>
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct dirent {
|
typedef struct dirent {
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
#ifndef _FCNTL_H
|
#ifndef _FCNTL_H
|
||||||
#define _FCNTL_H
|
#define _FCNTL_H
|
||||||
|
/*
|
||||||
|
** Distributed under the terms of the OpenBeOS License.
|
||||||
|
*/
|
||||||
|
|
||||||
//#include <sys/types.h> /* for mode_t */
|
#include <sys/types.h>
|
||||||
#include <ktypes.h> /* ToDo: remove me */
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
/* commands that can be passed to fcntl */
|
/* commands that can be passed to fcntl */
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#ifndef _SYS_PARAM_H
|
#ifndef _SYS_PARAM_H
|
||||||
#define _SYS_PARAM_H
|
#define _SYS_PARAM_H
|
||||||
|
/*
|
||||||
|
** Distributed under the terms of the OpenBeOS License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
2
headers/posix/sys/types.h
Normal file
2
headers/posix/sys/types.h
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// ToDo: fix me!
|
||||||
|
#include <ktypes.h>
|
@ -5,9 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <null.h>
|
#include <null.h>
|
||||||
// ToDo: fix ktypes issue...
|
#include <sys/types.h>
|
||||||
#include <ktypes.h>
|
|
||||||
//#include <sys/types.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
Loading…
Reference in New Issue
Block a user