Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(170706)

Side by Side Diff: Include/pythonrun.h

Issue 18756: os.urandom() fails under high load
Patch Set: Created 5 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Lib/test/test_cmd_line.py » ('j') | Lib/test/test_cmd_line.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* Interfaces to parse and execute pieces of python code */ 2 /* Interfaces to parse and execute pieces of python code */
3 3
4 #ifndef Py_PYTHONRUN_H 4 #ifndef Py_PYTHONRUN_H
5 #define Py_PYTHONRUN_H 5 #define Py_PYTHONRUN_H
6 #ifdef __cplusplus 6 #ifdef __cplusplus
7 extern "C" { 7 extern "C" {
8 #endif 8 #endif
9 9
10 #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \ 10 #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 PyAPI_FUNC(void) PyList_Fini(void); 214 PyAPI_FUNC(void) PyList_Fini(void);
215 PyAPI_FUNC(void) PySet_Fini(void); 215 PyAPI_FUNC(void) PySet_Fini(void);
216 PyAPI_FUNC(void) PyBytes_Fini(void); 216 PyAPI_FUNC(void) PyBytes_Fini(void);
217 PyAPI_FUNC(void) PyByteArray_Fini(void); 217 PyAPI_FUNC(void) PyByteArray_Fini(void);
218 PyAPI_FUNC(void) PyFloat_Fini(void); 218 PyAPI_FUNC(void) PyFloat_Fini(void);
219 PyAPI_FUNC(void) PyOS_FiniInterrupts(void); 219 PyAPI_FUNC(void) PyOS_FiniInterrupts(void);
220 PyAPI_FUNC(void) _PyGC_DumpShutdownStats(void); 220 PyAPI_FUNC(void) _PyGC_DumpShutdownStats(void);
221 PyAPI_FUNC(void) _PyGC_Fini(void); 221 PyAPI_FUNC(void) _PyGC_Fini(void);
222 PyAPI_FUNC(void) PySlice_Fini(void); 222 PyAPI_FUNC(void) PySlice_Fini(void);
223 PyAPI_FUNC(void) _PyType_Fini(void); 223 PyAPI_FUNC(void) _PyType_Fini(void);
224 PyAPI_FUNC(void) _PyRandom_Fini(void);
224 225
225 PyAPI_DATA(PyThreadState *) _Py_Finalizing; 226 PyAPI_DATA(PyThreadState *) _Py_Finalizing;
226 #endif 227 #endif
227 228
228 /* Stuff with no proper home (yet) */ 229 /* Stuff with no proper home (yet) */
229 #ifndef Py_LIMITED_API 230 #ifndef Py_LIMITED_API
230 PyAPI_FUNC(char *) PyOS_Readline(FILE *, FILE *, char *); 231 PyAPI_FUNC(char *) PyOS_Readline(FILE *, FILE *, char *);
231 #endif 232 #endif
232 PyAPI_DATA(int) (*PyOS_InputHook)(void); 233 PyAPI_DATA(int) (*PyOS_InputHook)(void);
233 PyAPI_DATA(char) *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, char *); 234 PyAPI_DATA(char) *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, char *);
(...skipping 21 matching lines...) Expand all
255 PyAPI_FUNC(PyOS_sighandler_t) PyOS_getsig(int); 256 PyAPI_FUNC(PyOS_sighandler_t) PyOS_getsig(int);
256 PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t); 257 PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t);
257 258
258 /* Random */ 259 /* Random */
259 PyAPI_FUNC(int) _PyOS_URandom (void *buffer, Py_ssize_t size); 260 PyAPI_FUNC(int) _PyOS_URandom (void *buffer, Py_ssize_t size);
260 261
261 #ifdef __cplusplus 262 #ifdef __cplusplus
262 } 263 }
263 #endif 264 #endif
264 #endif /* !Py_PYTHONRUN_H */ 265 #endif /* !Py_PYTHONRUN_H */
OLDNEW
« no previous file with comments | « no previous file | Lib/test/test_cmd_line.py » ('j') | Lib/test/test_cmd_line.py » ('J')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+