~ubuntu-branches/ubuntu/jaunty/pcsc-lite/jaunty-security

« back to all changes in this revision

Viewing changes to src/sys_unix.c

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Rousseau
  • Date: 2007-05-16 14:40:30 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20070516144030-6wk53ou910ctb9ds
Tags: upstream-1.4.1
ImportĀ upstreamĀ versionĀ 1.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Copyright (C) 1999
7
7
 *  David Corcoran <corcoran@linuxnet.com>
8
8
 *
9
 
 * $Id: sys_unix.c 2353 2007-01-23 10:31:50Z rousseau $
 
9
 * $Id: sys_unix.c 2403 2007-02-19 09:16:29Z rousseau $
10
10
 */
11
11
 
12
12
/**
105
105
 
106
106
        return nanosleep(&mrqtp, NULL);
107
107
#else
108
 
        usleep(iTimeVal);
109
 
        return iTimeVal;
 
108
        struct timeval tv;
 
109
        tv.tv_sec  = iTimeVal/1000000;
 
110
        tv.tv_usec = iTimeVal - (tv.tv_sec * 1000000);
 
111
        return select(0, NULL, NULL, NULL, &tv);
110
112
#endif
111
113
}
112
114