GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: numeric flags to fs.open · nodejs/node@615fba3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • fs.markdown
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/fs.markdown‎

Copy file name to clipboardExpand all lines: doc/api/fs.markdown
+5Lines changed: 5 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,11 @@ created. On POSIX systems, `path` is considered to exist even if it is a symlink
529529
to a non-existent file. The exclusive flag may or may not work with network file
530530
systems.
531531

532+
`flags` can also be a number as documented by open(2); commonly used constants
533+
are available from `require('constants')`. On Windows, flags are translated to
534+
their equivalent ones where applicable, e.g. `O_WRONLY` to `FILE_GENERIC_WRITE`,
535+
or `O_EXCL|O_CREAT` to `CREATE_NEW`, as accepted by CreateFileW.
536+
532537
On Linux, positional writes don't work when the file is opened in append mode.
533538
The kernel ignores the position argument and always appends the data to
534539
the end of the file.

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.