Commit 1a4229cc authored by Charles Blake's avatar Charles Blake

Remove libc/time.pxd dependency upon sys/types.h (on suggestion of Larsmans).

Also, remove clock_t from posix.types making users find it in libc.time.  It's
really a standard C type and not used anywhere in system interfaces anyway.

--HG--
extra : transplant_source : %AF%F2P%8C%26_%B6%A0%1E6%B3%84jg%A0%20%5D1D%22
parent 089c4e51
# http://en.wikipedia.org/wiki/C_date_and_time_functions
from posix.types cimport clock_t, time_t
from libc.stddef cimport wchar_t
cdef extern from "time.h" nogil:
ctypedef long clock_t
ctypedef long time_t
enum: CLOCKS_PER_SEC
clock_t clock() # CPU time
time_t time(time_t *) # wall clock time since Unix epoch
......
cdef extern from "sys/types.h":
ctypedef long blkcnt_t
ctypedef long blksize_t
ctypedef long clock_t
ctypedef long clockid_t
ctypedef long dev_t
ctypedef long gid_t
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment