main.c File Reference

#include <libc.h>
#include <core.h>
#include <libtimer.h>
#include "propvar.h"

Defines

#define DEBUG_STORE   (1<<0)
#define DEBUG_FETCH   (1<<1)
#define DEBUG_MISC   (1<<2)
#define DEBUG_CAST   (1<<3)
#define DEBUG_ACCESS   (1<<4)
#define DEBUG   (DEBUG_CAST)
#define PROP_HSIZE   1021
#define PROP_USAGE   "usage: prop [-v]"

Functions

void prop_dump_i (char *s)
void sys_prop_dump (t_tcb *caller)
t_prop * prop_get (char *kbuf, int klen, struct s_ucred *ucred, u_int32_t prop_trust)
void prop_del (t_prop *prop)
int prop_access (t_prop *prop, struct s_ucred *ucred, int mode)
void sys_prop_store (t_tcb *caller)
void sys_prop_fetch (t_tcb *caller)
void sys_prop_update (t_tcb *caller)
void sys_prop_delete (t_tcb *caller)
void sys_prop_attach (t_tcb *caller)
void sys_prop_detach (t_tcb *caller)
void do_propsrv_syscall ()
void propsrv_syscall ()
void treat_dead (pid_t deadpid)
void signotify (int sig)
void sigalrm (int sig)
void propd_main ()
pid_t create_propd ()
void create_propsrv ()
int main (int argc, char **argv)

Variables

t_prop_list props [PROP_HSIZE]
pid_t notify_pid = (pid_t)-1
__cpu_simple_lock_t prop_lock

Define Documentation

#define DEBUG   (DEBUG_CAST)
 

#define DEBUG_ACCESS   (1<<4)
 

#define DEBUG_CAST   (1<<3)
 

#define DEBUG_FETCH   (1<<1)
 

#define DEBUG_MISC   (1<<2)
 

#define DEBUG_STORE   (1<<0)
 

#define PROP_HSIZE   1021
 

#define PROP_USAGE   "usage: prop [-v]"
 


Function Documentation

pid_t create_propd (   ) 
 

allocate a task for prop server

void create_propsrv (   ) 
 

allocate a task for prop server

void do_propsrv_syscall (   ) 
 

int main (  int  argc,
char **  argv
) 
 

int prop_access (  t_prop *  prop,
struct s_ucred *  ucred,
int  mode
) 
 

void prop_del (  t_prop *  prop  ) 
 

void prop_dump_i (  char *  s  ) 
 

t_prop* prop_get (  char *  kbuf,
int  klen,
struct s_ucred *  ucred,
u_int32_t  prop_trust
) 
 

void propd_main (   ) 
 

void propsrv_syscall (   ) 
 

void sigalrm (  int  sig  ) 
 

void signotify (  int  sig  ) 
 

void sys_prop_attach (  t_tcb *  caller  ) 
 

void sys_prop_delete (  t_tcb *  caller  ) 
 

void sys_prop_detach (  t_tcb *  caller  ) 
 

void sys_prop_dump (  t_tcb *  caller  ) 
 

void sys_prop_fetch (  t_tcb *  caller  ) 
 

void sys_prop_store (  t_tcb *  caller  ) 
 

void sys_prop_update (  t_tcb *  caller  ) 
 

void treat_dead (  pid_t  deadpid  ) 
 


Variable Documentation

pid_t notify_pid = (pid_t)-1
 

__cpu_simple_lock_t prop_lock
 

t_prop_list props[PROP_HSIZE]
 


Generated on Wed May 24 23:06:00 2006 for LSE/OS by  doxygen 1.4.6