Staging
v0.5.1
https://github.com/python/cpython
Revision 0806749e631ab4e24f78df347a9d932bbc3cb6c7 authored by Gregory P. Smith on 30 September 2008, 20:41:13 UTC, committed by Gregory P. Smith on 30 September 2008, 20:41:13 UTC
calling fork() from a child thread.  This disables that unit test (with a note
printed to stderr) on those platforms.

A caveat about buggy platforms is added to the os.fork documentation.
1 parent f40200b
Raw File
Tip revision: 0806749e631ab4e24f78df347a9d932bbc3cb6c7 authored by Gregory P. Smith on 30 September 2008, 20:41:13 UTC
Works around issue3863: freebsd4/5/6 and os2emx are known to have OS bugs when
Tip revision: 0806749
timefuncs.h
/*  timefuncs.h
 */

/* Utility function related to timemodule.c. */

#ifndef TIMEFUNCS_H
#define TIMEFUNCS_H
#ifdef __cplusplus
extern "C" {
#endif


/* Cast double x to time_t, but raise ValueError if x is too large
 * to fit in a time_t.  ValueError is set on return iff the return
 * value is (time_t)-1 and PyErr_Occurred().
 */
PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);


#ifdef __cplusplus
}
#endif
#endif  /* TIMEFUNCS_H */
back to top