blob: a87545d781cc6381903381c24c0af39df4289d5d [file] [log] [blame]
/* 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__