~ubuntu-branches/ubuntu/breezy/cvsd/breezy

« back to all changes in this revision

Viewing changes to cfg.h

  • Committer: Bazaar Package Importer
  • Author(s): Arthur de Jong
  • Date: 2005-04-26 22:00:00 UTC
  • mfrom: (1.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050426220000-4jv1ah3wzkr0s2bf
Tags: 1.0.7
* improvements to the README
* fix bug in cvsd-buildroot correctly creating lib64 directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
   cfg.h - all the configurable options in cvsd
3
3
 
4
 
   Copyright (C) 2003 Arthur de Jong.
 
4
   Copyright (C) 2003, 2004 Arthur de Jong.
5
5
 
6
6
   This program is free software; you can redistribute it and/or modify
7
7
   it under the terms of the GNU General Public License as published by
25
25
 
26
26
#include <unistd.h>
27
27
#include <sys/types.h>
 
28
#ifdef USE_CAPABILITIES
 
29
#include <sys/capability.h>
 
30
#endif /* USE_CAPABILITIES */
28
31
 
29
32
/* values for uid and gid */
30
33
#define NOUID ((gid_t)-1)
31
34
#define NOGID ((gid_t)-1)
32
35
 
33
36
 
34
 
/* the index where to set CVSUMASK=<cvs_umask> in cfg->cvsenv */
35
 
#define CVSUMASK_IDX 2
 
37
/* the index where to set CVSUMASK=<cvs_umask> in cfg->cvsenv
 
38
   see also the static char *default_environment in cfg.c */
 
39
#define CVSUMASK_IDX 4
36
40
 
37
41
 
38
42
/* the addresses to listen on */
85
89
 
86
90
  /* the umask that should be used to create files */
87
91
  mode_t umask;
88
 
  
 
92
 
89
93
  /* TODO: limits (are currently stored in structures in reslimit.c)*/
90
94
 
 
95
#ifdef USE_CAPABILITIES
 
96
  /* the capabilities for cvs */
 
97
  cap_t capabilities;
 
98
#endif /* USE_CAPABILITIES */
 
99
 
91
100
  /* the addresses/ports that should be listened on */
92
101
  struct cvsd_addrs *addresses;
93
 
 
 
102
 
94
103
  /* the maximum number of connections to handle
95
104
     0: unlimited */
96
105
  int maxconnections;