- Переход на task-runner Just (Justfile - для хоста, build.just - для контейнера) - настройки clang-format - небольшие изменения в структуре проекта
50 lines
No EOL
752 B
C
50 lines
No EOL
752 B
C
#include <errno.h>
|
|
#include <sys/stat.h>
|
|
|
|
void _exit(int status) {
|
|
(void)status;
|
|
while (1) {
|
|
}
|
|
}
|
|
int _close(int fd) {
|
|
(void)fd;
|
|
return -1;
|
|
}
|
|
int _fstat(int fd, struct stat *st) {
|
|
(void)fd;
|
|
st->st_mode = S_IFCHR;
|
|
return 0;
|
|
}
|
|
int _isatty(int fd) {
|
|
(void)fd;
|
|
return 1;
|
|
}
|
|
int _lseek(int fd, int ptr, int dir) {
|
|
(void)fd;
|
|
(void)ptr;
|
|
(void)dir;
|
|
return 0;
|
|
}
|
|
int _read(int fd, char *ptr, int len) {
|
|
(void)fd;
|
|
(void)ptr;
|
|
(void)len;
|
|
return 0;
|
|
}
|
|
int _write(int fd, char *ptr, int len) {
|
|
(void)fd;
|
|
(void)ptr;
|
|
return len;
|
|
}
|
|
int _kill(int pid, int sig) {
|
|
(void)pid;
|
|
(void)sig;
|
|
errno = EINVAL;
|
|
return -1;
|
|
}
|
|
int _getpid(void) { return 1; }
|
|
void *_sbrk(int incr) {
|
|
(void)incr;
|
|
errno = ENOMEM;
|
|
return (void *)-1;
|
|
} |