X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Frmt.c;h=30d665f8746f17581c99423a9ebc2339b97393ca;hb=6b6064c3fa29e0423ae46078185eca64ec2b4d3d;hp=99607e7590c72a6ffbbd40654fc6d5203136116b;hpb=db46e2e2b35d5c6f9358801c60abc3b1f68c6dc1;p=chaz%2Ftar diff --git a/src/rmt.c b/src/rmt.c index 99607e7..30d665f 100644 --- a/src/rmt.c +++ b/src/rmt.c @@ -176,11 +176,11 @@ prepare_record_buffer (size_t size) } /* Decode OFLAG_STRING, which represents the 2nd argument to `open'. - OFLAG_STRING should contain an integer, followed by an optional - symbolic representation of an open flag using only '|' to separate - its components (e.g. "O_WRONLY|O_CREAT|O_TRUNC"). Prefer the - symbolic representation if available, falling back on the numeric - representation otherwise. + OFLAG_STRING should contain an optional integer, followed by an optional + symbolic representation of an open flag using only '|' to separate its + components (e.g. "O_WRONLY|O_CREAT|O_TRUNC"). Prefer the symbolic + representation if available, falling back on the numeric + representation, or to zero if both formats are absent. This function should be the inverse of encode_oflag. The numeric representation is not portable from one host to another, but it is