res_getname.c File Reference

#include <rsbac/getname.h>
#include <rsbac/res_getname.h>
#include <rsbac/helpers.h>
#include <rsbac/error.h>
#include <string.h>

Go to the source code of this file.

Functions

char * get_res_name (char *name, u_int value)
int get_res_nr (const char *name)

Variables

static char res_list [RSBAC_RES_MAX+2][8]


Function Documentation

char* get_res_name char *  name,
u_int  value
 

Definition at line 34 of file res_getname.c.

References NULL, res_list, and RSBAC_RES_MAX.

int get_res_nr const char *  name  ) 
 

Definition at line 46 of file res_getname.c.

References res_list, RSBAC_RES_MAX, and RSBAC_RES_NONE.


Variable Documentation

char res_list[RSBAC_RES_MAX+2][8] [static]
 

Initial value:

 {
   "cpu",
   "fsize",
   "data",
   "stack",
   "core",
   "rss",
   "nproc",
   "nofile",
   "memlock",
   "as",
   "locks",
   "NONE" }

Definition at line 18 of file res_getname.c.

Referenced by get_res_name(), and get_res_nr().


Generated on Fri Jun 17 09:45:30 2005 for RSBAC by  doxygen 1.4.2