@dmnks commented on this pull request.
> */
FD_t Fdopen(FD_t ofd, const char * fmode);
/** \ingroup rpmio
* fopen(3) clone.
+ *
+ * Supports compression.
+ *
+ * The `fmode` parameter is based on that of `fopen(3)`, but may also include a
+ * compression method (`type` and `flags`) to use when opening the stream, and
+ * has the following format:
+ *
+ * ```
+ * <mode>[flags].<type>
+ * ```
+ *
+ * The compression `type` (compressor) is mandatory, determines the supported
+ * `mode` chars (also mandatory), and can be one of the following:
+ *
+ * | Type | Description | Mode chars |
In reality, some of the compressors *do* support more flags (even custom ones
like `s` for small mode in `bzip2`), but we don't want to leak those
implementation details. Instead, let's just standardize on these three major
modes (for now at least).
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2215#pullrequestreview-1153373896
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2215/review/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
http://lists.rpm.org/mailman/listinfo/rpm-maint