File: linux_select.h

package info (click to toggle)
xview 3.2p1.4-28.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 26,680 kB
  • ctags: 34,403
  • sloc: ansic: 241,397; yacc: 1,435; sh: 1,086; makefile: 148; lex: 76; perl: 54; asm: 50; cpp: 15
file content (20 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Header for linux versions of system calls which are
 * called through syscall() in XView. We don't use syscall,
 * but the unistd.h macros in the kernel sources. */

#if defined(__linux__) && !defined(__LINUX_SELECT_H)
#define __LINUX_SELECT_H

#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/time.h>

int linux_select(int width, fd_set *readfds, fd_set *writefds,
                 fd_set *exceptfds, struct timeval *timeout);
#ifndef __GLIBC__
int sys_fcntl(int fildes, int cmd, int arg);
int sys_read(int fildes, char * buf, off_t cnt);
#endif

#endif /* __LINUX_SELECT_H */