aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver/macros.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-11-05Work on changing style, and an important typo fixMattias Andrée1-25/+24
Signed-off-by: Mattias Andrée <maandree@kth.se>
2017-03-29close_files: do not close the fd to the dir whilst readingMattias Andrée1-9/+12
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-10Fix new GCC warningsMattias Andrée1-1/+24
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-09Bump yearMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2015-10-11mMattias Andrée1-2/+4
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2015-10-11Whilst POSIX leaves it explicitly unspecify whether close(2) closes the fildes on interruption, Linux (and possibly some other kernels) specify ↵Mattias Andrée1-8/+16
that it does close. Signed-off-by: Mattias Andrée <maandree@operamail.com>
2015-09-03how did that get thereMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2015-09-03info: strendMattias Andrée1-2/+1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2015-09-01mds-kbdc: minor optimisationMattias Andrée1-0/+13
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2015-08-23signal handlers that return should not modify errnoMattias Andrée1-0/+17
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2015-08-22ensure that all PF_ and AF_ aliases exists if any existMattias Andrée1-0/+43
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2015-08-21add and use xclose and xfclose, we do not want close or fclose to be ignored because a singal interrupts it.Mattias Andrée1-5/+54
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2015-08-19use CLOCK_MONOTONIC if CLOCK_MONOTONIC_RAW is not definedMattias Andrée1-0/+6
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2015-04-18m doc + iprint and iprintf macros + siginfo on mds, mds-vt and mds-respawnMattias Andrée1-0/+27
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2015-04-12document siginfo and add it to macros.hMattias Andrée1-0/+9
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2015-02-13bump yearMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-11mMattias Andrée1-0/+13
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-10mMattias Andrée1-1/+2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-10make it easier to track memory allocationsMattias Andrée1-3/+101
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-10add xmemdup macroMattias Andrée1-0/+16
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-10no more direct allocations, always use macros, unless using allocaMattias Andrée1-2/+49
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-10typoMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-09make sure errno is not changed during fail_ifMattias Andrée1-0/+2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-09improve with_mutex and with_mutex_if alsoMattias Andrée1-8/+22
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-09make exit_if easier on the syntaxMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-09make some macros easiler on the syntaxMattias Andrée1-31/+37
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-09make fail_if friendlier to complex if-statementsMattias Andrée1-4/+4
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-09do no print whence an error occurred if it is EMSGSIZE, ECONNRESET or EINTR, those are not real errors, just abnormalitiesMattias Andrée1-3/+9
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-08rename pfail to failMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-08typoMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-08whenever fail_if gotos to the failure clause, print whenceMattias Andrée1-2/+4
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-07fail_if supports sequences without being double bracketedMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-12-06mds-kbdc: m + function callingMattias Andrée1-6/+5
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-11-22Starting on some reworkMattias Andrée1-0/+13
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-09-28m + make sure the code ends with a new lineMattias Andrée1-0/+14
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-09-20SIGRTMAX is used internally by valgrindMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-25mMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-25m docMattias Andrée1-5/+5
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-25m docMattias Andrée1-17/+17
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-25m docMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-25mMattias Andrée1-6/+6
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-25m docMattias Andrée1-6/+6
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-25mMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-25m docMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-25m docMattias Andrée1-21/+26
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-24if the system is awesome enough to have sigupdate defined, use it instead of sigusr1Mattias Andrée1-0/+9
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-20add sigdanger supportMattias Andrée1-0/+10
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-12macros for ato* with castMattias Andrée1-0/+1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-08-02miscMattias Andrée1-2/+11
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-07-28reduce code complexityMattias Andrée1-0/+14
Signed-off-by: Mattias Andrée <maandree@operamail.com>