| /* SPDX-License-Identifier: MediaTekProprietary */ |
| |
| #ifndef __UTILITY_H__ |
| #define __UTILITY_H__ |
| |
| |
| /*******************************************************************************/ |
| /* UTILITY definitions */ |
| /*******************************************************************************/ |
| |
| |
| /*******************************************************************************/ |
| /* UTILITY prototypes */ |
| /*******************************************************************************/ |
| |
| |
| /*******************************************************************************/ |
| /* UTILITY variables */ |
| /*******************************************************************************/ |
| |
| |
| /*******************************************************************************/ |
| /* UTILITY functions */ |
| /*******************************************************************************/ |
| extern int safe_close(int fd); |
| extern ssize_t safe_read(int fd, void *buf, size_t count); |
| extern ssize_t safe_write(int fd, const void *buf, size_t count); |
| extern char *dupstr(char* s); |
| extern int nonrt_system(const char *cmd); |
| |
| |
| #endif // __UTILITY_H__ |