memo of Linux C

1 Linux系统调用creat以只写的方式打开,如果进行读操作会报错Bad file descriptor。

creat(const char * path, mode_t mode)

相当于

  open(const char * path, (O_CREAT | O_WRONLY | O_TRUNC))

你可能感兴趣的:(memo of Linux C)