/src/os/rt-thread/ftk_select_rtthread.h
http://ftk.googlecode.com/ · C Header · 43 lines · 7 code · 7 blank · 29 comment · 0 complexity · c5605123924d1791e83b5676a6e0a690 MD5 · raw file
- /*
- * File: ftk_select_rtthread.h
- * Author: Jiao JinXing <jiaojinxing1987@gmail.com>
- * Brief: RT-Thread select implemention.
- *
- * Copyright (c) 2009 - 2010 Jiao JinXing <jiaojinxing1987@gmail.com>
- *
- * Licensed under the Academic Free License version 2.1
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
- /*
- * History:
- * ================================================================
- * 2010-10-2 Jiao JinXing <jiaojinxing1987@gmail.com> created
- *
- */
- #ifndef __FTK_SELECT_RTTHREAD_H__
- #define __FTK_SELECT_RTTHREAD_H__
- int ftk_rtthread_select(int mfd, fd_set *read_fdset, fd_set *write_fdset, fd_set *err_fdset, struct timeval *tv);
- int ftk_rtthread_select_fd_alloc(void);
- void ftk_rtthread_select_fd_free(int fd);
- int ftk_rtthread_set_file_readble(int fd);
- #endif // __FTK_SELECT_RTTHREAD_H__