mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +00:00
Update docstring for os/open.
This commit is contained in:
parent
a2c837a99c
commit
d7954be5e5
@ -2037,25 +2037,25 @@ static const JanetReg os_cfuns[] = {
|
|||||||
"mode should be a file mode as passed to os/chmod, but only if the create flag is given. "
|
"mode should be a file mode as passed to os/chmod, but only if the create flag is given. "
|
||||||
"The default mode is 8r666. "
|
"The default mode is 8r666. "
|
||||||
"Allowed flags are as follows:\n\n"
|
"Allowed flags are as follows:\n\n"
|
||||||
"\t:r - open this file for reading\n"
|
" * :r - open this file for reading\n"
|
||||||
"\t:w - open this file for writing\n"
|
" * :w - open this file for writing\n"
|
||||||
"\t:c - create a new file (O_CREATE)\n"
|
" * :c - create a new file (O_CREATE)\n"
|
||||||
"\t:e - fail if the file exists (O_EXCL)\n"
|
" * :e - fail if the file exists (O_EXCL)\n"
|
||||||
"\t:t - shorten an existing file to length 0 (O_TRUNC)\n\n"
|
" * :t - shorten an existing file to length 0 (O_TRUNC)\n\n"
|
||||||
"Posix only flags:\n"
|
"Posix only flags:\n\n"
|
||||||
"\t:a - append to a file (O_APPEND)\n"
|
" * :a - append to a file (O_APPEND)\n"
|
||||||
"\t:x - O_SYNC\n"
|
" * :x - O_SYNC\n"
|
||||||
"\t:C - O_NOCTTY\n\n"
|
" * :C - O_NOCTTY\n\n"
|
||||||
"Windows only flags:\n"
|
"Windows only flags:\n\n"
|
||||||
"\t:R - share reads (FILE_SHARE_READ)\n"
|
" * :R - share reads (FILE_SHARE_READ)\n"
|
||||||
"\t:W - share writes (FILE_SHARE_WRITE)\n"
|
" * :W - share writes (FILE_SHARE_WRITE)\n"
|
||||||
"\t:D - share deletes (FILE_SHARE_DELETE)\n"
|
" * :D - share deletes (FILE_SHARE_DELETE)\n"
|
||||||
"\t:H - FILE_ATTRIBUTE_HIDDEN\n"
|
" * :H - FILE_ATTRIBUTE_HIDDEN\n"
|
||||||
"\t:O - FILE_ATTRIBUTE_READONLY\n"
|
" * :O - FILE_ATTRIBUTE_READONLY\n"
|
||||||
"\t:F - FILE_ATTRIBUTE_OFFLINE\n"
|
" * :F - FILE_ATTRIBUTE_OFFLINE\n"
|
||||||
"\t:T - FILE_ATTRIBUTE_TEMPORARY\n"
|
" * :T - FILE_ATTRIBUTE_TEMPORARY\n"
|
||||||
"\t:d - FILE_FLAG_DELETE_ON_CLOSE\n"
|
" * :d - FILE_FLAG_DELETE_ON_CLOSE\n"
|
||||||
"\t:b - FILE_FLAG_NO_BUFFERING\n")
|
" * :b - FILE_FLAG_NO_BUFFERING\n")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"os/pipe", os_pipe,
|
"os/pipe", os_pipe,
|
||||||
|
Loading…
Reference in New Issue
Block a user