|
|
1.1 ! root 1: /* ! 2: * File: sys4.c ! 3: * ! 4: * Purpose: ! 5: * Non-Sytem V (compatibility) system calls introduced by the 386 port. ! 6: * ! 7: * $Log: sys4.c,v $ ! 8: * Revision 1.6 93/04/16 06:50:09 bin ! 9: * Hal: kernel 76 update ! 10: * ! 11: * Revision 1.2 92/01/06 12:00:58 hal ! 12: * Compile with cc.mwc. ! 13: * ! 14: */ ! 15: ! 16: /* ! 17: * Includes. ! 18: */ ! 19: #include <sgtty.h> ! 20: ! 21: /* ! 22: * Definitions. ! 23: * Constants. ! 24: * Macros with argument lists. ! 25: * Typedefs. ! 26: * Enums. ! 27: */ ! 28: typedef unsigned char uchar; ! 29: typedef unsigned int uint; ! 30: typedef unsigned long ulong; ! 31: ! 32: /* ! 33: * Functions. ! 34: * Import Functions. ! 35: * Export Functions. ! 36: * Local Functions. ! 37: */ ! 38: int ustty(); ! 39: int ugtty(); ! 40: ! 41: /* ! 42: * Global Data. ! 43: * Import Variables. ! 44: * Export Variables. ! 45: * Local Variables. ! 46: */ ! 47: /* ! 48: * ! 49: */ ! 50: ! 51: int ustty(fd, sp) ! 52: int fd; ! 53: struct sgttyb * sp; ! 54: { ! 55: return uioctl(fd, TIOCSETP, sp); ! 56: } ! 57: ! 58: int ugtty(fd, sp) ! 59: int fd; ! 60: struct sgttyb * sp; ! 61: { ! 62: return uioctl(fd, TIOCGETP, sp); ! 63: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.