commit 4cce062e124368e36a756d13097e57f2f2c33a39 from: Omar Polo date: Sun Jan 16 19:30:32 2022 UTC move struct np_stat to kami.h commit - 4f52d9af701703e1957e307d51947a9c0f162490 commit + 4cce062e124368e36a756d13097e57f2f2c33a39 blob - 10f7a14c5ef6fc388a79ea1c2142b96b826f6987 blob + 1c14aa5a77ac798f508c5a8a78b03b19184bb480 --- kamiftp/ftp.c +++ kamiftp/ftp.c @@ -72,20 +72,6 @@ volatile sig_atomic_t resized; int tty_p; int tty_width; int xdump; - -struct np_stat { - uint16_t type; - uint32_t dev; - struct qid qid; - uint32_t mode; - uint32_t atime; - uint32_t mtime; - uint64_t length; - char *name; - char *uid; - char *gid; - char *muid; -}; struct progress { uint64_t max; blob - bd12b3ea1fd8a67b4f3c88dd48ea53ae701669ea blob + e0997ea9e3860b7766c49dfbb9e23451b62101cb --- lib/kami.h +++ lib/kami.h @@ -35,6 +35,20 @@ struct qid { uint8_t type; }; +struct np_stat { + uint16_t type; + uint32_t dev; + struct qid qid; + uint32_t mode; + uint32_t atime; + uint32_t mtime; + uint64_t length; + char *name; + char *uid; + char *gid; + char *muid; +}; + /* useful constants */ #define HEADERSIZE (4 + 1 + 2) #define VERSION9P "9P2000"