Beginning Linux Programming Notes: Working with Files

Linux中几乎任何东西都是文件,包括设备。常用的一些设备:

  1. /dev/null
  2. /dev/stdin
  3. /dev/stdout

Sys Call

{B79A8957-6E49-4BC1-83A6-A3918078E5D4}

System Call Manage Files

  1. lseek
  2. stat/fstat/lstat return values into a stat struct
  3. dup/dup2
  4. fopen/fclose
  5. fread/fwrite
  6. fflush
  7. fseek
  8. fgetc/getc/getchar(stdin)
  9. fputc/putc/puchar(stdout)
  10. fgets/gets
  11. printf/fprintf/sprintf
  12. scanf/fscanf/sscanf

/proc 文件

  1. /proc/PID
  2. /proc/cpuinfo

fcntl/mmap

你可能感兴趣的:(Beginning Linux Programming Notes: Working with Files)