14
include/fat12.h
Normal file
14
include/fat12.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef PANG_O_LIN_FAT12_H__
|
||||
#define PANG_O_LIN_FAT12_H__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void fat12_write_u16(void *ptr, uint16_t val);
|
||||
uint16_t fat12_read_u16(void *ptr);
|
||||
void fat12_set_cluster(void *fat, uint32_t cluster, uint32_t value);
|
||||
uint32_t fat12_get_cluster(void *fat, uint32_t cluster);
|
||||
|
||||
int fat12_defrag(int fd);
|
||||
int fat12_mkfs(int fd, uint32_t bytes);
|
||||
|
||||
#endif /* PANG_O_LIN_FAT12_H__ */
|
14
include/io.h
Normal file
14
include/io.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef PANG_O_LIN_IO_H__
|
||||
#define PANG_O_LIN_IO_H__
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef unix
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
ssize_t pang_write(int fd, const void *buf, size_t count);
|
||||
ssize_t pang_read(int fd, void *buf, size_t count);
|
||||
off_t pang_seek(int fd, off_t offset, int whence);
|
||||
|
||||
#endif /* PANG_O_LIN_IO_H__ */
|
Reference in New Issue
Block a user