Support for setitimer() on platforms lacking it
Quoted 9 lines
From: Joachim Schmitz [mailto:[email protected]]
Sent: Tuesday, September 04, 2012 12:31 PM
To: 'Junio C Hamano'
Cc: '[email protected]'
Subject: RE: [PATCH v2] Support forsetitimer()on platforms lacking itPoor man's
getitimer(), simply based onalarm().
Quoted 7 lines
Currently needed on HP NonStop ("#ifdef
__TANDEM"), which does provide "struct itimerval", but nosetitimer(). Alarm times are rounded up to the next full second.Signed-off-by Joachim Schmitz <[email protected]>---
Revert/remove my previous 2 patches for this first (from 'pu').
Actually: https://github.com/git/git/commit/55c96a1325
Quoted 18 lines
git-compat-util.h | 4 ++++ 1 file changed, 4 insertions(+)git-compat-util.h@@ -163,6 +163,10 @@ renamed from git-compat-util.h +4
-1#define probe_utf8_pathname_composition(a,b) #endif +#ifdef NO_SETITIMER /* poor man's setitimer() */ +#define setitimer(w,v,o) alarm((v)->it_value.tv_sec+((v)->it_value.tv_usec>0)) +#endif + #ifdef MKDIR_WO_TRAILING_SLASH #define mkdir(a,b) compat_mkdir_wo_trailing_slash((a),(b)) extern int compat_mkdir_wo_trailing_slash(const char*, mode_t); --
Quoted 1 line
1.7.12
Bye, Jojo