|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: sysfunc.c,v 1.8 2003/05/07 18:48:05 patty21 Exp $
|
|
|
|
/* $Id: sysfunc.c,v 1.9 2003/05/07 18:52:13 stpohle Exp $
|
|
|
|
sysfunc.c - this file hold some routines for the system functions..
|
|
|
|
sysfunc.c - this file hold some routines for the system functions..
|
|
|
|
like d_delay
|
|
|
|
like d_delay
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -8,9 +8,6 @@
|
|
|
|
void
|
|
|
|
void
|
|
|
|
s_delay (int ms)
|
|
|
|
s_delay (int ms)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
usleep(ms*1000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
fd_set selectset;
|
|
|
|
fd_set selectset;
|
|
|
|
struct timeval tval;
|
|
|
|
struct timeval tval;
|
|
|
|
|
|
|
|
|
|
|
@ -18,7 +15,6 @@ usleep(ms*1000);
|
|
|
|
tval.tv_sec = 0;
|
|
|
|
tval.tv_sec = 0;
|
|
|
|
tval.tv_usec = ms * 1000;
|
|
|
|
tval.tv_usec = ms * 1000;
|
|
|
|
select (1, &selectset, NULL, NULL, &tval);
|
|
|
|
select (1, &selectset, NULL, NULL, &tval);
|
|
|
|
*/
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
int
|
|
|
|