forked from Bananymous/banan-os
LibC: Add stubs for ungetc(), tcflush() and symlink()
This commit is contained in:
parent
adadb10b15
commit
4d96ae56ac
|
@ -705,8 +705,11 @@ char* tmpnam(char* storage)
|
||||||
return storage;
|
return storage;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
int ungetc(int c, FILE* stream)
|
||||||
int ungetc(int, FILE*);
|
{
|
||||||
|
dwarnln("FIXME: ungetc({}, {})", c, stream);
|
||||||
|
ASSERT_NOT_REACHED();
|
||||||
|
}
|
||||||
|
|
||||||
int vfprintf(FILE* file, const char* format, va_list arguments)
|
int vfprintf(FILE* file, const char* format, va_list arguments)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#include <BAN/Assert.h>
|
||||||
|
#include <BAN/Debug.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
@ -65,7 +68,11 @@ int tcdrain(int);
|
||||||
|
|
||||||
int tcflow(int, int);
|
int tcflow(int, int);
|
||||||
|
|
||||||
int tcflush(int, int);
|
int tcflush(int fd, int queue_selector)
|
||||||
|
{
|
||||||
|
dwarnln("FIXME: tcflush({}, {})", fd, queue_selector);
|
||||||
|
ASSERT_NOT_REACHED();
|
||||||
|
}
|
||||||
|
|
||||||
int tcgetattr(int fildes, struct termios* termios)
|
int tcgetattr(int fildes, struct termios* termios)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#include <BAN/Assert.h>
|
#include <BAN/Assert.h>
|
||||||
|
#include <BAN/Debug.h>
|
||||||
#include <kernel/Syscall.h>
|
#include <kernel/Syscall.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -534,3 +536,9 @@ unsigned alarm(unsigned seconds)
|
||||||
setitimer(ITIMER_REAL, &value, &ovalue);
|
setitimer(ITIMER_REAL, &value, &ovalue);
|
||||||
return ovalue.it_value.tv_sec;
|
return ovalue.it_value.tv_sec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int symlink(const char* path1, const char* path2)
|
||||||
|
{
|
||||||
|
dwarnln("FIXME: symlink({}, {})", path1, path2);
|
||||||
|
ASSERT_NOT_REACHED();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue