|
|
@ -95,7 +95,11 @@ struct video_data { |
|
|
|
int (*open_f)(const char *file, int oflag, ...); |
|
|
|
int (*open_f)(const char *file, int oflag, ...); |
|
|
|
int (*close_f)(int fd); |
|
|
|
int (*close_f)(int fd); |
|
|
|
int (*dup_f)(int fd); |
|
|
|
int (*dup_f)(int fd); |
|
|
|
|
|
|
|
#ifdef __GLIBC__ |
|
|
|
int (*ioctl_f)(int fd, unsigned long int request, ...); |
|
|
|
int (*ioctl_f)(int fd, unsigned long int request, ...); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
int (*ioctl_f)(int fd, int request, ...); |
|
|
|
|
|
|
|
#endif |
|
|
|
ssize_t (*read_f)(int fd, void *buffer, size_t n); |
|
|
|
ssize_t (*read_f)(int fd, void *buffer, size_t n); |
|
|
|
void *(*mmap_f)(void *start, size_t length, int prot, int flags, int fd, int64_t offset); |
|
|
|
void *(*mmap_f)(void *start, size_t length, int prot, int flags, int fd, int64_t offset); |
|
|
|
int (*munmap_f)(void *_start, size_t length); |
|
|
|
int (*munmap_f)(void *_start, size_t length); |
|
|
|