diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-09-23 00:19:54 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-09-23 00:19:54 -0700 |
commit | 08e99752e3d29f69dd661aaba3b7809a117264d9 (patch) | |
tree | 5494c258d64f71e094ac2969bcef3e06bf88eaf6 /tests | |
parent | 2df419cdb5295b405a98d24f0226cb42bfbf37d2 (diff) | |
download | txr-08e99752e3d29f69dd661aaba3b7809a117264d9.tar.gz txr-08e99752e3d29f69dd661aaba3b7809a117264d9.tar.bz2 txr-08e99752e3d29f69dd661aaba3b7809a117264d9.zip |
New T mode for open-file.
The T mode uses O_TMPFILE to create an unlinkd temporary file.
* stream.h (struct stdio_mode): New flag, tmpfile.
(stdio_mode_init_blank, stdio_mode_init_r, stdio_mode_init_rpb):
Updated to cover new bitfield member.
* stream.c (w_open_mode): If tmpfile flag is on, add O_TMPFILE.
(do_parse_mode): Recognize "T" mode selector and set all
appropriate mode bits. If we are not on a platform that has
O_TMPFILE, set the maformed flag.
* txr.1: Documented.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions