REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.22 KB
Close
/usr/lib64/python3.6/site-packages/systemd/daemon.py
Text
Base64
from socket import AF_UNSPEC as _AF_UNSPEC from ._daemon import (__version__, booted, notify, _listen_fds, _is_fifo, _is_socket, _is_socket_inet, _is_socket_sockaddr, _is_socket_unix, _is_mq, LISTEN_FDS_START) def _convert_fileobj(fileobj): try: return fileobj.fileno() except AttributeError: return fileobj def is_fifo(fileobj, path=None): fd = _convert_fileobj(fileobj) return _is_fifo(fd, path) def is_socket(fileobj, family=_AF_UNSPEC, type=0, listening=-1): fd = _convert_fileobj(fileobj) return _is_socket(fd, family, type, listening) def is_socket_inet(fileobj, family=_AF_UNSPEC, type=0, listening=-1, port=0): fd = _convert_fileobj(fileobj) return _is_socket_inet(fd, family, type, listening, port) def is_socket_sockaddr(fileobj, address, type=0, flowinfo=0, listening=-1): """Check socket type, address and/or port, flowinfo, listening state. Wraps sd_is_socket_inet_sockaddr(3). `address` is a systemd-style numerical IPv4 or IPv6 address as used in ListenStream=. A port may be included after a colon (":"). See systemd.socket(5) for details. Constants for `family` are defined in the socket module. """ fd = _convert_fileobj(fileobj) return _is_socket_sockaddr(fd, address, type, flowinfo, listening) def is_socket_unix(fileobj, type=0, listening=-1, path=None): fd = _convert_fileobj(fileobj) return _is_socket_unix(fd, type, listening, path) def is_mq(fileobj, path=None): fd = _convert_fileobj(fileobj) return _is_mq(fd, path) def listen_fds(unset_environment=True): """Return a list of socket activated descriptors Example:: (in primary window) $ systemd-activate -l 2000 python3 -c \\ 'from systemd.daemon import listen_fds; print(listen_fds())' (in another window) $ telnet localhost 2000 (in primary window) ... Execing python3 (...) [3] """ num = _listen_fds(unset_environment) return list(range(LISTEN_FDS_START, LISTEN_FDS_START + num))
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
test
DIR
-
drwxr-xr-x
2024-03-03 19:12:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__pycache__
DIR
-
drwxr-xr-x
2024-03-03 19:12:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
daemon.py
2.22 KB
lrw-r--r--
2017-03-26 01:33:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
id128.cpython-36m-x86_64-linux-gnu.so
16.33 KB
lrwxr-xr-x
2019-11-14 17:15:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
journal.py
21.72 KB
lrw-r--r--
2017-03-26 01:33:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
login.cpython-36m-x86_64-linux-gnu.so
18.84 KB
lrwxr-xr-x
2019-11-14 17:15:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
_daemon.cpython-36m-x86_64-linux-gnu.so
21.89 KB
lrwxr-xr-x
2019-11-14 17:15:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
_journal.cpython-36m-x86_64-linux-gnu.so
11.82 KB
lrwxr-xr-x
2019-11-14 17:15:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
_reader.cpython-36m-x86_64-linux-gnu.so
45.82 KB
lrwxr-xr-x
2019-11-14 17:15:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
759 B
lrw-r--r--
2017-03-26 01:33:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).