aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver (follow)
Commit message (Collapse)AuthorAgeFilesLines
* everything except mds-kkbd and mds-vt compiles with musl; mds-kkbd and mds-vt does not because they require <linux/> headersMattias Andrée2015-08-282-5/+15
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add pkg-config files and soname to libs and versioned so filesMattias Andrée2015-08-251-0/+9
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + attributesMattias Andrée2015-08-2512-31/+133
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* introduce the `Origin command`-headerMattias Andrée2015-08-242-19/+32
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* hash-list: styleMattias Andrée2015-08-241-10/+10
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* style + error messages should include message id + fix buffer overflowMattias Andrée2015-08-242-40/+33
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* libmdsserver: styleMattias Andrée2015-08-241-13/+13
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* hash list optimisationMattias Andrée2015-08-241-21/+96
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* info: construct_error_message and send_errorMattias Andrée2015-08-241-2/+0
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* error transmissionsMattias Andrée2015-08-232-0/+207
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* signal handlers that return should not modify errnoMattias Andrée2015-08-231-0/+17
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* ensure that all PF_ and AF_ aliases exists if any existMattias Andrée2015-08-221-0/+43
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* typo + mds-colour: print colour list on SIGINFOMattias Andrée2015-08-221-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add and use xclose and xfclose, we do not want close or fclose to be ignored because a singal interrupts it.Mattias Andrée2015-08-211-5/+54
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + info: hash listMattias Andrée2015-08-201-65/+95
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* work on mds-colour and list alternative to hash tableMattias Andrée2015-08-193-2/+486
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add strict_ato* for all precise integer types, for size_t, ssize_t, and integer types that have keywordsMattias Andrée2015-08-192-0/+409
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* use CLOCK_MONOTONIC if CLOCK_MONOTONIC_RAW is not definedMattias Andrée2015-08-191-0/+6
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add strict_atoj and strict_atoujMattias Andrée2015-08-192-2/+117
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* put full_send in libmdsserver, clients that only has one socket uses a macro to remove the socket parameterMattias Andrée2015-08-192-0/+37
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* there is no longer any need for prepare_reexec to be canned immediatelyMattias Andrée2015-07-121-3/+0
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* fix race condition in prepare_reexecMattias Andrée2015-07-121-0/+4
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m doc + iprint and iprintf macros + siginfo on mds, mds-vt and mds-respawnMattias Andrée2015-04-181-0/+27
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* document siginfo and add it to macros.hMattias Andrée2015-04-121-0/+9
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* bump yearMattias Andrée2015-02-1317-17/+17
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mMattias Andrée2014-12-111-0/+13
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mMattias Andrée2014-12-101-1/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* make it easier to track memory allocationsMattias Andrée2014-12-101-3/+101
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add xmemdup macroMattias Andrée2014-12-105-54/+29
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* no more direct allocations, always use macros, unless using allocaMattias Andrée2014-12-104-43/+69
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* typoMattias Andrée2014-12-101-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* merge track-errors and resolve conflictMattias Andrée2014-12-097-106/+135
|\ | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
| * make sure errno is not changed during fail_ifMattias Andrée2014-12-091-0/+2
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
| * make exit_if easier on the syntaxMattias Andrée2014-12-091-1/+1
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
| * make fail_if friendlier to complex if-statementsMattias Andrée2014-12-091-4/+4
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
| * do no print whence an error occurred if it is EMSGSIZE, ECONNRESET or EINTR, those are not real errors, just abnormalitiesMattias Andrée2014-12-091-3/+9
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
| * with a few exceptions and some remaining files, never return directly on failure, always goto fail by invoking fail_ifMattias Andrée2014-12-086-84/+99
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
| * rename pfail to failMattias Andrée2014-12-085-7/+7
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
| * m + make sure we never lose errnoMattias Andrée2014-12-082-3/+9
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
| * no more goto failMattias Andrée2014-12-083-19/+17
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
| * whenever fail_if gotos to the failure clause, print whenceMattias Andrée2014-12-081-2/+4
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* | improve with_mutex and with_mutex_if alsoMattias Andrée2014-12-091-8/+22
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* | make some macros easiler on the syntaxMattias Andrée2014-12-092-42/+43
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* | typoMattias Andrée2014-12-081-2/+2
|/ | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* fail_if supports sequences without being double bracketedMattias Andrée2014-12-071-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mds-kbdc: m + function callingMattias Andrée2014-12-061-6/+5
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* Starting on some reworkMattias Andrée2014-11-221-0/+13
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + make sure the code ends with a new lineMattias Andrée2014-09-281-0/+14
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* make derp + sed config.hMattias Andrée2014-09-261-74/+26
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* SIGRTMAX is used internally by valgrindMattias Andrée2014-09-201-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>