Mercurial > hg > toybox
annotate LICENSE @ 1087:b73a61542297 draft
I've finally gotten 'cpio' into a shape where it could be useable.
This version can archive and extract directories, sockets, FIFOs, devices,
symlinks, and regular files.
Supported options are -iot, -H FMT (which is a dummy right now).
It only writes newc, and could read newc or newcrc.
This does NOT implement -d, which essentially is equivalent to
mkdir -p $(dirname $FILE)
for every file that needs it.
Hard links are not supported, though it would be easy to add them given
a hash table or something like that.
I also have not implemented the "<n> blocks" output on stderr.
If desired, I can add it pretty simply.
There is one assumption this makes: that the mode of a file, as mode_t,
is bitwise equivalent to the mode as defined for the cpio format.
This is true of Linux, but is not mandated by POSIX.
If it is compiled for a system where that is false, the archives will
not be portable.
author | Isaac Dunham <ibid.ag@gmail.com> |
---|---|
date | Mon, 14 Oct 2013 11:15:22 -0500 |
parents | 264b9da809df |
children | c7d27a6f9022 |
rev | line source |
---|---|
818
264b9da809df
Simplify license text, as mentioned on the mailing list.
Rob Landley <rob@landley.net>
parents:
382
diff
changeset
|
1 Copyright (C) 2006, 2013 by Rob Landley <rob@landley.net> |
0
e651a31d5416
Starting a new project. Just a bit past the "hello world" stage...
landley@driftwood
parents:
diff
changeset
|
2 |
382
f3a00ece7966
Switch to 2-clause BSD license (with caveat about scripts directory).
Rob Landley <rob@landley.net>
parents:
0
diff
changeset
|
3 Permission to use, copy, modify, and/or distribute this software for any |
818
264b9da809df
Simplify license text, as mentioned on the mailing list.
Rob Landley <rob@landley.net>
parents:
382
diff
changeset
|
4 purpose with or without fee is hereby granted. |
0
e651a31d5416
Starting a new project. Just a bit past the "hello world" stage...
landley@driftwood
parents:
diff
changeset
|
5 |
382
f3a00ece7966
Switch to 2-clause BSD license (with caveat about scripts directory).
Rob Landley <rob@landley.net>
parents:
0
diff
changeset
|
6 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
f3a00ece7966
Switch to 2-clause BSD license (with caveat about scripts directory).
Rob Landley <rob@landley.net>
parents:
0
diff
changeset
|
7 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
f3a00ece7966
Switch to 2-clause BSD license (with caveat about scripts directory).
Rob Landley <rob@landley.net>
parents:
0
diff
changeset
|
8 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
f3a00ece7966
Switch to 2-clause BSD license (with caveat about scripts directory).
Rob Landley <rob@landley.net>
parents:
0
diff
changeset
|
9 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
f3a00ece7966
Switch to 2-clause BSD license (with caveat about scripts directory).
Rob Landley <rob@landley.net>
parents:
0
diff
changeset
|
10 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
f3a00ece7966
Switch to 2-clause BSD license (with caveat about scripts directory).
Rob Landley <rob@landley.net>
parents:
0
diff
changeset
|
11 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
f3a00ece7966
Switch to 2-clause BSD license (with caveat about scripts directory).
Rob Landley <rob@landley.net>
parents:
0
diff
changeset
|
12 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
0
e651a31d5416
Starting a new project. Just a bit past the "hello world" stage...
landley@driftwood
parents:
diff
changeset
|
13 |
382
f3a00ece7966
Switch to 2-clause BSD license (with caveat about scripts directory).
Rob Landley <rob@landley.net>
parents:
0
diff
changeset
|
14 (Note: some build infrastructure in the scripts directory is still GPL, |
f3a00ece7966
Switch to 2-clause BSD license (with caveat about scripts directory).
Rob Landley <rob@landley.net>
parents:
0
diff
changeset
|
15 cleaning that out is a TODO item, but it doesn't affect the resulting |
f3a00ece7966
Switch to 2-clause BSD license (with caveat about scripts directory).
Rob Landley <rob@landley.net>
parents:
0
diff
changeset
|
16 binary.) |