file / ls5.4 / MINIX 3


main()/ls5.4/MINIX 3

概要

  • /usr/src/commands/simple/ls.cで定義。

引数

実装

struct file {           /* A file plus stat(2) information. */
        struct file     *next;  /* Lists are made of them. */
        char            *name;  /* Null terminated name. */
        ino_t           ino;
  • /usr/include/sys/types.hで定義。
  • typedef unsigned long ino_t; /* i-node number (V3 filesystem) */
        mode_t          mode;
  • /usr/include/sys/types.hで定義。
  • typedef unsigned short mode_t; /* file type and permissions bits */
        uid_t           uid;
  • /usr/include/sys/types.hで定義。
  • typedef short uid_t; /* user id */
        gid_t           gid;
  • /usr/include/sys/types.hで定義。
  • typedef char gid_t; /* group id */
        nlink_t         nlink;
  • /usr/include/sys/types.hで定義。
  • typedef short nlink_t; /* number of links to a file */
        dev_t           rdev;
  • /usr/include/sys/types.hで定義。
  • typedef short dev_t; /* holds (major|minor) device pair */
        off_t           size;
  • /usr/include/sys/types.hで定義。
  • typedef unsigned long off_t; /* offset within a file */
        time_t          mtime;
        time_t          atime;
        time_t          ctime;
  • /usr/include/sys/types.hで定義。
  • typedef long time_t; /* time in sec since 1 Jan 1970 0000 GMT */
#if ST_BLOCKS
        long            blocks;
#endif
};

呼出元

履歴