Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | treewide: remove python 2 support and assume we have python 3.3+ | Joerg Behrmann | 2023-02-11 | 1 | -68/+0 |
| | |||||
* | Use #if instead of #ifdef for compatibility checks | Zbigniew Jędrzejewski-Szmek | 2019-06-16 | 1 | -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 syntax | Zbigniew Jędrzejewski-Szmek | 2019-06-16 | 1 | -12/+12 |
| | |||||
* | _listen_fd_with_names documentation now modeled after is_socket_sockaddr | Marcel Waldvogel | 2019-06-16 | 1 | -2/+5 |
| | |||||
* | Added support for listen_fds_with_names() | Marcel Waldvogel | 2019-06-16 | 1 | -2/+79 |
| | |||||
* | Fix malloc retval check | Marco Paolini | 2017-09-12 | 1 | -1/+1 |
| | |||||
* | Avoid ref leak in notify | Marco Paolini | 2017-09-12 | 1 | -1/+1 |
| | |||||
* | daemon: properly skip sd_is_socket_sockaddr calls if not available | Zbigniew Jędrzejewski-Szmek | 2017-03-19 | 1 | -4/+9 |
| | | | | | As with other functions, the wrapper is always present, but returns OSError: [Errno 38] Function not implemented. | ||||
* | _daemon: allow specifying flowinfo | Zbigniew Jędrzejewski-Szmek | 2016-12-15 | 1 | -4/+15 |
| | | | | Not particularly useful, but let's have it for completeness. | ||||
* | daemon: add basic support for sd_is_socket_sockaddr | Zbigniew Jędrzejewski-Szmek | 2016-12-15 | 1 | -5/+50 |
| | | | | Later on a proper wrapper in daemon.py should be added. | ||||
* | _daemon,_reader: return ENOSYS instead of NotImplemented | Zbigniew Jędrzejewski-Szmek | 2016-12-15 | 1 | -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-Szmek | 2015-10-26 | 1 | -9/+78 |
| | | | | Closes #8. | ||||
* | Fix booted() doc | Evgeny Vereshchagin | 2015-09-04 | 1 | -1/+1 |
| | |||||
* | tree-wide: systemd→python-systemd in headers | Zbigniew Jędrzejewski-Szmek | 2015-08-07 | 1 | -3/+3 |
| | |||||
* | Fix daemon.is_fifo and .is_mq under Python 3 | Jacek Konieczny | 2015-08-07 | 1 | -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 classifiers | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -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 ports | Simon Farnsworth | 2015-07-05 | 1 | -1/+1 |
| | | | | Just a couple of trivial oversights. | ||||
* | Always prefer our headers to system headers | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -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 warnigs | Lennart Poettering | 2015-07-05 | 1 | -5/+5 |
| | |||||
* | systemd-python: fix listen_fds under Python 2 | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -1/+1 |
| | |||||
* | systemd-python: fix setting of exception codes | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -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 docs | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -1/+1 |
| | | | | For some reason sphinx doesn't want to show inherited C functions. | ||||
* | systemd-python: add support for sd_j_open_files | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -22/+0 |
| | | | | Also export missing flags. | ||||
* | systemd-python: wrap sd_notify | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -4/+45 |
| | | | | | _listen_fds() is modified to accept unset_environment arg as keyword, to match new notify(). | ||||
* | systemd-python: wrap sd_login_monitor | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -31/+18 |
| | |||||
* | systemd-python: add __version__ strings | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -1/+3 |
| | |||||
* | move _cleanup_ attribute in front of the type | Harald Hoyer | 2015-07-05 | 1 | -1/+1 |
| | | | | http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html | ||||
* | systemd-python: add systemd.daemon wrapping sd-daemon | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -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. |