23 lines
925 B
Text
23 lines
925 B
Text
Index: psutil/_common.py
|
|
--- psutil/_common.py.orig
|
|
+++ psutil/_common.py
|
|
@@ -49,7 +49,7 @@ _DEFAULT = object()
|
|
__all__ = [
|
|
# OS constants
|
|
'FREEBSD', 'BSD', 'LINUX', 'NETBSD', 'OPENBSD', 'MACOS', 'OSX', 'POSIX',
|
|
- 'SUNOS', 'WINDOWS',
|
|
+ 'SECBSD', 'SUNOS', 'WINDOWS',
|
|
# connection constants
|
|
'CONN_CLOSE', 'CONN_CLOSE_WAIT', 'CONN_CLOSING', 'CONN_ESTABLISHED',
|
|
'CONN_FIN_WAIT1', 'CONN_FIN_WAIT2', 'CONN_LAST_ACK', 'CONN_LISTEN',
|
|
@@ -90,8 +90,9 @@ MACOS = sys.platform.startswith("darwin")
|
|
OSX = MACOS # deprecated alias
|
|
FREEBSD = sys.platform.startswith(("freebsd", "midnightbsd"))
|
|
OPENBSD = sys.platform.startswith("openbsd")
|
|
+SECBSD = sys.platform.startswith("secbsd")
|
|
NETBSD = sys.platform.startswith("netbsd")
|
|
-BSD = FREEBSD or OPENBSD or NETBSD
|
|
+BSD = FREEBSD or OPENBSD or SECBSD or NETBSD
|
|
SUNOS = sys.platform.startswith(("sunos", "solaris"))
|
|
AIX = sys.platform.startswith("aix")
|
|
|