# README
cpio
Package cpio provides readers and writers for the CPIO archive file format.
Currently, only the SVR4 (New ASCII) format is supported, both with and without checksums.
Copyright 2021, Ryan Armstrong [email protected]
# Functions
FileInfoHeader creates a partially-populated Header from fi.
NewHash returns a new hash.Hash32 for computing SVR4 checksums.
NewReader creates a new Reader reading from r.
NewWriter creates a new Writer writing to w.
# Constants
Unix permission bits.
Set gid.
Set uid.
Save text (sticky bit).
Mask for the type bits.
Block device node.
Character device node.
Directory.
FIFO node.
TypeReg indicates a regular file.
Socket.
Symbolic link.
# Variables
ErrHeader indicates there was an error decoding a CPIO header entry.
ErrWriteAfterClose indicates that an attempt was made to write to the CPIO archive after it was closed.
ErrWriteTooLong indicates that an attempt was made to write more than Header.Size bytes to the current file.
# Type aliases
A FileMode represents a file's mode and permission bits.