1/**
2 ** Copyright (c) 1995 Michael Smith, All rights reserved.
3 **
4 ** Redistribution and use in source and binary forms, with or without
5 ** modification, are permitted provided that the following conditions
6 ** are met:
7 ** 1. Redistributions of source code must retain the above copyright
8 ** notice, this list of conditions and the following disclaimer as
--- 32 unchanged lines hidden (view full) ---
41 ** The mouse interface functions are derived closely from the mouse
42 ** handler in the XFree86 X server. Many thanks to the XFree86 people
43 ** for their great work!
44 **
45 **/
46
47#ifndef lint
48static const char rcsid[] =
49 "$FreeBSD: head/usr.sbin/moused/moused.c 81364 2001-08-09 18:12:07Z dougb $";
50#endif /* not lint */
51
52#include <ctype.h>
53#include <err.h>
54#include <errno.h>
55#include <fcntl.h>
56#include <limits.h>
57#include <stdio.h>
--- 943 unchanged lines hidden (view full) ---
1001/**
1002 ** usage
1003 **
1004 ** Complain, and free the CPU for more worthy tasks
1005 **/
1006static void
1007usage(void)
1008{
1009 fprintf(stderr, "%s\n%s\n%s\n%s\n",
1010 "usage: moused [-DRcdfs] [-I file] [-F rate] [-r resolution] [-S baudrate]",
1011 " [-a X [,Y]] [-C threshold] [-m N=M] [-w N] [-z N]",
1012 " [-t <mousetype>] [-3 [-E timeout]] -p <port>",
1013 " moused [-d] -i <port|if|type|model|all> -p <port>");
1014 exit(1);
1015}
1016
1017/**
1018 ** Mouse interface code, courtesy of XFree86 3.1.2.
1019 **
1020 ** Note: Various bits have been trimmed, and in my shortsighted enthusiasm
1021 ** to clean, reformat and rationalise naming, it's quite possible that
--- 1921 unchanged lines hidden ---
2 ** Copyright (c) 1995 Michael Smith, All rights reserved.
3 **
4 ** Redistribution and use in source and binary forms, with or without
5 ** modification, are permitted provided that the following conditions
6 ** are met:
7 ** 1. Redistributions of source code must retain the above copyright
8 ** notice, this list of conditions and the following disclaimer as
--- 32 unchanged lines hidden (view full) ---
41 ** The mouse interface functions are derived closely from the mouse
42 ** handler in the XFree86 X server. Many thanks to the XFree86 people
43 ** for their great work!
44 **
45 **/
46
47#ifndef lint
48static const char rcsid[] =
49 "$FreeBSD: head/usr.sbin/moused/moused.c 81364 2001-08-09 18:12:07Z dougb $";
50#endif /* not lint */
51
52#include <ctype.h>
53#include <err.h>
54#include <errno.h>
55#include <fcntl.h>
56#include <limits.h>
57#include <stdio.h>
--- 943 unchanged lines hidden (view full) ---
1001/**
1002 ** usage
1003 **
1004 ** Complain, and free the CPU for more worthy tasks
1005 **/
1006static void
1007usage(void)
1008{
1009 fprintf(stderr, "%s\n%s\n%s\n%s\n",
1010 "usage: moused [-DRcdfs] [-I file] [-F rate] [-r resolution] [-S baudrate]",
1011 " [-a X [,Y]] [-C threshold] [-m N=M] [-w N] [-z N]",
1012 " [-t <mousetype>] [-3 [-E timeout]] -p <port>",
1013 " moused [-d] -i <port|if|type|model|all> -p <port>");
1014 exit(1);
1015}
1016
1017/**
1018 ** Mouse interface code, courtesy of XFree86 3.1.2.
1019 **
1020 ** Note: Various bits have been trimmed, and in my shortsighted enthusiasm
1021 ** to clean, reformat and rationalise naming, it's quite possible that
--- 1921 unchanged lines hidden ---