mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-10-04 07:58:37 +00:00
remove unused hyper_open_serial_dev()
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
-10
@@ -565,16 +565,6 @@ int hyper_insmod(char *module)
|
||||
}
|
||||
#endif
|
||||
|
||||
int hyper_open_serial_dev(char *tty)
|
||||
{
|
||||
int fd = open(tty, O_RDWR | O_CLOEXEC | O_NOCTTY);
|
||||
|
||||
if (fd < 0)
|
||||
perror("fail to open tty device");
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
||||
int hyper_setfd_cloexec(int fd)
|
||||
{
|
||||
int flags = fcntl(fd, F_GETFD);
|
||||
|
||||
@@ -30,7 +30,6 @@ void hyper_filize(char *hyper_path);
|
||||
int hyper_mkdir(char *path, mode_t mode);
|
||||
int hyper_write_file(const char *path, const char *value, size_t len);
|
||||
int hyper_open_channel(char *channel, int mode);
|
||||
int hyper_open_serial_dev(char *tty);
|
||||
int hyper_setfd_cloexec(int fd);
|
||||
int hyper_setfd_block(int fd);
|
||||
int hyper_setfd_nonblock(int fd);
|
||||
|
||||
Reference in New Issue
Block a user