diff -u1 ChangeLog.v0 ChangeLog --- ChangeLog.v0 2005-07-26 00:18:51.000000000 +0200 +++ ChangeLog 2005-07-26 00:19:57.000000000 +0200 @@ -1 +1,7 @@ +2005-07-26 Oskar Liljeblad + + * modules/tempfailure: New file. + * lib/tempfailure.h: New file. + * MODULES.html.sh (Misc): Add tempfailure. + 2005-07-24 Bruno Haible diff -u /dev/null lib/tempfailure.h --- /dev/null 2005-04-15 16:25:26.000000000 +0200 +++ lib/tempfailure.h 2005-07-26 00:16:30.000000000 +0200 @@ -0,0 +1,37 @@ +/* tempfailure.h -- define the TEMP_FAILURE_RETRY macro from GNU Libc + + Copyright (C) 2005 Free Software Foundation, Inc. + + 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; either version 2, 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 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + + */ + +#ifndef _TEMPFAILURE_H +#define _TEMPFAILURE_H + +#include +#include + +#ifndef TEMP_FAILURE_RETRY +#define TEMP_FAILURE_RETRY(expression) \ + ({ \ + long int _result; \ + do _result = (long int) (expression); \ + while (_result == -1L && errno == EINTR); \ + _result; \ + }) +#endif + +#endif diff -u MODULES.html.sh.v0 MODULES.html.sh --- MODULES.html.sh.v0 2005-07-26 00:17:50.000000000 +0200 +++ MODULES.html.sh 2005-07-26 00:18:46.000000000 +0200 @@ -2004,6 +2004,7 @@ func_module readutmp func_module sig2str func_module sysexits + func_module tempfailure func_module visibility func_end_table } diff -u /dev/null modules/tempfailure --- /dev/null 2005-04-15 16:25:26.000000000 +0200 +++ modules/tempfailure 2005-07-26 00:10:29.000000000 +0200 @@ -0,0 +1,20 @@ +Description: +Defines the TEMP_FAILURE_RETRY macro from GNU Libc. + +Files: +lib/tempfailure.h + +Depends-on: + +configure.ac: + +Makefile.am: + +Include: +"tempfailure.h" + +License: +LGPL + +Maintainer: +all