* Fixed lots of warnings (there are still a lot left).

* Got rid of the PARAMS_AS_STRING stuff (it's always defined, anyway).
* Will remove BeOS support, too, in the future.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22644 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-10-21 20:14:32 +00:00
parent 15ab0bcf01
commit 6f1dac37f9
2 changed files with 404 additions and 483 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
#ifndef _NFS_ADD_ON_H
#define _NFS_ADD_ON_H
/* wrappers */
@ -22,7 +21,6 @@ typedef dev_t nspace_id;
typedef int socklen_t;
#endif
#include "RPCPendingCalls.h"
#include "XDROutPacket.h"
#include "XDRInPacket.h"
@ -32,8 +30,8 @@ typedef int socklen_t;
#include <sys/stat.h>
#include <SupportDefs.h>
struct mount_nfs_params
{
struct mount_nfs_params {
unsigned int serverIP;
char *server;
char *_export;
@ -42,15 +40,13 @@ struct mount_nfs_params
char *hostname;
};
struct fs_node
{
struct fs_node {
ino_t vnid;
struct nfs_fhandle fhandle;
struct fs_node *next;
};
struct fs_nspace
{
struct fs_nspace {
nspace_id nsid;
thread_id tid;
@ -89,60 +85,10 @@ typedef struct nfs_cookie nfs_cookie;
typedef struct fs_file_cookie fs_file_cookie;
typedef struct nfs_fhandle nfs_fhandle;
#if 0
int fs_read_vnode(fs_nspace *ns, ino_t vnid, char r, fs_node **node);
int fs_write_vnode(fs_nspace *ns, fs_node *node, char r);
int fs_walk(fs_nspace *ns, fs_node *base, const char *file, char **newpath,
ino_t *vnid);
int fs_opendir(fs_nspace *ns, fs_node *node, nfs_cookie **cookie);
int fs_closedir(fs_nspace *ns, fs_node *node, nfs_cookie *cookie);
int fs_rewinddir(fs_nspace *ns, fs_node *node, nfs_cookie *cookie);
int fs_readdir(fs_nspace *ns, fs_node *node, nfs_cookie *cookie, long *num,
struct dirent *buf, size_t bufsize);
int fs_free_dircookie(fs_nspace *ns, fs_node *node, nfs_cookie *cookie);
int fs_rstat(fs_nspace *ns, fs_node *node, struct stat *);
int fs_mount(nspace_id nsid, const char *devname, ulong flags,
struct mount_nfs_params *parms, size_t len, fs_nspace **data, ino_t *vnid);
int fs_unmount(fs_nspace *ns);
int fs_rfsstat(fs_nspace *ns, struct fs_info *);
int fs_open(fs_nspace *ns, fs_node *node, int omode, fs_file_cookie **cookie);
int fs_close(fs_nspace *ns, fs_node *node, fs_file_cookie *cookie);
int fs_free_cookie(fs_nspace *ns, fs_node *node, fs_file_cookie *cookie);
int fs_read(fs_nspace *ns, fs_node *node, fs_file_cookie *cookie, off_t pos, void *buf,
size_t *len);
int fs_write(fs_nspace *ns, fs_node *node, fs_file_cookie *cookie, off_t pos,
const void *buf, size_t *len);
int fs_wstat(fs_nspace *ns, fs_node *node, struct stat *, long mask);
int fs_wfsstat(fs_nspace *ns, struct fs_info *, long mask);
int fs_create(fs_nspace *ns, fs_node *dir, const char *name,
int omode, int perms, ino_t *vnid, fs_file_cookie **cookie);
int fs_unlink(fs_nspace *ns, fs_node *dir, const char *name);
int fs_remove_vnode(fs_nspace *ns, fs_node *node, char r);
int fs_secure_vnode(fs_nspace *ns, fs_node *node);
int fs_mkdir(fs_nspace *ns, fs_node *dir, const char *name, int perms);
int fs_rename(fs_nspace *ns, fs_node *olddir, const char *oldname,
fs_node *newdir, const char *newname);
int fs_rmdir(fs_nspace *ns, fs_node *dir, const char *name);
int fs_readlink(fs_nspace *ns, fs_node *node, char *buf, size_t *bufsize);
int fs_symlink(fs_nspace *ns, fs_node *dir, const char *name,
const char *path);
#endif
status_t create_socket (fs_nspace *ns);
status_t init_postoffice (fs_nspace *ns);
void shutdown_postoffice (fs_nspace *ns);
status_t postoffice_func (fs_nspace *ns);
status_t create_socket(fs_nspace *ns);
status_t init_postoffice(fs_nspace *ns);
void shutdown_postoffice(fs_nspace *ns);
status_t postoffice_func(fs_nspace *ns);
extern uint8 *send_rpc_call(fs_nspace *ns, const struct sockaddr_in *addr, int32 prog, int32 vers, int32 proc, const struct XDROutPacket *packet);
extern bool is_successful_reply(struct XDRInPacket *reply);
@ -159,13 +105,10 @@ extern status_t nfs_getattr(fs_nspace *ns, const nfs_fhandle *fhandle, struct st
extern void insert_node(fs_nspace *ns, fs_node *node);
extern void remove_node(fs_nspace *ns, ino_t vnid);
extern int fs_access(void *ns, void *node, int mode);
enum
{
C_ERROR_STALE=B_ERRORS_END+1
enum {
C_ERROR_STALE = B_ERRORS_END + 1
};
#define USE_SYSTEM_AUTHENTICATION 1
#endif
#endif /* _NFS_ADD_ON_H */