Staging
v0.5.1
https://github.com/python/cpython
Revision c36179bf814b7075fe3341807ff0eac40c55dec7 authored by Neal Norwitz on 19 September 2005, 06:42:30 UTC, committed by Neal Norwitz on 19 September 2005, 06:42:30 UTC
 * Fix memory leak in posix.access()
 * Fix use of uninitialized value in forkpty()
   - from the manpage it isn't clear if there are conditions where master_fd
     are uninitialized, but it's safer to initialize
1 parent 5396041
Raw File
Tip revision: c36179bf814b7075fe3341807ff0eac40c55dec7 authored by Neal Norwitz on 19 September 2005, 06:42:30 UTC
Fix problems reported by valgrind:
Tip revision: c36179b
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