summaryrefslogtreecommitdiff
path: root/systemd/_daemon.c
Commit message (Collapse)AuthorAgeFilesLines
* treewide: remove python 2 support and assume we have python 3.3+Joerg Behrmann2023-02-111-68/+0
|
* Use #if instead of #ifdef for compatibility checksZbigniew Jędrzejewski-Szmek2019-06-161-20/+10
| | | | | This has the advantage that it is slightly less verbose, and also any potential typos in the macro names are immediately detected.
* Modernize C syntaxZbigniew Jędrzejewski-Szmek2019-06-161-12/+12
|
* _listen_fd_with_names documentation now modeled after is_socket_sockaddrMarcel Waldvogel2019-06-161-2/+5
|
* Added support for listen_fds_with_names()Marcel Waldvogel2019-06-161-2/+79
|
* Fix malloc retval checkMarco Paolini2017-09-121-1/+1
|
* Avoid ref leak in notifyMarco Paolini2017-09-121-1/+1
|
* daemon: properly skip sd_is_socket_sockaddr calls if not availableZbigniew Jędrzejewski-Szmek2017-03-191-4/+9
| | | | | As with other functions, the wrapper is always present, but returns OSError: [Errno 38] Function not implemented.
* _daemon: allow specifying flowinfoZbigniew Jędrzejewski-Szmek2016-12-151-4/+15
| | | | Not particularly useful, but let's have it for completeness.
* daemon: add basic support for sd_is_socket_sockaddrZbigniew Jędrzejewski-Szmek2016-12-151-5/+50
| | | | Later on a proper wrapper in daemon.py should be added.
* _daemon,_reader: return ENOSYS instead of NotImplementedZbigniew Jędrzejewski-Szmek2016-12-151-2/+2
| | | | | | | | | In _reader we were raising OSError(errno=ENOSYS), but in _dameon we were raising NotImplementedError. Let's always use ENOSYS. Also, make the messages in _reader more specific. Fixes #33.
* daemon: wrap sd_pid_notify[_with_pids]Zbigniew Jędrzejewski-Szmek2015-10-261-9/+78
| | | | Closes #8.
* Fix booted() docEvgeny Vereshchagin2015-09-041-1/+1
|
* tree-wide: systemd→python-systemd in headersZbigniew Jędrzejewski-Szmek2015-08-071-3/+3
|
* Fix daemon.is_fifo and .is_mq under Python 3Jacek Konieczny2015-08-071-2/+8
| | | | | | | The 'path' parameter was not properly converted from Unicode and the functions would always fail when a path was provided. https://github.com/systemd/python-systemd/pull/4
* Update LICENSE file and classifiersZbigniew Jędrzejewski-Szmek2015-07-051-1/+0
| | | | | | The license was originally MIT, but when this module became part of systemd, it was changed to LGPLv2+. All files had correct headers, so only the LICENSE file needs updating. Take the opportunity to add classifiers to setup.py.
* python-systemd: fix is_socket_inet to cope with portsSimon Farnsworth2015-07-051-1/+1
| | | | Just a couple of trivial oversights.
* Always prefer our headers to system headersZbigniew Jędrzejewski-Szmek2015-07-051-1/+1
| | | | | | In practice this shouldn't make much difference, but sometimes our headers might be newer, and we want to test them.
* macro: introduce nice macro for disabling -Wmissing-prototypes warnigsLennart Poettering2015-07-051-5/+5
|
* systemd-python: fix listen_fds under Python 2Zbigniew Jędrzejewski-Szmek2015-07-051-1/+1
|
* systemd-python: fix setting of exception codesZbigniew Jędrzejewski-Szmek2015-07-051-7/+7
| | | | | | | The return value of 0 would be treated as failure by mistake, resulting in " SystemError: error return without exception set". The way that set_error() is used is changed to be the same everywhere.
* systemd-python: fix booted() and add two functions to docsZbigniew Jędrzejewski-Szmek2015-07-051-1/+1
| | | | For some reason sphinx doesn't want to show inherited C functions.
* systemd-python: add support for sd_j_open_filesZbigniew Jędrzejewski-Szmek2015-07-051-22/+0
| | | | Also export missing flags.
* systemd-python: wrap sd_notifyZbigniew Jędrzejewski-Szmek2015-07-051-4/+45
| | | | | _listen_fds() is modified to accept unset_environment arg as keyword, to match new notify().
* systemd-python: wrap sd_login_monitorZbigniew Jędrzejewski-Szmek2015-07-051-31/+18
|
* systemd-python: add __version__ stringsZbigniew Jędrzejewski-Szmek2015-07-051-1/+3
|
* move _cleanup_ attribute in front of the typeHarald Hoyer2015-07-051-1/+1
| | | | http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
* systemd-python: add systemd.daemon wrapping sd-daemonZbigniew Jędrzejewski-Szmek2015-07-051-0/+323
Please see the documentation (e.g. pydoc3 systemd.daemon) for full description. As usual, systemd._daemon wraps the raw interface, while systemd.daemon provides the more pythonic API. sd_listen_fds, sd_booted, sd_is_fifo, sd_is_socket, sd_is_socket_unix, sd_is_socket_inet, sd_is_mq, and SD_LISTEN_FDS_START are currently wrapped.