X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=include%2Fos.h;h=fa4e39fc74c9eb516fa25096cfdfa70c9bfdc8d7;hp=b65fba430144d2587c068756fd8bfbd001799354;hb=cfd13e8dda9d2db3f6bdf32d623aecf10ee1ba50;hpb=5c2859cdc30287b3593d9df88f48c31eecb0bbed diff --git a/include/os.h b/include/os.h index b65fba4301..fa4e39fc74 100644 --- a/include/os.h +++ b/include/os.h @@ -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