/* * Copyright 2018 Oticon A/S * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _BS_UTIL_OSWRAP_H #define _BS_UTIL_OSWRAP_H #include #include #include "bs_types.h" #include "bs_string.h" #ifdef __cplusplus extern "C"{ #endif void bs_set_sig_term_handler(void (*f)(int), int signals[], int n); #if defined(__linux) uint64_t bs_get_process_start_time(long int pid); #endif void* bs_malloc(size_t size); void* bs_aligned_alloc(size_t alignment, size_t size); void* bs_calloc(size_t nmemb, size_t size); void* bs_realloc(void *ptr, size_t size); void bs_skipline(FILE *file); void bs_readline(char *s, int size, FILE *stream); int bs_createfolder(const char* folderpath); FILE* bs_fopen(const char *file_path, const char *open_type); #ifdef __cplusplus } #endif #endif