projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libpayload: Some more compatibility (for flashrom)
[coreboot.git]
/
payloads
/
libpayload
/
libc
/
lib.c
diff --git
a/payloads/libpayload/libc/lib.c
b/payloads/libpayload/libc/lib.c
index 3666265d36466ab0223d92c87747675339e62b10..616a7c6ca7628e6a5218833513b9648b53117b61 100644
(file)
--- a/
payloads/libpayload/libc/lib.c
+++ b/
payloads/libpayload/libc/lib.c
@@
-109,7
+109,20
@@
u8 hex2bin(u8 h)
*/
void fatal(const char *msg)
{
-
printf(
"%s",msg);
+
fprintf(stderr,
"%s",msg);
halt();
}
+void exit(int status)
+{
+ printf("exited with status %d\n", status);
+ halt();
+}
+
+int errno;
+
+char *getenv(const char *name)
+{
+ return NULL;
+}
+