aboutsummaryrefslogtreecommitdiff
path: root/src/util/service.c
AgeCommit message (Collapse)Author
2012-12-13- osx fixesharsha
git-svn-id: https://gnunet.org/svn/gnunet@25450 140774ce-b5e7-0310-ab8b-a85725594a96
2012-11-19Hardcode svn revision in compiled binariesLRN
git-svn-id: https://gnunet.org/svn/gnunet@25059 140774ce-b5e7-0310-ab8b-a85725594a96
2012-11-05-allow config-less services to rungrothoff
git-svn-id: https://gnunet.org/svn/gnunet@24733 140774ce-b5e7-0310-ab8b-a85725594a96
2012-09-28Passing -v or -h options to a command no longer returns error codebartpolot
git-svn-id: https://gnunet.org/svn/gnunet@24098 140774ce-b5e7-0310-ab8b-a85725594a96
2012-09-03always allow rootgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@23570 140774ce-b5e7-0310-ab8b-a85725594a96
2012-07-15-fixbuildgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@22692 140774ce-b5e7-0310-ab8b-a85725594a96
2012-07-15-adding support for heap stats gaugeringgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@22689 140774ce-b5e7-0310-ab8b-a85725594a96
2012-06-22-print switch targetgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@22198 140774ce-b5e7-0310-ab8b-a85725594a96
2012-06-20-fixing #2439grothoff
git-svn-id: https://gnunet.org/svn/gnunet@22170 140774ce-b5e7-0310-ab8b-a85725594a96
2012-06-09-use human-readable error messagegrothoff
git-svn-id: https://gnunet.org/svn/gnunet@21824 140774ce-b5e7-0310-ab8b-a85725594a96
2012-05-30speedup mechanism to manipulate gnunet timewachs
git-svn-id: https://gnunet.org/svn/gnunet@21646 140774ce-b5e7-0310-ab8b-a85725594a96
2012-04-25-fixesgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@21160 140774ce-b5e7-0310-ab8b-a85725594a96
2012-04-25-fixesgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@21158 140774ce-b5e7-0310-ab8b-a85725594a96
2012-04-25-LRN: misc patches / fixesgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@21152 140774ce-b5e7-0310-ab8b-a85725594a96
2012-04-22introducing soft shutdown concept for services; during soft shutdown, ↵grothoff
services that are still managing non-monitor clients continue to run until those clients disconnect; however, the services do stop to accept new connections (will stop listening); soft shutdown is now used by ats, transport, peerinfo, namestore and most importantly statistics; this should fix #2197 git-svn-id: https://gnunet.org/svn/gnunet@21075 140774ce-b5e7-0310-ab8b-a85725594a96
2012-04-22-improving docgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@21073 140774ce-b5e7-0310-ab8b-a85725594a96
2012-04-21-misc offline hacking / code cleanup in utilgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@21057 140774ce-b5e7-0310-ab8b-a85725594a96
2012-03-29-fix printinggrothoff
git-svn-id: https://gnunet.org/svn/gnunet@20806 140774ce-b5e7-0310-ab8b-a85725594a96
2012-03-24-UID match is sufficient if GID match is requiredgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@20745 140774ce-b5e7-0310-ab8b-a85725594a96
2012-03-11-LRN: use plibc SSCANF instead of sscanfgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@20443 140774ce-b5e7-0310-ab8b-a85725594a96
2012-01-13improving code and build system to be in line with gnunet access control ↵grothoff
model for services as described at https://gnunet.org/gnunet-access-control-model git-svn-id: https://gnunet.org/svn/gnunet@19129 140774ce-b5e7-0310-ab8b-a85725594a96
2011-12-30-LRN: use FOPEN/CLOSE instead of fopen/close - #2051grothoff
git-svn-id: https://gnunet.org/svn/gnunet@18856 140774ce-b5e7-0310-ab8b-a85725594a96
2011-12-08-LRN fix deallocationgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18521 140774ce-b5e7-0310-ab8b-a85725594a96
2011-12-08-LRN: misc. minor fixesgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18519 140774ce-b5e7-0310-ab8b-a85725594a96
2011-12-06Implement passing sockets in IPC on W32 (#1975)grothoff
git-svn-id: https://gnunet.org/svn/gnunet@18473 140774ce-b5e7-0310-ab8b-a85725594a96
2011-11-29-fixing indentationgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18394 140774ce-b5e7-0310-ab8b-a85725594a96
2011-11-28-document clock skew variable a bit moregrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18347 140774ce-b5e7-0310-ab8b-a85725594a96
2011-11-04curly wars / auto-indentationgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18000 140774ce-b5e7-0310-ab8b-a85725594a96
2011-10-11converting to GNUNET_LOG_from*grothoff
git-svn-id: https://gnunet.org/svn/gnunet@17362 140774ce-b5e7-0310-ab8b-a85725594a96
2011-10-04LRN: Use GNUNET_EXTRA_LOGGING to manage compile-time logging callsgrothoff
(#1805). git-svn-id: https://gnunet.org/svn/gnunet@17173 140774ce-b5e7-0310-ab8b-a85725594a96
2011-10-04LRN's big logging rewrite (#1805):grothoff
* GNUNET_BOTTOM_LOGLEVEL and GNUNET_TOP_LOGLEVEL set global levels Use bottom level to force logging to be more verbose than configured Use top level to force logging to be less verbose than configured Obviously, bottom <= top * GNUNET_LOG sets per-component levels GNUNET_LOG looks like this: name[/bottom[/top]]/... name starts with a non-digit character, must not include '/' bottom and top must consist only of digits, or be empty a description is only used if it matches the component exactly as a special exception (for now) the name '*' matches any component per-component loglevels override global loglevels global levels override whatever is given via arguments or in config Examples: test_client/8/8/ run test_client with DEBUG level (usually leads to a timeout, by the way) */2/2/core/8/8/transport/4/4 run everything with WARNING, core - with DEBUG, transport - with INFO *//1/peerinfo/4/ run everything with top loglevel ERROR, global/configured bottom loglevel, and peerinfo - with bottom loglevel INFO and global/configured top loglevel statistics/ does nothing * Added GNUNET_ERROR_TYPE_UNSPECIFIED enum value, to hold -1. Its corresponding string is NULL. * Changed the logger calls as Grothoff suggested - to use static int to hold the result of runtime evaluation of logability. Logging can be unconditionally disabled in advance by defining GNUNET_LOG_CALL_STATUS to 0, and enabled in advance by defining it to 1. * Added GNUNET_CULL_LOGGING, which, if defined, completely culls out all logging calls at compile time. * Log definition parsing is only done once, results are cached. * Changed definition format, now it looks like this: [component|*|];[file|*|];[function|*|];[from_line[-to_line]];level/[component...] All field separators are mandatory (but some fields could be empty or be '*'). Line definition must be either empty or "number" or "number-number" Level definition must not be empty, and is a string representation of the level (i.e. DEBUG, WARNING, INFO, etc). Definition entry must end with a slash, whether or not there's another entry after it. File name is matched to the end of __FILE__, which allows file name to match not only the base name, but also directories leading to it. * Removed default WARNING loglevel from program and service utility code. Now they default to NULL (UNSPECIFIED) level, which can be overriden by GNUNET_LOG definition, if no level is specified via config or commandline. Log levels from config or commandline are overriden by GNUNET_FORCE_LOG. If GNUNET_*LOG are undefined, and no levels came from config or commandline, logger internally defaults to WARNING level. Add --enable-logging configure option git-svn-id: https://gnunet.org/svn/gnunet@17162 140774ce-b5e7-0310-ab8b-a85725594a96
2011-09-18better error handlinggrothoff
git-svn-id: https://gnunet.org/svn/gnunet@16922 140774ce-b5e7-0310-ab8b-a85725594a96
2011-08-29run indent twice, it alternates between two 'canonical' forms, also run ↵grothoff
whitespace remover git-svn-id: https://gnunet.org/svn/gnunet@16620 140774ce-b5e7-0310-ab8b-a85725594a96
2011-08-15indentationgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@16583 140774ce-b5e7-0310-ab8b-a85725594a96
2011-08-15indentationgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@16581 140774ce-b5e7-0310-ab8b-a85725594a96
2011-07-28set clock offsetnevans
git-svn-id: https://gnunet.org/svn/gnunet@16256 140774ce-b5e7-0310-ab8b-a85725594a96
2011-07-26start servicenevans
git-svn-id: https://gnunet.org/svn/gnunet@16208 140774ce-b5e7-0310-ab8b-a85725594a96
2011-07-25clockskew codenevans
git-svn-id: https://gnunet.org/svn/gnunet@16166 140774ce-b5e7-0310-ab8b-a85725594a96
2011-07-01fixes mantis 1726: wrong number of addresses was returned when BINDTO is usedwachs
git-svn-id: https://gnunet.org/svn/gnunet@15815 140774ce-b5e7-0310-ab8b-a85725594a96
2011-06-20helping w32grothoff
git-svn-id: https://gnunet.org/svn/gnunet@15727 140774ce-b5e7-0310-ab8b-a85725594a96
2011-06-20avoid duplicate bindsgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@15721 140774ce-b5e7-0310-ab8b-a85725594a96
2011-06-16fixgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@15651 140774ce-b5e7-0310-ab8b-a85725594a96
2011-06-16fixgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@15650 140774ce-b5e7-0310-ab8b-a85725594a96
2011-05-25fixthefixgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@15314 140774ce-b5e7-0310-ab8b-a85725594a96
2011-05-25set sxn_len on FreeBSD where requiredgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@15313 140774ce-b5e7-0310-ab8b-a85725594a96
2011-05-25fix: unlinking unix domain sockets on freebsdwachs
git-svn-id: https://gnunet.org/svn/gnunet@15306 140774ce-b5e7-0310-ab8b-a85725594a96
2011-05-25warn if this happensgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@15291 140774ce-b5e7-0310-ab8b-a85725594a96
2011-02-23fix leakgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@14494 140774ce-b5e7-0310-ab8b-a85725594a96
2011-02-23fix leakgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@14493 140774ce-b5e7-0310-ab8b-a85725594a96
2011-02-14don't use totally empty unix pathnevans
git-svn-id: https://gnunet.org/svn/gnunet@14400 140774ce-b5e7-0310-ab8b-a85725594a96