drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / payloads / libpayload / curses / PDCurses / x11 / pdcutil.c
blob5b5109f84e6b071ae79db9c0672e4f7bd4c49656
1 /* Public Domain Curses */
3 #include "pdcx11.h"
5 RCSID("$Id: pdcutil.c,v 1.10 2008/07/14 04:24:52 wmcbrine Exp $")
7 #if defined(HAVE_POLL) && !defined(HAVE_USLEEP)
8 # include <poll.h>
9 #endif
11 void PDC_beep(void)
13 PDC_LOG(("PDC_beep() - called\n"));
15 XCursesInstruct(CURSES_BELL);
18 void PDC_napms(int ms)
20 PDC_LOG(("PDC_napms() - called: ms=%d\n", ms));
22 #if defined(HAVE_USLEEP)
24 usleep(1000 * ms);
26 #elif defined(HAVE_POLL)
28 struct pollfd fd;
29 fd.fd = -1;
30 fd.events = 0;
31 poll(&fd, 1, ms);
33 #endif
36 const char *PDC_sysname(void)
38 return "X11";