Up to [cvs.netbsd.org] / pkgsrc / devel / libdaemon
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.2 / (download) - annotate - [select for diffs], Fri Mar 20 19:24:17 2009 UTC (3 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2012Q1-base,
pkgsrc-2012Q1,
pkgsrc-2011Q4-base,
pkgsrc-2011Q4,
pkgsrc-2011Q3-base,
pkgsrc-2011Q3,
pkgsrc-2011Q2-base,
pkgsrc-2011Q2,
pkgsrc-2011Q1-base,
pkgsrc-2011Q1,
pkgsrc-2010Q4-base,
pkgsrc-2010Q4,
pkgsrc-2010Q3-base,
pkgsrc-2010Q3,
pkgsrc-2010Q2-base,
pkgsrc-2010Q2,
pkgsrc-2010Q1-base,
pkgsrc-2010Q1,
pkgsrc-2009Q4-base,
pkgsrc-2009Q4,
pkgsrc-2009Q3-base,
pkgsrc-2009Q3,
pkgsrc-2009Q2-base,
pkgsrc-2009Q2,
pkgsrc-2009Q1-base,
pkgsrc-2009Q1,
HEAD
Changes since 1.1: +6 -13
lines
Diff to previous 1.1 (colored)
Simply and speed up buildlink3.mk files and processing. This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sat Dec 20 17:24:48 2008 UTC (3 years, 5 months ago) by ahoka
Branch: TNF
CVS Tags: pkgsrc-base,
pkgsrc-2008Q4-base,
pkgsrc-2008Q4
Changes since 1.1: +0 -0
lines
Diff to previous 1.1 (colored)
Import libdaemon-0.12 as devel/libdaemon. libdaemon is a lightweight C library that eases the writing of UNIX daemons. It consists of the following parts: * A wrapper around fork() which does the correct daemonization procedure of a process * A wrapper around syslog() for simpler and compatible log output to Syslog or STDERR * An API for writing PID files * An API for serializing UNIX signals into a pipe for usage with select() or poll() * An API for running subprocesses with STDOUT and STDERR redirected to syslog. APIs like these are used in most daemon software available. It is not that simple to get it done right and code duplication is not a goal.
Revision 1.1 / (download) - annotate - [select for diffs], Sat Dec 20 17:24:48 2008 UTC (3 years, 5 months ago) by ahoka
Branch: MAIN
Initial revision