blob: 1c9b187f31fdbd968400b07f9c2548ffff283212 [file] [log] [blame]
Guido van Rossumf70e43a1991-02-19 12:39:46 +00001
Guido van Rossum85a5fbb1990-10-14 12:07:46 +00002/* System module interface */
3
Fred Drake3cf4d2b2000-07-09 00:55:06 +00004#ifndef Py_SYSMODULE_H
5#define Py_SYSMODULE_H
6#ifdef __cplusplus
7extern "C" {
8#endif
9
Mark Hammond91a681d2002-08-12 07:21:58 +000010PyAPI_FUNC(PyObject *) PySys_GetObject(char *);
11PyAPI_FUNC(int) PySys_SetObject(char *, PyObject *);
12PyAPI_FUNC(FILE *) PySys_GetFile(char *, FILE *);
13PyAPI_FUNC(void) PySys_SetArgv(int, char **);
14PyAPI_FUNC(void) PySys_SetPath(char *);
Guido van Rossumd510c781992-03-23 18:20:04 +000015
Mark Hammond91a681d2002-08-12 07:21:58 +000016PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
Neil Schemenauer96aa0ac2002-09-15 14:09:54 +000017 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
Mark Hammond91a681d2002-08-12 07:21:58 +000018PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
Neil Schemenauer96aa0ac2002-09-15 14:09:54 +000019 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
Guido van Rossumbf6a9b11998-05-12 14:58:52 +000020
Mark Hammond91a681d2002-08-12 07:21:58 +000021PyAPI_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
22PyAPI_DATA(int) _PySys_CheckInterval;
Guido van Rossuma3309961993-07-28 09:05:47 +000023
Mark Hammond91a681d2002-08-12 07:21:58 +000024PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
25PyAPI_FUNC(void) PySys_AddWarnOption(char *);
Guido van Rossum429b41e2000-12-15 22:01:39 +000026
Guido van Rossuma3309961993-07-28 09:05:47 +000027#ifdef __cplusplus
28}
29#endif
30#endif /* !Py_SYSMODULE_H */