/shark/tags/rel_0_5/include/sys/stat.h |
---|
33,6 → 33,8 |
# include <time.h> /* For time_t. */ |
#endif |
#include "ll/sys/cdefs.h" |
/* The Single Unix specification says that some more types are |
available here. */ |
__DJ_dev_t |
/shark/tags/rel_0_5/include/sys/utsname.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: utsname.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: utsname.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:41:04 $ |
------------ |
utsname.h |
53,6 → 53,10 |
#ifndef __SYS_UTSNAME_H__ |
#define __SYS_UTSNAME_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
struct utsname { |
char machine[18]; |
char nodename[8]; |
63,4 → 67,5 |
int uname(struct utsname *name); |
__END_DECLS |
#endif |
/shark/tags/rel_0_5/include/sys/sysmacro.h |
---|
19,7 → 19,10 |
#ifndef _SYS_SYSMACROS_H |
#define _SYS_SYSMACROS_H 1 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
_ |
/* For compatibility we provide alternative names. |
The problem here is that compilers other than GCC probably don't |
28,4 → 31,5 |
#define minor(dev) ((int)((dev) & 0xff)) |
#define makedev(major, minor) (((major) << 8) | (minor)) |
__END_DECLS |
#endif /* sys/sysmacros.h */ |
/shark/tags/rel_0_5/include/sys/mount.h |
---|
27,7 → 27,10 |
#include <sys/types.h> |
#include <fs/mount.h> |
#include <fs/fsind.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
dev_t fdevice __P ((char *device_name)); |
int mount __P ((dev_t device, u_int8_t fsind, |
35,4 → 38,5 |
int umount __P ((dev_t device)); |
__END_DECLS |
#endif |
/shark/tags/rel_0_5/include/sys/mutex.h |
---|
25,11 → 25,11 |
***************************************/ |
/* |
* CVS : $Id: mutex.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: mutex.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:41:04 $ |
*/ |
/* |
74,7 → 74,10 |
#include <h/sys/kern.h> |
#include <h/sys/const.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ a mutex object +*/ |
typedef SEM mutex_t; |
95,5 → 98,6 |
/*+ Unlock a mutex +*/ |
#define mutex_unlock(ptr) { sem_signal(*(ptr)); } |
__END_DECLS |
#endif |
/shark/tags/rel_0_5/include/sys/types.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: types.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: types.h,v 1.3 2003-03-17 09:18:55 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-17 09:18:55 $ |
------------ |
**/ |
56,16 → 56,14 |
#define __SYS_TYPES_H__ |
#include <features.h> |
#ifdef __cplusplus |
extern "C" { |
#endif |
#include <kernel/types.h> |
#include <kernel/descr.h> |
#include <bits/types.h> |
#include <sys/htypes.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
__DJ_dev_t |
#undef __DJ_dev_t |
99,9 → 97,13 |
#undef __DJ_uid_t |
#define __DJ_uid_t |
__END_DECLS |
// for sched_param |
#include <sched.h> |
__BEGIN_DECLS |
typedef struct { |
// This fields are specified by the posix standard, 13.4.1 |
int contentionscope; |
152,14 → 154,11 |
#endif /* !_POSIX_SOURCE */ |
#ifdef __cplusplus |
} |
#endif |
/* -- */ |
typedef __u_quad_t u_quad_t; |
typedef __quad_t quad_t; |
__END_DECLS |
#endif /* !__dj_include_sys_types_h_ */ |