@@ -2606,10 +2606,10 @@ features:
2606
2606
2607
2607
Create a filesystem node (file, device special file or named pipe) named
2608
2608
*path *. *mode * specifies both the permissions to use and the type of node
2609
- to be created, being combined (bitwise OR) with one of `` stat.S_IFREG ` `,
2610
- `` stat.S_IFCHR ``, `` stat.S_IFBLK `` , and `` stat.S_IFIFO `` (those constants are
2611
- available in :mod : `stat `). For `` stat. S_IFCHR `` and `` stat.S_IFBLK ``,
2612
- * device * defines the newly created device special file (probably using
2609
+ to be created, being combined (bitwise OR) with one of :const: ` stat.S_IFREG `,
2610
+ :const: ` stat.S_IFCHR `, :const: ` stat.S_IFBLK `, and :const: ` stat.S_IFIFO `.
2611
+ For :const : `stat. S_IFCHR ` and :const: ` stat.S_IFBLK `, * device * defines the
2612
+ newly created device special file (probably using
2613
2613
:func: `os.makedev `), otherwise it is ignored.
2614
2614
2615
2615
This function can also support :ref: `paths relative to directory descriptors
@@ -2627,13 +2627,13 @@ features:
2627
2627
.. function :: major(device, /)
2628
2628
2629
2629
Extract the device major number from a raw device number (usually the
2630
- :attr: `st_dev ` or :attr: `st_rdev ` field from :c:struct: ` stat `).
2630
+ :attr: `stat_result. st_dev ` or :attr: `stat_result. st_rdev `).
2631
2631
2632
2632
2633
2633
.. function :: minor(device, /)
2634
2634
2635
2635
Extract the device minor number from a raw device number (usually the
2636
- :attr: `st_dev ` or :attr: `st_rdev ` field from :c:struct: ` stat `).
2636
+ :attr: `stat_result. st_dev ` or :attr: `stat_result. st_rdev `).
2637
2637
2638
2638
2639
2639
.. function :: makedev(major, minor, /)
@@ -3364,8 +3364,8 @@ features:
3364
3364
3365
3365
.. versionchanged :: 3.8
3366
3366
On Windows, the :attr: `st_mode ` member now identifies special
3367
- files as :const: `S_IFCHR `, :const: `S_IFIFO ` or :const: ` S_IFBLK `
3368
- as appropriate.
3367
+ files as :const: `~stat. S_IFCHR `, :const: `~stat. S_IFIFO ` or
3368
+ :const: ` ~stat.S_IFBLK ` as appropriate.
3369
3369
3370
3370
.. versionchanged :: 3.12
3371
3371
On Windows, :attr: `st_ctime ` is deprecated. Eventually, it will
0 commit comments