mirror of
https://github.com/zinchenko291/os-course.git
synced 2026-09-14 14:05:37 +05:00
31 lines
565 B
C
31 lines
565 B
C
#include "vtpc.h"
|
|
|
|
#include <fcntl.h>
|
|
#include <stddef.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
|
|
int vtpc_open(const char* path, int mode, int access) {
|
|
return open(path, mode, access);
|
|
}
|
|
|
|
int vtpc_close(int fd) {
|
|
return close(fd);
|
|
}
|
|
|
|
ssize_t vtpc_read(int fd, void* buf, size_t count) {
|
|
return read(fd, buf, count);
|
|
}
|
|
|
|
ssize_t vtpc_write(int fd, const void* buf, size_t count) {
|
|
return write(fd, buf, count);
|
|
}
|
|
|
|
off_t vtpc_lseek(int fd, off_t offset, int whence) {
|
|
return lseek(fd, offset, whence);
|
|
}
|
|
|
|
int vtpc_fsync(int fd) {
|
|
return fsync(fd);
|
|
}
|