summaryrefslogtreecommitdiff
path: root/tests/daemon/README
blob: e3f70cba8cd678e4565ad68d00638aa08a56da51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This example serves as a template for writting your own daemons.

command line parser
-------------------

This test needs 'gengetopt' to parse the command line arguments of the daemon.

Get it from http://www.gnu.org/software/gengetopt/gengetopt.html (many
distributions package a far too old version!) when you encounter problems.

A native Windows version is available on
http://gnuwin32.sourceforge.net/packages/gengetopt.htm

This by no means implies that you are forced to use gengetopt together with
WolfBones, you can as well write your own parser, use getopt, getopt_long,
use popt or something different.

gengetopt is not localized, but so is no getopt I know. Adding
gettext/libintl to getopt (which lives in the C-library for historical
reasons) would introduce a libc to libintl library dependency, not good!

Alternative parsing libraries:
- http://argtable.sourceforge.net/
- popt from RPM, http://rpm5.org/files/popt/