1. 26 Apr, 2013 7 commits
    • Zbigniew Jędrzejewski-Szmek's avatar
      readahead: fix format string issue · 406e86fd
      Zbigniew Jędrzejewski-Szmek authored
      (struct stat).st is off_t, which usually is a long, or a long long.
      There's no good format string modifier for it, so use a cast.
      406e86fd
    • Zbigniew Jędrzejewski-Szmek's avatar
      Add printf attributes in exported headers · e4d2bfdd
      Zbigniew Jędrzejewski-Szmek authored
      gcc (and other compilers) sometimes generate spurious warnings, and
      thus users of public headers must be able to disable warnings.
      
      Printf format attributes can be disabled by setting
          #define _sd_printf_attr_
      before including the header file.
      
      Also, add similar logic for sentinel attribute:
          #define _sd_sentinel_attr_
      before including the header file disables the attribute.
      e4d2bfdd
    • Cristian Rodríguez's avatar
      b1e2b33c
    • Zbigniew Jędrzejewski-Szmek's avatar
      Make up for attribute malloc with alloc_size · 750ef272
      Zbigniew Jędrzejewski-Szmek authored
      It is imperative that open source code be well attributed.
      Sprinkle attribute((alloc_size)) here and there, telling gcc
      how much memory we are actually allocating.
      750ef272
    • Zbigniew Jędrzejewski-Szmek's avatar
      Remove erroneous attribute((malloc)) annotations · b231b547
      Zbigniew Jędrzejewski-Szmek authored
      According to gcc documentation, returned pointer "cannot alias any
      other pointer valid when the function returns" and "the memory has
      undefined content". This second part is (hopefully) untrue for all
      those functions.
      b231b547
    • Zbigniew Jędrzejewski-Szmek's avatar
      systemd-python: attach fields to JournalHandler, add SYSLOG_IDENTIFIER · b5edbff0
      Zbigniew Jędrzejewski-Szmek authored
      Arbitrary fields can be attached at the level of the handler,
      and they'll be sent with all messages from this handler.
      
      This facility is used to attach SYSLOG_IDENTIFIER to all messages,
      since otherwise journald attaches SYSLOG_IDENTIFIER=python or
      something similar, which is completely useless.
      b5edbff0
    • Lennart Poettering's avatar
      unit: rework stop pending logic · 31afa0a4
      Lennart Poettering authored
      When a trigger unit wants to know if a stop is queued for it, we should
      just check precisely that and do not check whether it is actually
      stopped already. This is because we use these checks usually from state
      change calls where the state variables are not updated yet.
      
      This change splits unit_pending_inactive() into two calls
      unit_inactive_or_pending() and unit_stop_pending(). The former checks
      state and pending jobs, the latter only pending jobs.
      31afa0a4
  2. 25 Apr, 2013 6 commits
  3. 24 Apr, 2013 19 commits
  4. 23 Apr, 2013 8 commits