File:  [ELWIX - Embedded LightWeight unIX -] / suX / inc / defs.h
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Tue Apr 9 15:59:44 2013 UTC (11 years, 2 months ago) by misho
Branches: MAIN
CVS tags: sux3_2, sux3_1, SUX3_1, SUX3_0, HEAD
version 3.0

    1: /*************************************************************************
    2:  * (C) 2011 AITNET - Sofia/Bulgaria - <office@aitbg.com>
    3:  *  by Michael Pounov <misho@aitbg.com>
    4:  *
    5:  * $Author: misho $
    6:  * $Id: defs.h,v 1.3 2013/04/09 15:59:44 misho Exp $
    7:  *
    8:  *************************************************************************/
    9: #ifndef __DEFS_H
   10: #define __DEFS_H
   11: 
   12: 
   13: #define STRSIZ		256
   14: 
   15: #define DEFAULT_CONFIG	"/etc/suX.conf"
   16: #define DEFAULT_CMD	"!/bin/sh -c"
   17: #define DEFAULT_LOG	"/var/log/suX.log"
   18: 
   19: #ifndef PACKAGE_NAME
   20: #define PACKAGE_NAME	"suX"
   21: #endif
   22: 
   23: #define SUX_GET_UID	0x1
   24: #define SUX_GET_GID	0x2
   25: #define SUX_GET_PRIO	0x4
   26: #define SUX_GET_DIR	0x8
   27: #define SUX_GET_FORCE	0x80
   28: 
   29: 
   30: struct tagProc {
   31: 	ait_val_t	proc_uid;
   32: 	ait_val_t	proc_gid;
   33: 	ait_val_t	proc_prio;
   34: 	ait_val_t	proc_class;
   35: 	ait_val_t	proc_dir;
   36: 	ait_val_t	proc_name;
   37: 	ait_val_t	proc_cmd;
   38: };
   39: 
   40: 
   41: extern char **environ;
   42: extern cfg_root_t cfg;
   43: extern int Verbose;
   44: extern struct tagProc proc;
   45: extern FILE *lf;
   46: 
   47: 
   48: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>