HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //lib/python3/dist-packages/systemd/__pycache__/daemon.cpython-310.pyc
o

��X��@s�ddlmZddlmZmZmZmZmZm	Z	m
Z
mZmZm
Z
mZdd�Zddd�Zedd	fd
d�Zedd	dfdd
�Zddd�Zddd�Zddd�Zddd�ZdS)�)�	AF_UNSPEC�)�__version__�booted�notify�_listen_fds�_is_fifo�
_is_socket�_is_socket_inet�_is_socket_sockaddr�_is_socket_unix�_is_mq�LISTEN_FDS_STARTcCs"z|��WSty|YSw�N)�fileno�AttributeError)�fileobj�r�0/usr/lib/python3/dist-packages/systemd/daemon.py�_convert_fileobjs

�rNcC�t|�}t||�Sr)rr�r�path�fdrrr�is_fifo�
r���cC�t|�}t||||�Sr)rr	)r�family�type�	listeningrrrr�	is_socket�r!cC�t|�}t|||||�Sr)rr
)rrrr Zportrrrr�is_socket_inetsr$cCr#)aaCheck 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.
    )rr)rZaddressrZflowinfor rrrr�is_socket_sockaddr!sr%cCrr)rr)rrr rrrrr�is_socket_unix/r"r&cCrr)rr
rrrr�is_mq3rr'TcCst|�}tttt|��S)aSReturn 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]
    )r�list�ranger)Zunset_environmentZnumrrr�
listen_fds7sr*r)rrr)rrN)T)ZsocketrZ
_AF_UNSPECZ_daemonrrrrrr	r
rrr
rrrr!r$r%r&r'r*rrrr�<module>s4