aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver/util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Work on changing styleMattias Andrée2017-11-051-432/+435
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Update year and e-mail addressMattias Andrée2017-11-051-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* 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>
* Fix new GCC warningsMattias Andrée2016-07-101-0/+10
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Bump yearMattias Andrée2016-07-091-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* introduce the `Origin command`-headerMattias Andrée2015-08-241-13/+21
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* style + error messages should include message id + fix buffer overflowMattias Andrée2015-08-241-37/+26
| | | | 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>
* error transmissionsMattias Andrée2015-08-231-0/+152
| | | | 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-191-0/+221
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add strict_atoj and strict_atoujMattias Andrée2015-08-191-0/+95
| | | | 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-191-0/+25
| | | | 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>
* bump yearMattias Andrée2015-02-131-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* no more direct allocations, always use macros, unless using allocaMattias Andrée2014-12-101-2/+1
| | | | 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-081-21/+20
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* rename pfail to failMattias Andrée2014-12-081-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* no more goto failMattias Andrée2014-12-081-3/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add verify_utf8Mattias Andrée2014-09-201-0/+77
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* typoMattias Andrée2014-08-261-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mMattias Andrée2014-08-261-1/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* full_read returns lengthMattias Andrée2014-08-231-14/+19
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mMattias Andrée2014-08-121-4/+4
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* macros for ato* with castMattias Andrée2014-08-121-3/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* the kernel messes with /proc/*/exe (security precaution?), so we read /proc/self/exec when we start the serverMattias Andrée2014-08-111-11/+46
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add fork_for_safety option + beginning of kernel-based keyboardMattias Andrée2014-08-111-0/+39
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* the rest of the clipboardMattias Andrée2014-08-031-0/+25
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* beginning of mds-respawnMattias Andrée2014-06-071-3/+3
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* reduce code complexityMattias Andrée2014-05-181-2/+26
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mMattias Andrée2014-05-161-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* fix dumb-client and memory errorsMattias Andrée2014-05-141-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m fixMattias Andrée2014-05-121-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + add full_write and add full_readMattias Andrée2014-05-081-0/+72
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* use more macros and do not du null-check before free:ing, free does that for usMattias Andrée2014-05-071-0/+27
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* derpMattias Andrée2014-05-071-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* miscMattias Andrée2014-05-071-0/+39
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add xsigactionMattias Andrée2014-05-061-0/+26
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add util.cMattias Andrée2014-05-061-0/+82
Signed-off-by: Mattias Andrée <maandree@operamail.com>