⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oshelp.py

📁 xen虚拟机源代码安装包
💻 PY
字号:
import fcntlimport osdef fcntl_setfd_cloexec(file, bool):        f = fcntl.fcntl(file, fcntl.F_GETFD)        if bool: f |= fcntl.FD_CLOEXEC        else: f &= ~fcntl.FD_CLOEXEC        fcntl.fcntl(file, fcntl.F_SETFD)def waitstatus_description(st):        if os.WIFEXITED(st):                es = os.WEXITSTATUS(st)                if es: return "exited with nonzero status %i" % es                else: return "exited"        elif os.WIFSIGNALED(st):                s = "died due to signal %i" % os.WTERMSIG(st)                if os.WCOREDUMP(st): s += " (core dumped)"                return s        else:                return "failed with unexpected wait status %i" % st

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -