Nice wrappers around ioctl() syscall
This commit is contained in:
12
ulib/system/ioctl.h
Normal file
12
ulib/system/ioctl.h
Normal file
@ -0,0 +1,12 @@
|
||||
#ifndef ULIB_SYSTEM_IOCTL_H_
|
||||
#define ULIB_SYSTEM_IOCTL_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
int32_t ioctl_openfile(const char *path, uint64_t flags);
|
||||
int32_t ioctl_writefile(int32_t ioh, const uint8_t *const buffer, size_t len, size_t off);
|
||||
int32_t ioctl_readfile(int32_t ioh, uint8_t *const buffer, size_t len, size_t off);
|
||||
int32_t ioctl_closefile(int32_t ioh);
|
||||
|
||||
#endif // ULIB_SYSTEM_IOCTL_H_
|
Reference in New Issue
Block a user