File:  [ELWIX - Embedded LightWeight unIX -] / suX / inc / defs.h
Revision 1.1.1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Fri May 20 16:07:04 2011 UTC (13 years, 2 months ago) by misho
Branches: sux2_0
Diff to: branchpoint 1.1.1.1: preferred, unified
added logfile

    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.1.1.1.2.1 2011/05/20 16:07:04 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: 
   24: struct tagProc {
   25: 	short	proc_uid;
   26: 	short	proc_gid;
   27: 	int	proc_prio;
   28: 	char	proc_class[STRSIZ];
   29: 	char	proc_dir[MAXPATHLEN];
   30: 	char	proc_name[MAXPATHLEN];
   31: 	char	proc_cmd[MAXPATHLEN];
   32: };
   33: 
   34: 
   35: extern char **environ;
   36: extern sl_config cfg;
   37: extern int Verbose;
   38: extern struct tagProc proc;
   39: 
   40: 
   41: #endif

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