]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/os.h
unit-test: make "test -e" test independent of $CWD
[karo-tx-uboot.git] / include / os.h
index b65fba430144d2587c068756fd8bfbd001799354..fa4e39fc74c9eb516fa25096cfdfa70c9bfdc8d7 100644 (file)
@@ -83,6 +83,14 @@ int os_open(const char *pathname, int flags);
  */
 int os_close(int fd);
 
+/**
+ * Access to the OS unlink() system call
+ *
+ * \param pathname Path of file to delete
+ * \return 0 for success, other for error
+ */
+int os_unlink(const char *pathname);
+
 /**
  * Access to the OS exit() system call
  *
@@ -113,7 +121,7 @@ void *os_malloc(size_t length);
  *
  * \param ptr          Pointer to memory block to free
  */
-void *os_free(void *ptr);
+void os_free(void *ptr);
 
 /**
  * Reallocate previously-allocated memory to increase/decrease space