@@ -10117,17 +10117,8 @@ os.timerfd_create
1011710117 A valid clock ID constant as timer file descriptor.
1011810118
1011910119 time.CLOCK_REALTIME
10120- A settable system-wide real-time clock.
10121- If system clock is changed, timer setting need to be updated.
10122- See os.TFD_TIMER_ABSTIME and os.TFD_TIMER_CANCEL_ON_SET.
10123-
1012410120 time.CLOCK_MONOTONIC
10125- A nonsettable monotonically increasing clock.
10126- Even if system clock is changed, timer setting will be not affected.
10127-
1012810121 time.CLOCK_BOOTTIME
10129- Same as time.CLOCK_MONOTONIC except that it inclues any time that
10130- the system is suspended.
1013110122 /
1013210123 *
1013310124 flags: int = 0
@@ -10145,7 +10136,7 @@ Create and return a timer file descriptor.
1014510136
1014610137static PyObject *
1014710138os_timerfd_create_impl (PyObject * module , int clockid , int flags )
10148- /*[clinic end generated code: output=1caae80fb168004a input=f23bfa49fc4b6576 ]*/
10139+ /*[clinic end generated code: output=1caae80fb168004a input=64b7020c5ac0b8f4 ]*/
1014910140
1015010141{
1015110142 int fd ;
@@ -10170,24 +10161,16 @@ os.timerfd_settime
1017010161 0 or a bit mask of TFD_TIMER_ABSTIME or TFD_TIMER_CANCEL_ON_SET.
1017110162 initial: double = 0.0
1017210163 The initial expiration time, in seconds.
10173-
10174- * If *flags* has TFD_TIMER_ABSTIME bit, *flags* must be in absolute time.
10175- * If *flags* doesn't have TFD_TIMER_ABSTIME bit, *flags* must be in relative time.
10176- * If *flags* has TFD_TIMER_ABSTIME bit and TFD_TIMER_CANCEL_ON_SET bit and *flags* and time.CLOCK_REALTIME
10177- and system clock is changed discontinuously, reading a file descriptor is aborted with ECANCELED.
1017810164 interval: double = 0.0
1017910165 The timer's interval, in seconds.
1018010166
10181- * If 'interval' is zero, timer will be run once.
10182- * If 'interval' is non-zero, timer will be run periodically with the interval.
10183-
1018410167Alter a timer file descriptor's internal timer in seconds.
1018510168[clinic start generated code]*/
1018610169
1018710170static PyObject *
1018810171os_timerfd_settime_impl (PyObject * module , int fd , int flags , double initial ,
1018910172 double interval )
10190- /*[clinic end generated code: output=0dda31115317adb9 input=436a433c2c9664f0 ]*/
10173+ /*[clinic end generated code: output=0dda31115317adb9 input=6c24e47e7a4d799e ]*/
1019110174{
1019210175 struct itimerspec new_value ;
1019310176 struct itimerspec old_value ;
@@ -10221,24 +10204,16 @@ os.timerfd_settime_ns
1022110204 0 or a bit mask of TFD_TIMER_ABSTIME or TFD_TIMER_CANCEL_ON_SET.
1022210205 initial: long_long = 0
1022310206 initial expiration timing in seconds.
10224-
10225- * If *flags* has TFD_TIMER_ABSTIME bit, *flags* must be in absolute time.
10226- * If *flags* doesn't have TFD_TIMER_ABSTIME bit, *flags* must be in relative time.
10227- * If *flags* has TFD_TIMER_ABSTIME bit and TFD_TIMER_CANCEL_ON_SET bit and *flags* and time.CLOCK_REALTIME
10228- and system clock is changed discontinuously, reading a file descriptor is aborted with ECANCELED.
1022910207 interval: long_long = 0
1023010208 interval for the timer in seconds.
1023110209
10232- * If 'interval' is zero, timer will be run once.
10233- * If 'interval' is non-zero, timer will be run periodically with the interval.
10234-
1023510210Alter a timer file descriptor's internal timer in nanoseconds.
1023610211[clinic start generated code]*/
1023710212
1023810213static PyObject *
1023910214os_timerfd_settime_ns_impl (PyObject * module , int fd , int flags ,
1024010215 long long initial , long long interval )
10241- /*[clinic end generated code: output=6273ec7d7b4cc0b3 input=81eb655e9802cb05 ]*/
10216+ /*[clinic end generated code: output=6273ec7d7b4cc0b3 input=261e105d6e42f5bc ]*/
1024210217{
1024310218 struct itimerspec new_value ;
1024410219 struct itimerspec old_value ;
0 commit comments