File: posix.pxd

package info (click to toggle)
pythontracer 8.10.16-1.2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 352 kB
  • ctags: 461
  • sloc: python: 441; ansic: 325; makefile: 9
file content (15 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cdef extern from "errno.h":
    int errno

cdef extern from "sys/types.h":
    ctypedef unsigned long size_t
    ctypedef int pid_t

cdef extern from "stdio.h":
    ctypedef struct FILE
    int fflush(FILE *stream)
    size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream)
    size_t fwrite(void *ptr, size_t size, size_t nmemb, FILE *stream)

cdef extern from "unistd.h":
    pid_t getpid()