Changeset View
Changeset View
Standalone View
Standalone View
include/door.h
- This file was added.
#ifndef _DOOR_H_ | ||||||||||
#define _DOOR_H_ | ||||||||||
#include <sys/types.h> | ||||||||||
#include <sys/door.h> | ||||||||||
typedef u_int uint_t; | ||||||||||
typedef void *(server_procedure)( | ||||||||||
void *udata, char *argp, size_t arg_size, door_desc_t *dp, u_int n_desc); | ||||||||||
khngUnsubmitted Done Inline Actions
khng: | ||||||||||
int door_create(server_procedure *procedure, void *udata, u_int attributes); | ||||||||||
int door_call(int fd, door_arg_t *args); | ||||||||||
int door_return( | ||||||||||
char *data_ptr, size_t data_size, door_desc_t *desc, size_t num_desc); | ||||||||||
int door_attach(int fd, const char *path); | ||||||||||
int door_detach(const char *path); | ||||||||||
int door_revoke(int fd); | ||||||||||
int door_info(int fd, struct door_info *info); | ||||||||||
int door_getparam(int fd, int param, size_t *out); | ||||||||||
int door_setparam(int fd, int param, size_t val); | ||||||||||
int door_bind(int did); | ||||||||||
int door_unbind(void); | ||||||||||
typedef void door_server_func_t(door_info_t *); | ||||||||||
door_server_func_t *door_server_create(door_server_func_t *); | ||||||||||
khngUnsubmitted Done Inline Actions
khng: | ||||||||||
/* Solaris compatibility */ | ||||||||||
#define fattach(fd, path) door_attach((fd), (path)) | ||||||||||
#define fdetach(path) door_detach((path)) | ||||||||||
#endif /* _DOOR_H_ */ |