search for: signvalue

Displaying 3 results from an estimated 3 matches for "signvalue".

2000 Jan 06
1
bsd-snprintf.c and NeXT.
I'm wonder if anyone happens to have a simplier (slower) version of bsd-snprintf.c. It seems NeXT 3.3 (unsure about 4.2) is missing mprotect(). If I could get something to replace that for a while and fix some of theses utmp in login.c issues I may have a rough port NeXT to black hardware.=) Thanks
1999 Dec 10
0
snprintf from postgresql
...n = 0; if (ljust) padlen = -padlen; while (padlen > 0) { dopr_outch(' '); --padlen; } dostr(value, maxwidth); while (padlen < 0) { dopr_outch(' '); ++padlen; } } static void fmtnum(long_long value, int base, int dosign, int ljust, int len, int zpad) { int signvalue = 0; ulong_long uvalue; char convert[64]; int place = 0; int padlen = 0; /* amount to pad */ int caps = 0; /* * DEBUGP(("value 0x%x, base %d, dosign %d, ljust %d, len %d, zpad * %d\n", value, base, dosign, ljust, len, zpad )); */ uvalue = value; if (dosign) { if...
2006 Mar 17
3
[Bug 1173] scp reports lost connection for very large files
...F gets defined in config.h and snprintf() definition comes from openbsd-compat/bsd-snprintf.c. Here are relevant lines from bsd-snprintf.c line 470 static void fmtint(char *buffer, size_t *currlen, size_t maxlen, long value, int base, int min, int max, int flags) { int signvalue = 0; unsigned long uvalue; It seems that type for 'value' should be 'LLONG' instead of 'long' and similarly type for 'uvalue' should be 'unsigned LLONG' instead of 'unsigned long'. In dopr() 'value' is defined as 'LLONG' (lon...