Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

RE: Porting git to HP NonStop

From: Joachim Schmitz <hidden>
Date: 2016-06-15 22:54:33

From: Junio C Hamano [mailto:gitster@pobox.com]
Sent: Wednesday, August 22, 2012 10:50 PM
To: Joachim Schmitz
Cc: git@vger.kernel.org; rsbecker@nexbridge.com
Subject: Re: Porting git to HP NonStop

"Joachim Schmitz" [off-list ref] writes:
quoted
Hi folks

There another API missing on HP NonStop and that is setitimer(), used
in progress.c and build/log.c I do have a homebrewed implementation, on
top
of alarm(), it goes like this:
quoted
#include "../git-compat-util.h"
#undef getitimer
#undef setitimer


int
git_getitimer(int which, struct itimerval *value)
See Documentation/CodingGuidelines for style nits.
Will do and adjust code accordingly. Here I was more concerned about content
though ;-)

...
quoted
Worth being added to compat/, e.g. as setitimer.c, or, as itimer.c (as
a by-product, it has getitimer() too)?
If it helps your port, compat/itimer.c sounds like a good place.
Doesn't it need a new header file to introduce structures and constants,
too?

You mean the ITIMER_* and struct itimerval, right?
On NonStop these are available in <sys/time.h>, so here's no need to add
them.

Bye, Jojo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help