Made the header C++ safe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4895 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,6 +1,15 @@
|
|||||||
|
#ifndef KPROTOS_H
|
||||||
|
#define KPROTOS_H
|
||||||
|
|
||||||
|
#include "myfs.h"
|
||||||
|
|
||||||
#define my_stat stat
|
#define my_stat stat
|
||||||
#define my_dirent dirent
|
#define my_dirent dirent
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
int sys_symlink(bool kernel, const char *oldpath, int nfd,
|
int sys_symlink(bool kernel, const char *oldpath, int nfd,
|
||||||
const char *newpath);
|
const char *newpath);
|
||||||
ssize_t sys_readlink(bool kernel, int fd, const char *path, char *buf,
|
ssize_t sys_readlink(bool kernel, int fd, const char *path, char *buf,
|
||||||
@@ -51,3 +60,9 @@ int sys_read_query(bool kernel, int fd, const char *path, void *cookie,struct di
|
|||||||
int init_vnode_layer(void);
|
int init_vnode_layer(void);
|
||||||
void *install_file_system(vnode_ops *ops, const char *name,
|
void *install_file_system(vnode_ops *ops, const char *name,
|
||||||
bool fixed, image_id aid);
|
bool fixed, image_id aid);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* KPROTOS_H */
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
#ifndef _LOCK_H
|
#ifndef _LOCK_H
|
||||||
#define _LOCK_H
|
#define _LOCK_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
//# define lock fsh_lock
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct lock lock;
|
typedef struct lock lock;
|
||||||
typedef struct mlock mlock;
|
typedef struct mlock mlock;
|
||||||
|
|
||||||
@@ -25,4 +30,8 @@ extern int free_mlock(mlock *l);
|
|||||||
#define LOCKM(l,cnt) acquire_sem_etc(l.s, cnt, 0, 0.0)
|
#define LOCKM(l,cnt) acquire_sem_etc(l.s, cnt, 0, 0.0)
|
||||||
#define UNLOCKM(l,cnt) release_sem_etc(l.s, cnt, 0)
|
#define UNLOCKM(l,cnt) release_sem_etc(l.s, cnt, 0)
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* _LOCK_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user