cython

Форк
0
30 строк · 1.1 Кб
1
# Note that the actual size of these types is system-dependent, and
2
# cannot be detected before C compile time.  However, the generated C code
3
# will correctly use the actual size of these types *except* for
4
# determining promotion in binary arithmetic expressions involving
5
# mixed types.  In this case, operands are promoted to the declared
6
# larger type, with a bias towards typedef types.  Thus, with the
7
# declarations below, long + time_t will result in a time_t whereas
8
# long long + time_t will result in a long long which should be
9
# acceptable for either 32-bit or 64-bit signed time_t (though admittedly
10
# the POSIX standard doesn't even specify that time_t must be an integral
11
# type).
12

13
cdef extern from "<sys/types.h>":
14
    ctypedef long blkcnt_t
15
    ctypedef long blksize_t
16
    ctypedef long clockid_t
17
    ctypedef long dev_t
18
    ctypedef long gid_t
19
    ctypedef long id_t
20
    ctypedef unsigned long ino_t
21
    ctypedef long mode_t
22
    ctypedef long nlink_t
23
    ctypedef long off_t
24
    ctypedef long pid_t
25
    ctypedef struct sigset_t:
26
        pass
27
    ctypedef long suseconds_t
28
    ctypedef long time_t
29
    ctypedef long timer_t
30
    ctypedef long uid_t
31

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.