| 1 | # C Standard IO Declarations |
|---|
| 2 | # |
|---|
| 3 | # Copyright (C) 2006,2007,2008 PySoy Group |
|---|
| 4 | # |
|---|
| 5 | # This program is free software; you can redistribute it and/or modify |
|---|
| 6 | # it under the terms of the GNU Affero General Public License as published |
|---|
| 7 | # by the Free Software Foundation, either version 3 of the License, or |
|---|
| 8 | # (at your option) any later version. |
|---|
| 9 | # |
|---|
| 10 | # This program is distributed in the hope that it will be useful, |
|---|
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | # GNU Affero General Public License for more details. |
|---|
| 14 | # |
|---|
| 15 | # You should have received a copy of the GNU Affero General Public License |
|---|
| 16 | # along with this program; if not, see http://www.gnu.org/licenses |
|---|
| 17 | # |
|---|
| 18 | # $Id$ |
|---|
| 19 | |
|---|
| 20 | cdef extern from "stdio.h" nogil : |
|---|
| 21 | ctypedef enum : |
|---|
| 22 | SEEK_SET |
|---|
| 23 | SEEK_CUR |
|---|
| 24 | SEEK_END |
|---|
| 25 | int printf ( char*, ... ) |
|---|
| 26 | void *fopen ( char*, char* ) |
|---|
| 27 | int fclose ( void* ) |
|---|
| 28 | int fread ( void*, int, int, void* ) |
|---|
| 29 | int fwrite ( void*, int, int, void* ) |
|---|
| 30 | int fseek ( void*, long, int ) |
|---|
| 31 | long ftell ( void* ) |
|---|
| 32 | void rewind ( void* ) |
|---|
| 33 | |
|---|
| 34 | cdef extern from "signal.h" nogil : |
|---|
| 35 | int c_raise "raise" ( int ) |
|---|