creat

int creat(const char*pathname, mode_t mode)
  • equivalent to open(pathname, O_WRONLY | O_CREAT | O_TRUNC, mode)
  • 現已被 open 取代

close

Header Files

#include <unistd.h>

Function Prototype

int close(int filedes)

Explanation

關閉指定的 file descriptor