aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver (follow)
Commit message (Collapse)AuthorAgeFilesLines
* If send fails with EPIPE, set errno to ECONNRESET insteadMattias Andrée2016-08-061-0/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* mMattias Andrée2016-07-151-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix probable bufMattias Andrée2016-07-111-4/+4
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix bugMattias Andrée2016-07-111-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Use *_MAX instead of __WORDSIZEMattias Andrée2016-07-114-23/+18
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix new GCC warningsMattias Andrée2016-07-104-3/+36
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Bump yearMattias Andrée2016-07-0918-18/+18
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* mMattias Andrée2015-10-111-2/+4
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* Whilst POSIX leaves it explicitly unspecify whether close(2) closes the fildes on interruption, Linux (and possibly some other kernels) specify ↵Mattias Andrée2015-10-111-8/+16
| | | | | | that it does close. Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add libmds_messageMattias Andrée2015-09-041-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* how did that get thereMattias Andrée2015-09-031-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* info: strendMattias Andrée2015-09-031-2/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mds-kbdc: minor optimisationMattias Andrée2015-09-011-0/+13
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* 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>