]>
git.ipfire.org Git - thirdparty/squid.git/blob - lib/xusleep.c
2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
17 * xusleep, as usleep but accepts longer pauses
20 xusleep(unsigned int usec
)
22 /* XXX emulation of usleep() */
24 sl
.tv_sec
= usec
/ 1000000;
25 sl
.tv_usec
= usec
% 1000000;
26 return select(0, NULL
, NULL
, NULL
, &sl
);