|
| 1 | +// |
| 2 | +// Licensed under the Apache License v2.0 with LLVM Exceptions. |
| 3 | +// See https://llvm.org/LICENSE.txt for license information. |
| 4 | +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 5 | +// |
| 6 | +// Copyright (c) 2024 Alan de Freitas (alandefreitas@gmail.com) |
| 7 | +// |
| 8 | +// Official repository: https://github.com/cppalliance/mrdocs |
| 9 | +// |
| 10 | + |
| 11 | +#ifndef MRDOCS_SHARE_HEADERS_LIBC_STUBS_IO_H |
| 12 | +#define MRDOCS_SHARE_HEADERS_LIBC_STUBS_IO_H |
| 13 | + |
| 14 | +int |
| 15 | +_access(char *path, int mode); |
| 16 | + |
| 17 | +int |
| 18 | +_chmod(const char *pathname, int pmode); |
| 19 | + |
| 20 | +int |
| 21 | +_chsize(int handle, long size); |
| 22 | + |
| 23 | +int |
| 24 | +_close(int handle); |
| 25 | + |
| 26 | +int |
| 27 | +_commit(int handle); |
| 28 | + |
| 29 | +int |
| 30 | +_creat(const char *name, int pmode); |
| 31 | + |
| 32 | +int |
| 33 | +_dup(int fd); |
| 34 | + |
| 35 | +int |
| 36 | +dup2(int fdl, int fd2); |
| 37 | + |
| 38 | +int |
| 39 | +_eof(int handle); |
| 40 | + |
| 41 | +long |
| 42 | +_filelength(int fd); |
| 43 | + |
| 44 | +int |
| 45 | +_isatty(int fd); |
| 46 | + |
| 47 | +int |
| 48 | +_locking(int fd, int mode, long size); |
| 49 | + |
| 50 | +long |
| 51 | +_lseek(int fd, long offset, int mode); |
| 52 | + |
| 53 | +char * |
| 54 | +_mktemp(char *template_); |
| 55 | + |
| 56 | +int |
| 57 | +_open(const char *file, int oflag, int pmode); |
| 58 | + |
| 59 | +int |
| 60 | +_open(const char *file, int oflag); |
| 61 | + |
| 62 | +int |
| 63 | +_read(int fd, void *buffer, unsigned int len); |
| 64 | + |
| 65 | +int |
| 66 | +_setmode(int handle, int mode); |
| 67 | + |
| 68 | +int |
| 69 | +_sopen(const char *file, int oflag, int shflag, int pmode); |
| 70 | + |
| 71 | +int |
| 72 | +_sopen(const char *file, int oflag, int shflag); |
| 73 | + |
| 74 | +long |
| 75 | +_tell(int handle); |
| 76 | + |
| 77 | +int |
| 78 | +_write(int fd, void *buffer, unsigned int length); |
| 79 | + |
| 80 | +unsigned |
| 81 | +_umask(int mode); |
| 82 | + |
| 83 | +int |
| 84 | +_unlink(const char *filename); |
| 85 | + |
| 86 | +long |
| 87 | +filesize(const char *filename); |
| 88 | + |
| 89 | +unsigned short |
| 90 | +getDS(void); |
| 91 | + |
| 92 | +int |
| 93 | +getftime(int handle, struct ftime *ftimep); |
| 94 | + |
| 95 | +int |
| 96 | +lock(int handle, long offset, long length); |
| 97 | + |
| 98 | +int |
| 99 | +remove(const char *filename); |
| 100 | + |
| 101 | +int |
| 102 | +rename(const char *oldname, const char *newname); |
| 103 | + |
| 104 | +int |
| 105 | +setftime(int handle, struct ftime *ftime); |
| 106 | + |
| 107 | +int |
| 108 | +unlock(int handle, long offset, long length); |
| 109 | + |
| 110 | +#endif // MRDOCS_SHARE_HEADERS_LIBC_STUBS_IO_H |
0 commit comments