File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1501,6 +1501,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1501
1501
1502
1502
- :data: `RWF_HIPRI `
1503
1503
- :data: `RWF_NOWAIT `
1504
+ - :data: `RWF_DONTCACHE `
1504
1505
1505
1506
Return the total number of bytes actually read which can be less than the
1506
1507
total capacity of all the objects.
@@ -1546,6 +1547,15 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1546
1547
.. versionadded :: 3.7
1547
1548
1548
1549
1550
+ .. data :: RWF_DONTCACHE
1551
+
1552
+ Use uncached buffered IO.
1553
+
1554
+ .. availability :: Linux >= 6.14
1555
+
1556
+ .. versionadded :: next
1557
+
1558
+
1549
1559
.. function :: ptsname(fd, /)
1550
1560
1551
1561
Return the name of the slave pseudo-terminal device associated with the
@@ -1587,6 +1597,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1587
1597
- :data: `RWF_DSYNC `
1588
1598
- :data: `RWF_SYNC `
1589
1599
- :data: `RWF_APPEND `
1600
+ - :data: `RWF_DONTCACHE `
1590
1601
1591
1602
Return the total number of bytes actually written.
1592
1603
Original file line number Diff line number Diff line change
1
+ Add :data: `os.RWF_DONTCACHE ` constant for Linux 6.14+.
Original file line number Diff line number Diff line change @@ -11756,6 +11756,7 @@ The flags argument contains a bitwise OR of zero or more of the following flags:
11756
11756
11757
11757
- RWF_HIPRI
11758
11758
- RWF_NOWAIT
11759
+ - RWF_DONTCACHE
11759
11760
11760
11761
Using non-zero flags requires Linux 4.6 or newer.
11761
11762
[clinic start generated code]*/
@@ -12413,6 +12414,7 @@ The flags argument contains a bitwise OR of zero or more of the following flags:
12413
12414
- RWF_DSYNC
12414
12415
- RWF_SYNC
12415
12416
- RWF_APPEND
12417
+ - RWF_DONTCACHE
12416
12418
12417
12419
Using non-zero flags requires Linux 4.7 or newer.
12418
12420
[clinic start generated code]*/
@@ -17646,6 +17648,9 @@ all_ins(PyObject *m)
17646
17648
#ifdef RWF_NOWAIT
17647
17649
if (PyModule_AddIntConstant (m , "RWF_NOWAIT" , RWF_NOWAIT )) return -1 ;
17648
17650
#endif
17651
+ #ifdef RWF_DONTCACHE
17652
+ if (PyModule_AddIntConstant (m , "RWF_DONTCACHE" , RWF_DONTCACHE )) return -1 ;
17653
+ #endif
17649
17654
#ifdef RWF_APPEND
17650
17655
if (PyModule_AddIntConstant (m , "RWF_APPEND" , RWF_APPEND )) return -1 ;
17651
17656
#endif
You can’t perform that action at this time.
0 commit comments