Unix 特有服務
*************

此章節所描述的模組 (module) 提供了針對 Unix 作業系統獨有特性的介面，或
在某些情況下可用於其他 Unix 變形版本。以下為概述：

* "posix" --- 最常見的 POSIX 系統呼叫

  * 對大檔案 (Large File) 的支援

  * 值得注意的模組內容

    * "environ"

* "pwd" --- 密碼資料庫

  * "getpwuid()"

  * "getpwnam()"

  * "getpwall()"

* "grp" --- 群組資料庫

  * "getgrgid()"

  * "getgrnam()"

  * "getgrall()"

* "termios" --- POSIX 風格 tty 控制

  * "tcgetattr()"

  * "tcsetattr()"

    * "TCSANOW"

    * "TCSADRAIN"

    * "TCSAFLUSH"

  * "tcsendbreak()"

  * "tcdrain()"

  * "tcflush()"

  * "tcflow()"

  * "tcgetwinsize()"

  * "tcsetwinsize()"

  * 範例

* "tty" --- 終端機控制函式

  * "cfmakeraw()"

  * "cfmakecbreak()"

  * "setraw()"

  * "setcbreak()"

* "pty" --- 偽終端工具

  * "fork()"

  * "openpty()"

  * "spawn()"

  * 範例

* "fcntl" --- "fcntl" 和 "ioctl" 系統呼叫

  * "fcntl()"

  * "ioctl()"

  * "flock()"

  * "lockf()"

    * "LOCK_UN"

    * "LOCK_SH"

    * "LOCK_EX"

    * "LOCK_NB"

* "resource" --- 資源使用資訊

  * "error"

  * Resource Limits

    * "RLIM_INFINITY"

    * "getrlimit()"

    * "setrlimit()"

    * "prlimit()"

    * "RLIMIT_CORE"

    * "RLIMIT_CPU"

    * "RLIMIT_FSIZE"

    * "RLIMIT_DATA"

    * "RLIMIT_STACK"

    * "RLIMIT_RSS"

    * "RLIMIT_NPROC"

    * "RLIMIT_NOFILE"

    * "RLIMIT_OFILE"

    * "RLIMIT_MEMLOCK"

    * "RLIMIT_VMEM"

    * "RLIMIT_AS"

    * "RLIMIT_MSGQUEUE"

    * "RLIMIT_NICE"

    * "RLIMIT_RTPRIO"

    * "RLIMIT_RTTIME"

    * "RLIMIT_SIGPENDING"

    * "RLIMIT_SBSIZE"

    * "RLIMIT_SWAP"

    * "RLIMIT_NPTS"

    * "RLIMIT_KQUEUES"

  * Resource Usage

    * "getrusage()"

    * "getpagesize()"

    * "RUSAGE_SELF"

    * "RUSAGE_CHILDREN"

    * "RUSAGE_BOTH"

    * "RUSAGE_THREAD"

* "syslog" --- Unix syslog 函式庫例程

  * "syslog()"

  * "openlog()"

  * "closelog()"

  * "setlogmask()"

  * "LOG_EMERG"

  * "LOG_ALERT"

  * "LOG_CRIT"

  * "LOG_ERR"

  * "LOG_WARNING"

  * "LOG_NOTICE"

  * "LOG_INFO"

  * "LOG_DEBUG"

  * "LOG_AUTH"

  * "LOG_AUTHPRIV"

  * "LOG_CRON"

  * "LOG_DAEMON"

  * "LOG_FTP"

  * "LOG_INSTALL"

  * "LOG_KERN"

  * "LOG_LAUNCHD"

  * "LOG_LPR"

  * "LOG_MAIL"

  * "LOG_NETINFO"

  * "LOG_NEWS"

  * "LOG_RAS"

  * "LOG_REMOTEAUTH"

  * "LOG_SYSLOG"

  * "LOG_USER"

  * "LOG_UUCP"

  * "LOG_LOCAL0"

  * "LOG_LOCAL1"

  * "LOG_LOCAL2"

  * "LOG_LOCAL3"

  * "LOG_LOCAL4"

  * "LOG_LOCAL5"

  * "LOG_LOCAL6"

  * "LOG_LOCAL7"

  * "LOG_PID"

  * "LOG_CONS"

  * "LOG_NDELAY"

  * "LOG_ODELAY"

  * "LOG_NOWAIT"

  * "LOG_PERROR"

  * 範例

    * 簡單範例
