www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <936e62f0708070834l7d96af4cpf497ca3f6b0c45af@mail.gmail.com> |
Date: | Tue, 7 Aug 2007 11:34:46 -0400 |
From: | "Neil Jansen" <njansen1 AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Can't get usleep() to work, returns -1 |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |