This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can't get usleep() to work, returns -1


Hi,

I'm trying to write a serial port app with GCC.  I need to insert a
100ms delay between commands, and I'm trying to do with with the
usleep() function.  When I do this it returns -1.

I'm using the latest Cygwin and GCC  v3.4.4.  Running on WinXP, stock Dell box.


Is there a way to get this to work, or possibly could someone
recommend another millisecond delay routine?


Thanks.

Neil

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]