Update README.OS-lib to reflect reality.
This commit is contained in:
parent
f72500c4a0
commit
d1031a8972
|
@ -36,7 +36,6 @@ have been made in implementation.
|
|||
OS library.
|
||||
bsd/ OS support for the 386BSD/NetBSD/FreeBSD operating
|
||||
systems.
|
||||
bsdi/ OS support for the BSD/386 operating system.
|
||||
linux/ OS support for the Linux operating system.
|
||||
sco/ OS support for the SCO SVR3.x operating system.
|
||||
solx86/ OS support for the Solaris x86 operating system.
|
||||
|
@ -214,288 +213,6 @@ void xf86UseMsg(void)
|
|||
*/
|
||||
}
|
||||
|
||||
void xf86SoundKbdBell(int loudness, int pitch, int duration)
|
||||
{
|
||||
/*
|
||||
* Sound the keyboard bell. pitch is in Hz, duration in ms,
|
||||
* loudness is in the range 0-100 (0 -> off). For systems
|
||||
* where the loudness can't be controlled, scale the duration
|
||||
* by loudness/50.
|
||||
*/
|
||||
}
|
||||
|
||||
void xf86SetKbdLeds(int leds)
|
||||
{
|
||||
/*
|
||||
* Set the keyboard LEDs to the state indicated in leds
|
||||
*/
|
||||
}
|
||||
|
||||
int xf86GetKbdLeds(void)
|
||||
{
|
||||
/*
|
||||
* Return the state of the keyboard LEDs. If the OS doesn't
|
||||
* support this, return 0.
|
||||
*/
|
||||
}
|
||||
|
||||
void xf86SetKbdRepeat(char rad)
|
||||
{
|
||||
/*
|
||||
* Set the keyboard repeat rate and delay according the
|
||||
* the rad value. The lower 5 bits determine the repeat
|
||||
* rate (lower value -> higher rate). The next 2 bits
|
||||
* determine the delay.
|
||||
* This should possibly be changed to take separate rate and
|
||||
* delay parameters.
|
||||
*/
|
||||
}
|
||||
|
||||
void xf86KbdInit(void)
|
||||
{
|
||||
/*
|
||||
* Save initial keyboard state. This is called at the start of
|
||||
* each server generation.
|
||||
*/
|
||||
}
|
||||
|
||||
int xf86KbdOn(void)
|
||||
{
|
||||
/*
|
||||
* Set the keyboard up for use with X. This is called whenever
|
||||
* the server becomes active (ie at the start of each generation and
|
||||
* whenever its VT becomes active). Return the file descriptor
|
||||
* for keyboard input. Return -1 if there is no file descriptor
|
||||
* to add as an input device. If there are errors encountered,
|
||||
* call FatalError(). A return value of -1 is not considered an
|
||||
* error condition.
|
||||
*/
|
||||
}
|
||||
|
||||
int xf86KbdOff(void)
|
||||
{
|
||||
/*
|
||||
* Return the keyboard to the state saved by xf86KbdInit(). This is
|
||||
* called at the end of a server generation, and also when the
|
||||
* server's VT ceases being active. Returns the keyboard file
|
||||
* descriptor. Returns -1 if there is no file descriptor to be
|
||||
* removed as an input device. Errors should be handled the same
|
||||
* way as in xf86KbdOn().
|
||||
*/
|
||||
}
|
||||
|
||||
void xf86KbdEvents(void)
|
||||
{
|
||||
/*
|
||||
* Read characters from the keyboard device, and post the events
|
||||
* by calling xf86PostKbdEvent(). Read as much as is available
|
||||
* without waiting.
|
||||
*/
|
||||
}
|
||||
|
||||
void xf86SetMouseSpeed(int old, int new, unsigned cflag)
|
||||
{
|
||||
/*
|
||||
* Set the speed of the mouse port. old is the previous speed,
|
||||
* new is the new speed, and cflag is the value of the termio[s]
|
||||
* c_cflag field. For mice that have programmable speed operation,
|
||||
* this should send the appropriate commands to the mouse.
|
||||
*/
|
||||
}
|
||||
|
||||
void xf86MouseInit(void)
|
||||
{
|
||||
/*
|
||||
* This is called at the start of each server generation. In most
|
||||
* cases this is a noop. If the mouse must not be opened/closed
|
||||
* when VT switching, the open should be done here.
|
||||
*/
|
||||
}
|
||||
|
||||
int xf86MousedOn(void)
|
||||
{
|
||||
/*
|
||||
* Set the mouse up for use with X. This is called whenever
|
||||
* the server becomes active (ie at the start of each generation and
|
||||
* whenever its VT becomes active). This function normally opens
|
||||
* the mouse device, and may call xf86SetupMouse() to initialise
|
||||
* the mouse parameters. Return the file descriptor for mouse input.
|
||||
* Return -1 if there is no file descriptor to add as an input
|
||||
* device. If there are errors encountered, call FatalError().
|
||||
* A return value of -1 is not considered an error condition.
|
||||
*/
|
||||
}
|
||||
|
||||
int xf86MouseOff(Bool doclose)
|
||||
{
|
||||
/*
|
||||
* Release the mouse from use with X. This is called at the end
|
||||
* of a server generation (with doclose==TRUE), and also when the
|
||||
* server's VT ceases being active (with doclose==FALSE). If the
|
||||
* mouse should not be opened/closed when VT switching, the close
|
||||
* should be done here when doclose==TRUE. For other systems, the
|
||||
* mouse device should be closed regardless of the doclose value.
|
||||
* Returns the mouse file descriptor. Returns -1 if there is no
|
||||
* file descriptor to be removed as an input device. Errors
|
||||
* should be handled the same way as in xf86MouseOn().
|
||||
*/
|
||||
}
|
||||
|
||||
void xf86MouseEvents(void)
|
||||
{
|
||||
/*
|
||||
* Read characters from the mouse device, and post the events
|
||||
* by calling xf86PostMseEvent(). Read as much as is available
|
||||
* without waiting. If the OS doesn't handle the mouse protocol
|
||||
* translation, xf86MouseProtocol() may be called to do the
|
||||
* translation and event posting. If the OS does handle the protocol
|
||||
* translation, MOUSE_PROTOCOL_IN_KERNEL should be #define'd in
|
||||
* xf86_OSlib.h.
|
||||
*/
|
||||
}
|
||||
|
||||
int xf86OsMouseProc(DevicePtr pPointer, int what)
|
||||
{
|
||||
/*
|
||||
* Implements the device-proc for the pointer device when an
|
||||
* OS-based mouse driver is being used (as opposed to the
|
||||
* server's internal mouse driver). Implemented as any other
|
||||
* device-proc in the server.
|
||||
*
|
||||
* This function only needs to be implemented if USE_OSMOUSE is
|
||||
* defined for the OS.
|
||||
*/
|
||||
}
|
||||
|
||||
int xf86OsMouseEvents(void)
|
||||
{
|
||||
/*
|
||||
* When supporting an OS-based mouse driver (as opposed to the
|
||||
* server's internal mouse driver), read some events from the device
|
||||
* and post them to the DIX layer through xf86PostMseEvent().
|
||||
*
|
||||
* This function only needs to be implemented if USE_OSMOUSE is
|
||||
* defined for the OS.
|
||||
*/
|
||||
}
|
||||
|
||||
void xf86OsMouseOption(int token, pointer lex_ptr)
|
||||
{
|
||||
/*
|
||||
* Used in parsing an OsMouse keyword from the Xconfig file.
|
||||
* Passed the token type and a pointer to the token value.
|
||||
* The function should do whatever is appropriate for the OS's
|
||||
* mouse driver.
|
||||
*
|
||||
* This function only needs to be implemented if USE_OSMOUSE is
|
||||
* defined for the OS.
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* The following functions are simply wrappers around the OS specific
|
||||
* libc functions
|
||||
*/
|
||||
|
||||
void *
|
||||
xf86memmove(void * dest, const void * src, INT32 n)
|
||||
{
|
||||
return(memmove(dest,src,n));
|
||||
}
|
||||
|
||||
void *
|
||||
xf86memset(void * s, int c, INT32 n)
|
||||
{
|
||||
return(memset(s,c,n));
|
||||
}
|
||||
|
||||
void *
|
||||
xf86memcpy(void * dest, const void * src, INT32 n)
|
||||
{
|
||||
return(memcpy(dest,src,n));
|
||||
}
|
||||
|
||||
int
|
||||
xf86memcmp(const void * s1, const void * s2, INT32 n)
|
||||
{
|
||||
return(memcmp(s1,s2,n));
|
||||
}
|
||||
|
||||
char *
|
||||
xf86strcat(char * dest, const char * src)
|
||||
{
|
||||
return(strcat(dest,src));
|
||||
}
|
||||
|
||||
char *
|
||||
xf86strcpy(char * dest, const char * src)
|
||||
{
|
||||
return(strcpy(dest,src));
|
||||
}
|
||||
|
||||
int
|
||||
xf86strcmp(const char * s1, const char * s2)
|
||||
{
|
||||
return(strcmp(s1,s2));
|
||||
}
|
||||
|
||||
int
|
||||
xf86strncmp(const char * s1, const char * s2, INT32 n)
|
||||
{
|
||||
return(strncmp(s1,s2,n));
|
||||
}
|
||||
|
||||
size_t
|
||||
xf86strlen(const char * s)
|
||||
{
|
||||
return(strlen(s));
|
||||
}
|
||||
|
||||
void
|
||||
xf86getsecs(INT32 * secs, INT32 * usecs)
|
||||
{
|
||||
struct timeval tv;
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
*secs = tv.tv_sec;
|
||||
*usecs= tv.tv_usec;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
double
|
||||
xf86exp(double x)
|
||||
{
|
||||
return(exp(x));
|
||||
}
|
||||
|
||||
double
|
||||
xf86log(double x)
|
||||
{
|
||||
return(log(x));
|
||||
}
|
||||
|
||||
double
|
||||
xf86pow(double x, double y)
|
||||
{
|
||||
return(pow(x,y));
|
||||
}
|
||||
|
||||
double
|
||||
xf86sqrt(double x)
|
||||
{
|
||||
return(sqrt(x));
|
||||
}
|
||||
|
||||
double
|
||||
xf86cos(double x)
|
||||
{
|
||||
return(cos(x));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$XFree86: xc/programs/Xserver/hw/xfree86/os-support/README.OS-lib,v 3.10 2001/12/17 20:00:45 dawes Exp $
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue