Add constants for fast path resume copying
[coreboot.git] / payloads / libpayload / libc / lib.c
index 3f82acf3786f876b774e2195206873063cc758de..616a7c6ca7628e6a5218833513b9648b53117b61 100644 (file)
@@ -54,7 +54,7 @@ int dec2bcd(int d)
 /**
  * Return the absolute value of the specified integer.
  *
- * @param val The integer of which we want to know the absolute value.
+ * @param j The integer of which we want to know the absolute value.
  * @return The absolute value of the specified integer.
  */
 int abs(int j)
@@ -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;
+}
+