|
XenevaOS
|

Go to the source code of this file.
Classes | |
| struct | _GUID |
| struct | _disk_info_ |
| struct | _disk_partition_info_ |
| struct | _XEFileStatus_ |
| struct | _XEFileControl_ |
| struct | _XEDirectoryEnty_ |
Macros | |
| #define | FILE_OPEN_READ_ONLY (1 << 1) |
| #define | FILE_OPEN_WRITE (1 << 2) |
| #define | FILE_OPEN_CREAT (1 << 3) |
| #define | FILE_DIRECTORY (1 << 1) |
| #define | FILE_GENERAL (1 << 2) |
| #define | FILE_DEVICE (1 << 3) |
| #define | FILE_DELETED (1 << 4) |
| #define | FILE_INVALID (1 << 5) |
| #define | FILE_FILE_SYSTEM (1 << 6) |
| #define | FILE_PIPE (1 << 7) |
| #define | XENEVA_STDIN 0 |
| #define | XENEVA_STDOUT 1 |
| #define | XENEVA_STDERR 2 |
| #define | XE_MAX_STORAGE_DEVICE 26 |
| #define | XE_MAX_PARTITION 128 |
Typedefs | |
| typedef struct _GUID | GUID |
| typedef struct _disk_info_ | XEVDiskInfo |
| typedef struct _disk_partition_info_ | XEVDiskPartitionInfo |
| typedef struct _XEFileStatus_ | XEFileStatus |
| typedef struct _XEFileControl_ | XEFileIOControl |
| typedef struct _XEDirectoryEnty_ | XEDirectoryEntry |
Functions | |
| XE_LIB int | _KeOpenFile (char *pathname, int mode) |
| XE_LIB size_t | _KeReadFile (int fd, void *buffer, size_t length) |
| XE_LIB size_t | _KeWriteFile (int fd, void *buffer, size_t length) |
| XE_LIB int | _KeCreateDir (char *filename) |
| XE_LIB int | _KeRemoveFile (char *pathname) |
| XE_LIB int | _KeCloseFile (int fd) |
| XE_LIB int | _KeFileIoControl (int fd, int code, void *arg) |
| XE_LIB int | _KeFileStat (int fd, void *buf) |
| XE_LIB int | _KeOpenDir (char *filename) |
| XE_LIB int | _KeReadDir (int dirfd, void *dirent) |
| XE_LIB int | _KeFileSetOffset (int fd, size_t offset) |
| XE_LIB int | _KeCreatePipe (char *name, size_t sz) |
| XE_LIB int | _KeGetStorageDiskInfo (uint8_t diskID, void *buffer) |
| XE_LIB int | _KeGetStoragePartitionInfo (uint8_t diskID, uint8_t partitionID, void *buffer) |
BSD 2-Clause License
Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define FILE_DELETED (1 << 4) |
| #define FILE_DEVICE (1 << 3) |
| #define FILE_DIRECTORY (1 << 1) |
| #define FILE_FILE_SYSTEM (1 << 6) |
| #define FILE_GENERAL (1 << 2) |
| #define FILE_INVALID (1 << 5) |
| #define FILE_OPEN_CREAT (1 << 3) |
| #define FILE_OPEN_READ_ONLY (1 << 1) |
| #define FILE_OPEN_WRITE (1 << 2) |
| #define FILE_PIPE (1 << 7) |
| #define XE_MAX_PARTITION 128 |
| #define XE_MAX_STORAGE_DEVICE 26 |
| #define XENEVA_STDERR 2 |
| #define XENEVA_STDIN 0 |
| #define XENEVA_STDOUT 1 |
| typedef struct _XEDirectoryEnty_ XEDirectoryEntry |
| typedef struct _XEFileControl_ XEFileIOControl |
| typedef struct _XEFileStatus_ XEFileStatus |
| typedef struct _disk_info_ XEVDiskInfo |
| typedef struct _disk_partition_info_ XEVDiskPartitionInfo |
| XE_LIB int _KeCloseFile | ( | int | fd | ) |
| XE_LIB int _KeCreateDir | ( | char * | filename | ) |
| XE_LIB int _KeFileIoControl | ( | int | fd, |
| int | code, | ||
| void * | arg | ||
| ) |
| XE_LIB int _KeFileStat | ( | int | fd, |
| void * | buf | ||
| ) |
| XE_LIB int _KeOpenDir | ( | char * | filename | ) |
| XE_LIB int _KeOpenFile | ( | char * | pathname, |
| int | mode | ||
| ) |
| XE_LIB int _KeReadDir | ( | int | dirfd, |
| void * | dirent | ||
| ) |
| XE_LIB int _KeRemoveFile | ( | char * | pathname | ) |