RE: Help!! --/dev/ttyS0 input overflow error --

1998-02-27 Thread Walter L. Preuninger II
 Hi everyone,
   I wote some code to manage a data aquisition device in the labs.
 It runs for a while (say 24 hrs, gathering data every 6 secs [x 50 data
 points]) then it crashes, crashes bad (segmentation fault) /dev/ttyS0
 input overflow ... does anyone know what is causing this??

I began to get these on one of my systems, I disabled the com port in the
bios and added a serial card... works fine now. The office building is
very supceptable to close lightning strikes, and I presume emf is inducing
current into the serial/mouse lines, frying it :(

--
Walter L. Preuninger IIwaldo @ irc.wasteland.org:#unix
  [EMAIL PROTECTED]   [EMAIL PROTECTED]

  L  I  N  U  X  Where You Really Should Be!



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Help!! --/dev/ttyS0 input overflow error --

1998-02-26 Thread C.J.LAWSON
Hi everyone,
I wote some code to manage a data aquisition device in the labs.
It runs for a while (say 24 hrs, gathering data every 6 secs [x 50 data
points]) then it crashes, crashes bad (segmentation fault) /dev/ttyS0
input overflow ... does anyone know what is causing this??
I would also like to find out what the equivalent of fflush (); is
for the unix filesystem

Thanks and I really look forward to hearing from you 

Regards

Jonatha (who is in a fix in the lab)


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Help!! --/dev/ttyS0 input overflow error --

1998-02-26 Thread Ossama Othman
I can't help you with the device problem.  However, if you do a:

man fflush

You will get a manual page of the fflush C function for the particular
UNIX or UNIX-like system you are using, presumably and hopefully Debian
Linux since you posted to this Debian mailing list.  In general, all
available C routines have man pages.

Here is some of the output from the above man page:

FFLUSH(3)   Linux Programmer's Manual   FFLUSH(3)


NAME
   fflush - flush a stream

SYNOPSIS
   #include stdio.h

   int fflush(FILE *stream);

DESCRIPTION
  see the man page :-)


Good luck.

-Ossama
__
Ossama Othman [EMAIL PROTECTED]

--- PGP Keys ---
Public:  http://astrosun.tn.cornell.edu/staff/othman/OO_PUBLIC.asc
REVOKED: http://astrosun.tn.cornell.edu/staff/othman/OO_REVOKED.asc




--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


RE: Help!! --/dev/ttyS0 input overflow error --

1998-02-26 Thread Lewis, James M.
I don't know about your first problem...

fflush() will flush your stream to the system buffer cache.  sync() will cause
the buffer cache to be posted to disk.  Unless linux crashes, the sync call
should not be needed.

jim


--
From:   C.J.LAWSON[SMTP:[EMAIL PROTECTED]
Sent:   Thursday, February 26, 1998 9:02 AM
To: debian-user@lists.debian.org
Cc: The recipient's address is unknown.
Subject:Help!! --/dev/ttyS0 input overflow error --

Hi everyone,
I wote some code to manage a data aquisition device in the labs.
It runs for a while (say 24 hrs, gathering data every 6 secs [x 50 data
points]) then it crashes, crashes bad (segmentation fault) /dev/ttyS0
input overflow ... does anyone know what is causing this??
I would also like to find out what the equivalent of fflush (); is
for the unix filesystem

Thanks and I really look forward to hearing from you 

Regards

Jonatha (who is in a fix in the lab)


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .