| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 85c6f8c commit 3bfc8e0
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,6 +36,8 @@ descriptor. | |||
| 36 | 36 | .. versionchanged:: 3.9 | |
| 37 | 37 | On macOS, the fcntl module exposes the ``F_GETPATH`` constant, which obtains | |
| 38 | 38 | the path of a file from a file descriptor. | |
| 39 | + On Linux(>=3.15), the fcntl module exposes the ``F_OFD_GETLK``, ``F_OFD_SETLK`` | ||
| 40 | + and ``F_OFD_SETLKW`` constants, which working with open file description locks. | ||
| 39 | 41 | ||
| 40 | 42 | The module defines the following functions: | |
| 41 | 43 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -125,8 +125,15 @@ that schedules a shutdown for the default executor that waits on the | |||
| 125 | 125 | :func:`asyncio.run` has been updated to use the new :term:`coroutine`. | |
| 126 | 126 | (Contributed by Kyle Stanley in :issue:`34037`.) | |
| 127 | 127 | ||
| 128 | + fcntl | ||
| 129 | + ----- | ||
| 130 | + | ||
| 131 | + Added constants :data:`~fcntl.F_OFD_GETLK`, :data:`~fcntl.F_OFD_SETLK` | ||
| 132 | + and :data:`~fcntl.F_OFD_SETLKW`. | ||
| 133 | + (Contributed by Dong-hee Na in :issue:`38602`.) | ||
| 134 | + | ||
| 128 | 135 | os | |
| 129 | - __ | ||
| 136 | + -- | ||
| 130 | 137 | ||
| 131 | 138 | Added :data:`~os.CLD_KILLED` and :data:`~os.CLD_STOPPED` for :attr:`si_code`. | |
| 132 | 139 | (Contributed by Dong-hee Na in :issue:`38493`.) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + Added constants :data:`~fcntl.F_OFD_GETLK`, :data:`~fcntl.F_OFD_SETLK` | ||
| 2 | + and :data:`~fcntl.F_OFD_SETLKW` to the :mod:`fcntl` module. | ||
| 3 | + Patch by Dong-hee Na. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -495,6 +495,15 @@ all_ins(PyObject* m) | |||
| 495 | 495 | #ifdef F_SETLKW | |
| 496 | 496 | if (PyModule_AddIntMacro(m, F_SETLKW)) return -1; | |
| 497 | 497 | #endif | |
| 498 | + #ifdef F_OFD_GETLK | ||
| 499 | + if (PyModule_AddIntMacro(m, F_OFD_GETLK)) return -1; | ||
| 500 | + #endif | ||
| 501 | + #ifdef F_OFD_SETLK | ||
| 502 | + if (PyModule_AddIntMacro(m, F_OFD_SETLK)) return -1; | ||
| 503 | + #endif | ||
| 504 | + #ifdef F_OFD_SETLKW | ||
| 505 | + if (PyModule_AddIntMacro(m, F_OFD_SETLKW)) return -1; | ||
| 506 | + #endif | ||
| 498 | 507 | #ifdef F_GETOWN | |
| 499 | 508 | if (PyModule_AddIntMacro(m, F_GETOWN)) return -1; | |
| 500 | 509 | #endif | |
| Back | FazBrowse Home | New Git URL |
0 commit comments