diff options
author | wkj <devnull@localhost> | 2004-06-17 01:47:21 +0000 |
---|---|---|
committer | wkj <devnull@localhost> | 2004-06-17 01:47:21 +0000 |
commit | 7285a491c1ce1e630a0751b1011fd33e6b17234b (patch) | |
tree | b2b2e24e333fa4660325a35f6c0f1d333e50e797 /src/cmd/9660/plan9.c | |
parent | e1dddc053287874e82e2b67f95ccee7d7bc63e22 (diff) | |
download | plan9port-7285a491c1ce1e630a0751b1011fd33e6b17234b.tar.gz plan9port-7285a491c1ce1e630a0751b1011fd33e6b17234b.tar.bz2 plan9port-7285a491c1ce1e630a0751b1011fd33e6b17234b.zip |
Dump9660 (and mk9660). Until we either do something
intelligent with symlinks or put in a switch for things
like dump9660, this is of rather limited utility under Unix.
Diffstat (limited to 'src/cmd/9660/plan9.c')
-rw-r--r-- | src/cmd/9660/plan9.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/cmd/9660/plan9.c b/src/cmd/9660/plan9.c new file mode 100644 index 00000000..25f04e92 --- /dev/null +++ b/src/cmd/9660/plan9.c @@ -0,0 +1,27 @@ +#include <u.h> +#include <libc.h> +#include <bio.h> +#include <libsec.h> +#include <disk.h> +#include "iso9660.h" + +void +dirtoxdir(XDir *xd, Dir *d) +{ + xd->name = atom(d->name); + xd->uid = atom(d->uid); + xd->gid = atom(d->gid); + xd->uidno = 0; + xd->gidno = 0; + xd->mode = d->mode; + xd->atime = d->atime; + xd->mtime = d->mtime; + xd->ctime = 0; + xd->length = d->length; +}; + +void +fdtruncate(int fd, ulong size) +{ + USED(fd, size); +} |