os-course/lab/vtpc/lib/vtpc.c
2025-12-14 13:46:52 +03:00

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);
}