X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=libaltos%2Flibaltos_posix.c;h=97eedd3be084dcae1a9c9962644bdbd58bdcf7cd;hb=9db486f6d78b8a2ae855168338e0ea7d6ee4231f;hp=731e9aa14ce3b45913769457dbc991b8016c8e76;hpb=1594691ea88ca84634eea237ac8137a5bdc19f5c;p=fw%2Faltos diff --git a/libaltos/libaltos_posix.c b/libaltos/libaltos_posix.c index 731e9aa1..97eedd3b 100644 --- a/libaltos/libaltos_posix.c +++ b/libaltos/libaltos_posix.c @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -199,3 +200,11 @@ altos_fill(struct altos_file *file_common, int timeout) return 0; } +#include + +void +altos_pause_one_second(void) +{ + struct timespec delay = { .tv_sec = 1, .tv_nsec = 0 }; + nanosleep(&delay, NULL); +}