head 1.8;
access;
symbols
OSSP_RC_0_7_3:1.8
OSSP_RC_0_7_2:1.8
OSSP_RC_0_7_1:1.8
OSSP_RC_ALPHA_06:1.5
OSSP_RC_EXBROKEN:1.5;
locks; strict;
comment @ * @;
1.8
date 2003.07.07.13.30.51; author ms; state Exp;
branches;
next 1.7;
1.7
date 2003.07.07.12.55.42; author ms; state Exp;
branches;
next 1.6;
1.6
date 2003.06.13.18.33.07; author ms; state Exp;
branches;
next 1.5;
1.5
date 2002.05.22.13.29.40; author ms; state Exp;
branches;
next 1.4;
1.4
date 2002.04.22.12.49.26; author ms; state Exp;
branches;
next 1.3;
1.3
date 2002.04.22.12.16.39; author ms; state Exp;
branches;
next 1.2;
1.2
date 2002.04.11.16.52.45; author ms; state Exp;
branches;
next 1.1;
1.1
date 2002.04.09.17.01.29; author ms; state Exp;
branches;
next ;
desc
@@
1.8
log
@More header corrections and improvements.
@
text
@/* OSSP rc - Run-Command Processor
** Copyright (c) 2002-2003 Ralf S. Engelschall
** Copyright (c) 2002-2003 Cable & Wireless Deutschland GmbH
** Copyright (c) 2002-2003 The OSSP Project
**
** This file is part of OSSP rc, a portable run-command processor
** which can be found at http://www.ossp.org/pkg/lib/rc/
**
** Permission to use, copy, modify, and distribute this software for
** any purpose with or without fee is hereby granted, provided that
** the above copyright notice and this permission notice appear in all
** copies.
**
** THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
** IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
** CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
** USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
** OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
** SUCH DAMAGE.
**
** rc_config.h: Run-Command Processor ISO C public header file
*/
#ifndef __OSSPRC_CONFIG_H__
#define __OSSPRC_CONFIG_H__
/* Available options and their values */
#define RC_HEADVAL 0 /* Unused */
#define RC_USE_VAL 1 /* Usage */
#define RC_DBG_VAL 2 /* Debug */
#define RC_VER_VAL 3 /* Version */
#define RC_EVL_VAL 4 /* Eval */
#define RC_HLP_VAL 5 /* Help */
#define RC_INF_VAL 6 /* Info */
#define RC_LBL_VAL 7 /* Label */
#define RC_PRN_VAL 8 /* Print */
#define RC_PAR_VAL 9 /* Parse names */
#define RC_SIL_VAL 10 /* Silent */
#define RC_RAW_VAL 11 /* Raw */
#define RC_VRB_VAL 12 /* Verbose */
#define RC_EXC_VAL 13 /* Exec */
#define RC_LOC_VAL 14 /* Locations */
#define RC_CNF_VAL 15 /* Conf file */
#define RC_FNC_VAL 16 /* Func file */
#define RC_QRY_VAL 17 /* Query */
#define RC_TMP_VAL 18 /* Temp dir */
#define RC_OWN_VAL 19 /* User name */
#define RC_GRP_VAL 20 /* Group name */
#define RC_MSK_VAL 21 /* Umask */
#define RC_ASS_VAL 22 /* Assign regex */
#define RC_DEF_VAL 23 /* Label regex */
#define RC_REF_VAL 24 /* Ref regex */
#define RC_PRM_VAL 25 /* Params regex */
#define RC_TRM_VAL 26 /* Terminal regex */
#define RC_NCF_VAL 27 /* Config name */
#define RC_CMN_VAL 28 /* Common name */
#define RC_DFL_VAL 29 /* Default name */
#define RC_ERR_VAL 30 /* Error name */
#define RC_NUMOPTS 31 /* Increment with each option addition */
#endif /* __OSSPRC_CONFIG_H__ */
@
1.7
log
@Correct and update copyrights and source headers.
@
text
@d1 1
a1 1
/* OSSP rc - Run-command processor
d6 1
a6 1
** This file is part of OSSP rc, a portable Run-command processor
d27 1
a27 1
** rc_config.h: Run-command processor ISO C public header file
@
1.6
log
@Sweeping cleanups. Reduced the analyzer to almost nothing. Removed unused
method prototypes. Added 'parse' mode option that doesn't work yet. Removed
procReadtmp. Change the way we build path names from the locations directory.
@
text
@d2 3
a4 3
** Copyright (c) 2002 Ralf S. Engelschall
** Copyright (c) 2002 Cable & Wireless Deutschland GmbH
** Copyright (c) 2002 The OSSP Project
@
1.5
log
@Fix the build, comment missing pieces, and synchronize throughout.
@
text
@d43 22
a64 21
#define RC_SIL_VAL 9 /* Silent */
#define RC_RAW_VAL 10 /* Raw */
#define RC_VRB_VAL 11 /* Verbose */
#define RC_EXC_VAL 12 /* Exec */
#define RC_LOC_VAL 13 /* Locations */
#define RC_CNF_VAL 14 /* Conf file */
#define RC_FNC_VAL 15 /* Func file */
#define RC_QRY_VAL 16 /* Query */
#define RC_TMP_VAL 17 /* Temp dir */
#define RC_OWN_VAL 18 /* User name */
#define RC_GRP_VAL 19 /* Group name */
#define RC_MSK_VAL 20 /* Umask */
#define RC_ASS_VAL 21 /* Assign regex */
#define RC_DEF_VAL 22 /* Label regex */
#define RC_REF_VAL 23 /* Ref regex */
#define RC_PRM_VAL 24 /* Params regex */
#define RC_TRM_VAL 25 /* Terminal regex */
#define RC_NCF_VAL 26 /* Config name */
#define RC_CMN_VAL 27 /* Common name */
#define RC_DFL_VAL 28 /* Default name */
#define RC_ERR_VAL 29 /* Error name */
d66 1
a66 1
#define RC_NUMOPTS 30 /* Increment with each option addition */
@
1.4
log
@Rearranged test commands and added comments to option identifiers.
@
text
@d50 1
a50 1
#define RC_QRY_VAL 16 /* Format */
@
1.3
log
@Configuration string parsing logic.
@
text
@d34 30
a63 30
#define RC_HEADVAL 0 /* Unused, as popt reserves 0 to return success */
#define RC_USE_VAL 1
#define RC_DBG_VAL 2
#define RC_VER_VAL 3
#define RC_EVL_VAL 4
#define RC_HLP_VAL 5
#define RC_INF_VAL 6
#define RC_LBL_VAL 7
#define RC_PRN_VAL 8
#define RC_SIL_VAL 9
#define RC_RAW_VAL 10
#define RC_VRB_VAL 11
#define RC_EXC_VAL 12
#define RC_LOC_VAL 13
#define RC_CNF_VAL 14
#define RC_FNC_VAL 15
#define RC_QRY_VAL 16
#define RC_TMP_VAL 17
#define RC_OWN_VAL 18
#define RC_GRP_VAL 19
#define RC_MSK_VAL 20
#define RC_ASS_VAL 21
#define RC_DEF_VAL 22
#define RC_REF_VAL 23
#define RC_PRM_VAL 24
#define RC_TRM_VAL 25
#define RC_NCF_VAL 26
#define RC_CMN_VAL 27
#define RC_DFL_VAL 28
#define RC_ERR_VAL 29
@
1.2
log
@Flush the toilet.
@
text
@d34 30
a63 29
#define RC_USE_VAL 0
#define RC_DBG_VAL 1
#define RC_VER_VAL 2
#define RC_EVL_VAL 3
#define RC_HLP_VAL 4
#define RC_INF_VAL 5
#define RC_LBL_VAL 6
#define RC_PRN_VAL 7
#define RC_SIL_VAL 8
#define RC_RAW_VAL 9
#define RC_VRB_VAL 10
#define RC_EXC_VAL 11
#define RC_LOC_VAL 12
#define RC_CNF_VAL 13
#define RC_FNC_VAL 14
#define RC_QRY_VAL 15
#define RC_TMP_VAL 16
#define RC_OWN_VAL 17
#define RC_GRP_VAL 18
#define RC_MSK_VAL 19
#define RC_ASS_VAL 20
#define RC_DEF_VAL 21
#define RC_REF_VAL 22
#define RC_PRM_VAL 23
#define RC_TRM_VAL 24
#define RC_NCF_VAL 25
#define RC_CMN_VAL 26
#define RC_DFL_VAL 27
#define RC_ERR_VAL 28
d65 1
a65 1
#define RC_NUMOPTS 29 /* Increment with each option addition */
@
1.1
log
@Add new configuration pieces.
@
text
@d27 1
a27 1
** rc_config.h: Run-command processor ISO C public API header file
d33 30
a62 1
#include "rc_cliopt.h" /* Command line option */
d64 1
a64 4
typedef struct { /* Main rc configuration storage */
rc_cliopt_t *pCliopt; /* Aggregate command line option */
int m_nLocks; /* Server locks, not thread-safe FIXME */
} rc_config_t;
@