mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibC: Minor changes to make nasm work
* Added some missing macros to headers * Stubbed strftime() time function to not assert * Added "rt" mode to fopen(), working just like "r" or "rb"
This commit is contained in:
parent
aba6e6de6a
commit
c2a8c4cedd
5 changed files with 20 additions and 3 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <sys/time.h>
|
||||
#include <sys/times.h>
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
@ -96,9 +97,11 @@ char* asctime(const struct tm*)
|
|||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
size_t strftime(char*, size_t, const char*, const struct tm*)
|
||||
size_t strftime(char* destination, size_t, const char*, const struct tm*)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
// FIXME: Stubbed function to make nasm work. Should be properly implemented
|
||||
strcpy(destination, "strftime_unimplemented");
|
||||
return strlen("strftime_unimplemented");
|
||||
}
|
||||
|
||||
long timezone;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue