Skip to content

Commit 3ed03af

Browse files
committed
gh-107924: document S_IFSOCK for os.mknod()
Signed-off-by: Christoph Anton Mitterer <[email protected]>
1 parent cc2cf85 commit 3ed03af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/os.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,10 +2400,10 @@ features:
24002400
Create a filesystem node (file, device special file or named pipe) named
24012401
*path*. *mode* specifies both the permissions to use and the type of node
24022402
to be created, being combined (bitwise OR) with one of ``stat.S_IFREG``,
2403-
``stat.S_IFCHR``, ``stat.S_IFBLK``, and ``stat.S_IFIFO`` (those constants are
2404-
available in :mod:`stat`). For ``stat.S_IFCHR`` and ``stat.S_IFBLK``,
2405-
*device* defines the newly created device special file (probably using
2406-
:func:`os.makedev`), otherwise it is ignored.
2403+
``stat.S_IFCHR``, ``stat.S_IFBLK``, ``stat.S_IFIFO`` and ``stat.S_IFSOCK``
2404+
(those constants are available in :mod:`stat`). For ``stat.S_IFCHR`` and
2405+
``stat.S_IFBLK``, *device* defines the newly created device special file
2406+
(probably using :func:`os.makedev`), otherwise it is ignored.
24072407

24082408
This function can also support :ref:`paths relative to directory descriptors
24092409
<dir_fd>`.

0 commit comments

Comments
 (0)