1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
'''
dirent.pxd
This file contains Cython definitions for dirent.h and sys/types.h
Copyright © 2010 Nikolaus Rath <Nikolaus.org>
This file is part of Python-LLFUSE. This work may be distributed under
the terms of the GNU LGPL.
'''
cdef extern from "<dirent.h>" nogil:
ctypedef struct DIR:
pass
cdef struct dirent:
char* d_name
dirent* readdir(DIR* dirp)
int readdir_r(DIR *dirp, dirent *entry, dirent **result)
cdef extern from "<sys/types.h>" nogil:
DIR *opendir(char *name)
int closedir(DIR* dirp)
|