Displaying 20 results from an estimated 151 matches for "strtoumax".
2008 Dec 31
1
Checking for strtoumax and strtoimax
Tru64 5.1b PK6 : dovecot 1.1.7 : cc
Configuration checks for strtoumax and strtoimax are positive but both are
unresolved during compilation. strtoq and strtouq checks are negative.
I can modify compat.c to use "unsigned long ret = 0;" in place of strtoumax
(does this break anything?) and/but I would like to know how to handle strtoimax.
Thanks in advance...
2019 Feb 08
2
[PATCH nbdkit v2] server: utils: Make nbdkit_parse_size to reject negative values
From: Nikolay Ivanets <stenavin@gmail.com>
nbdkit_parse_size() uses strtoumax() function to parse input strings
which states:
"if there was a leading minus sign, the negation of the result of the
conversion represented as an unsigned value, unless the original
(nonnegated) value would overflow."
Later validation doesn't catch the situation when parsed value a...
2019 Feb 07
1
[PATCH nbdkit] server: utils: Fix nbdkit_parse_size to correctly handle negative values
From: Nikolay Ivanets <stenavin@gmail.com>
nbdkit_parse_size() uses strtoumax() function to parse input strings
which states:
"if there was a leading minus sign, the negation of the result of the
conversion represented as an unsigned value, unless the original
(nonnegated) value would overflow."
Later validation doesn't catch the situation when parsed value i...
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Remove getintmax in printf
...'')
- goto out;
-
- errno = 0;
- val = strtoimax(cp, &ep, 0);
- check_conversion(cp, ep);
-out:
- return val;
-}
-
static uintmax_t
-getuintmax(void)
+getuintmax(int sign)
{
uintmax_t val = 0;
char *cp, *ep;
@@ -446,7 +423,7 @@ getuintmax(void)
goto out;
errno = 0;
- val = strtoumax(cp, &ep, 0);
+ val = sign ? strtoimax(cp, &ep, 0) : strtoumax(cp, &ep, 0);
check_conversion(cp, ep);
out:
return val;
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Remove getintmax in printf
...'')
- goto out;
-
- errno = 0;
- val = strtoimax(cp, &ep, 0);
- check_conversion(cp, ep);
-out:
- return val;
-}
-
static uintmax_t
-getuintmax(void)
+getuintmax(int sign)
{
uintmax_t val = 0;
char *cp, *ep;
@@ -446,7 +423,7 @@ getuintmax(void)
goto out;
errno = 0;
- val = strtoumax(cp, &ep, 0);
+ val = sign ? strtoimax(cp, &ep, 0) : strtoumax(cp, &ep, 0);
check_conversion(cp, ep);
out:
return val;
2007 Apr 12
2
[PATCH] Make com32 printf obey width-restriction on %s
...y.o strdup.o strerror.o strlen.o \
- strncasecmp.o strncat.o strncmp.o strncpy.o strndup.o \
+ strncasecmp.o strncat.o strncmp.o strncpy.o strndup.o strnlen.o \
strntoimax.o strntoumax.o strrchr.o strsep.o strspn.o strstr.o \
strtoimax.o strtok.o strtol.o strtoll.o strtoul.o strtoull.o \
strtoumax.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \
--- syslinux-3.36/com32/lib/vsnprintf.c.orig 2007-02-10
21:47:08.000000000 +0100
+++ syslinux-3.36/com32/lib/vsnprintf.c 2007-04-12 12:08:54.000000000 +0200
@@ -362,7 +362,7 @@
case 's': /* String */
sarg = va_arg(ap, const char *);...
2012 Dec 25
2
[LLVMdev] [DragonEgg] Strange call to @"\01__isoc99_fscanf"
...gt;
const char* filename = "fileio.txt";
int main(int argc, char* argv[])
{
if (argc != 2)
{
printf("Test KernelGen support for File I/O\n");
printf("Usage: %s <szarray>\n", argv[0]);
return 0;
}
size_t szarray = (size_t)strtoumax(argv[1], NULL, 0);
// Write data to file.
FILE* wfile = fopen(filename, "w");
if (!wfile)
{
fprintf(stderr, "Cannot open output file %s\n", filename);
return 1;
}
for (int i = 0; i < szarray; i++)
fprintf(wfile, "%d "...
2010 Oct 29
2
[LLVMdev] "multiple definition of .. " in clang 2.8
...on `mknodat':
Hostname.c:(.text+0x500): multiple definition of `mknodat'
av.o:av.c:(.text+0x500): first defined here
Hostname.o: In function `strtoimax':
Hostname.c:(.text+0x530): multiple definition of `strtoimax'
av.o:av.c:(.text+0x530): first defined here
Hostname.o: In function `strtoumax':
Hostname.c:(.text+0x540): multiple definition of `strtoumax'
av.o:av.c:(.text+0x540): first defined here
Hostname.o: In function `wcstoimax':
Hostname.c:(.text+0x550): multiple definition of `wcstoimax'
av.o:av.c:(.text+0x550): first defined here
Hostname.o: In function `wcstoumax...
2008 Aug 16
1
Minimal COM32 Root Module
...ed48.o snprintf.o \
sprintf.o srand48.o sscanf.o strcasecmp.o \
strdup.o strerror.o strlen.o \
strnlen.o \
strncasecmp.o strncat.o strncmp.o strndup.o \
stpcpy.o stpncpy.o \
strntoimax.o strntoumax.o strrchr.o strstr.o \
strtoimax.o strtol.o strtoll.o strtoul.o strtoull.o \
strtoumax.o vprintf.o vsprintf.o \
asprintf.o vasprintf.o strlcat.o \
vsscanf.o zalloc.o \
\
sys/x86_init_fpu.o math/pow.o math/strtod.o
Thank you!
Stefan Bucur
2019 Sep 18
2
[PATCH] build: remove unused gnulib modules
...m4
/setenv.m4
/setlocale.m4
/sh-filename.m4
@@ -202,7 +174,6 @@
/sig_atomic_t.m4
/signalblocking.m4
/signal_h.m4
-/signed.m4
/size_max.m4
/sleep.m4
/snprintf.m4
@@ -230,11 +201,8 @@
/string_h.m4
/strndup.m4
/strnlen.m4
-/strtoimax.m4
/strtoll.m4
-/strtol.m4
/strtoull.m4
-/strtoul.m4
/strtoumax.m4
/symlinkat.m4
/symlink.m4
@@ -252,8 +220,6 @@
/time_h.m4
/timespec.m4
/tls.m4
-/ttyname_r.m4
-/ulonglong.m4
/ungetc.m4
/unistd_h.m4
/unistd-safer.m4
@@ -261,7 +227,6 @@
/unlinkdir.m4
/unlink.m4
/usleep.m4
-/utimbuf.m4
/utimecmp.m4
/utime_h.m4
/utime.m4
@@ -276,20 +241,16 @@
/warni...
2008 Nov 21
2
[PATCH] drop root privileges on solaris, request for testing
...\
strtoull strtoll strtouq strtoq \
setpriority quotactl getmntent kqueue kevent backtrace_symbols \
- walkcontext dirfd clearenv malloc_usable_size clock_gettime)
+ walkcontext dirfd clearenv malloc_usable_size clock_gettime \
+ setppriv)
dnl strtoimax and strtoumax are macros in HP-UX, so inttypes.h must be included
AC_MSG_CHECKING([for strtoimax])
diff -r 8f41c9f3f392 src/master/Makefile.am
--- a/src/master/Makefile.am Wed Nov 19 16:11:01 2008 +0200
+++ b/src/master/Makefile.am Wed Nov 19 14:18:36 2008 +0000
@@ -22,6 +22,7 @@ dovecot_SOURCES = \
auth-proc...
2009 Dec 10
1
[PATCH] [RFC] lib: add a hex dump lib function
...extern void hexdump(const void *, int, int);
+
#endif /* _STDIO_H */
diff --git a/com32/lib/Makefile b/com32/lib/Makefile
index c5b1981..50fd07f 100644
--- a/com32/lib/Makefile
+++ b/com32/lib/Makefile
@@ -25,7 +25,7 @@ LIBOBJS = \
strtoimax.o strtok.o strtol.o strtoll.o strtoul.o strtoull.o \
strtoumax.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \
asprintf.o vasprintf.o strlcpy.o strlcat.o \
- vsscanf.o zalloc.o \
+ vsscanf.o zalloc.o hexdump.o \
\
opendir.o readdir.o closedir.o getcwd.o chdir.o fdopendir.o \
\
diff --git a/com32/lib/hexdump.c b/com32/lib/hexdump.c
new file...
2018 Feb 07
0
[nbdkit PATCH v2 2/2] utils: Revamp nbdkit_parse_size
...24 * 1024 * 1024;
+ /* Scan unsigned, but range check later that result fits in signed. */
+ /* XXX Should we also parse things like '1.5M'? */
+ /* XXX Should we allow hex? If so, hex cannot use scaling suffixes,
+ * because some of them are valid hex digits */
+ errno = 0;
+ size = strtoumax (str, &end, 10);
+ if (errno || str == end) {
+ nbdkit_error ("could not parse size string (%s)", str);
+ return -1;
+ }
+ switch (*end) {
+ case '\0':
+ end--; /* Safe, since we already filtered out empty string */
+ break;
+
+ /* Powers of 1024 */
+ case...
2004 Aug 13
1
[PATCH] make spotless update
make spotless leaves 2 generated files.
diff -purN klibc-0.159.orig/klibc/Makefile klibc-0.159/klibc/Makefile
--- klibc-0.159.orig/klibc/Makefile 2004-08-03 23:07:05.000000000 +0200
+++ klibc-0.159/klibc/Makefile 2004-08-13 22:23:35.696699671 +0200
@@ -156,6 +156,7 @@ clean: archclean
rm -f sha1hash errlist.c
spotless: clean
+ rm -f include/klibc/havesyscall.h syscalls.nrs
find . \( -name
2007 Aug 15
0
[git patch] fstype support + minor stuff
...ell that we are building klibc
export klibc-build := y
-klib-y := vsnprintf.o snprintf.o vsprintf.o sprintf.o \
- asprintf.o vasprintf.o \
- vsscanf.o sscanf.o ctypes.o \
- strntoumax.o strntoimax.o \
- atoi.o atol.o atoll.o \
- strtol.o strtoll.o strtoul.o strtoull.o \
- strtoimax.o strtoumax.o \
- globals.o exit.o atexit.o onexit.o \
- execl.o execle.o execv.o execvpe.o execvp.o execlp.o execlpe.o \
- fork.o vfork.o wait.o wait3.o waitpid.o system.o \
- setpgrp.o getpgrp.o daemon.o \
- printf.o vprintf.o fprintf.o vfprintf.o perror.o \
- statfs.o fstatfs.o umount.o \
- cr...
2019 Sep 18
0
Re: [PATCH] build: remove unused gnulib modules
...t.m4
> /signalblocking.m4
> /signal_h.m4
> -/signed.m4
> /size_max.m4
> /sleep.m4
> /snprintf.m4
> @@ -230,11 +201,8 @@
> /string_h.m4
> /strndup.m4
> /strnlen.m4
> -/strtoimax.m4
> /strtoll.m4
> -/strtol.m4
> /strtoull.m4
> -/strtoul.m4
> /strtoumax.m4
> /symlinkat.m4
> /symlink.m4
> @@ -252,8 +220,6 @@
> /time_h.m4
> /timespec.m4
> /tls.m4
> -/ttyname_r.m4
> -/ulonglong.m4
> /ungetc.m4
> /unistd_h.m4
> /unistd-safer.m4
> @@ -261,7 +227,6 @@
> /unlinkdir.m4
> /unlink.m4
> /usleep.m4
>...
2014 May 08
2
compile error about 6.0.2
...h:12: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?imaxabs?
/mlsyslinux/com32/include/inttypes.h:17: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strtoimax?
/mlsyslinux/com32/include/inttypes.h:18: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strtoumax?
/mlsyslinux/com32/include/inttypes.h:21: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strntoimax?
/mlsyslinux/com32/include/inttypes.h:22: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strntoumax?
In file included from /mlsyslinux/com32/include/zconf.h:364,...
2019 Sep 23
0
[PATCH v2 5/5] build: remove unused gnulib modules
...m4
/setenv.m4
/setlocale.m4
/sh-filename.m4
@@ -202,7 +163,6 @@
/sig_atomic_t.m4
/signalblocking.m4
/signal_h.m4
-/signed.m4
/size_max.m4
/sleep.m4
/snprintf.m4
@@ -230,11 +190,8 @@
/string_h.m4
/strndup.m4
/strnlen.m4
-/strtoimax.m4
/strtoll.m4
-/strtol.m4
/strtoull.m4
-/strtoul.m4
/strtoumax.m4
/symlinkat.m4
/symlink.m4
@@ -252,16 +209,12 @@
/time_h.m4
/timespec.m4
/tls.m4
-/ttyname_r.m4
-/ulonglong.m4
-/ungetc.m4
/unistd_h.m4
/unistd-safer.m4
/unlinkat.m4
/unlinkdir.m4
/unlink.m4
/usleep.m4
-/utimbuf.m4
/utimecmp.m4
/utime_h.m4
/utime.m4
@@ -276,20 +229,15 @@
/warnings....
2020 Sep 25
0
Wine release 5.18
...Protocol error: process 0020: recvmsg: Message too long on mac OS
49643 Calling ClipCursor too frequently can cause stack overflow in foreground window thread.
49647 wine 5.14 build fails in winegstreamer on Ubuntu 16.04 and Debian 9
49738 "warning: implicit declaration of function ?strtoumax?" when compiling PuTTY with Winelib
49765 SlingPlayer Desktop crashes on unimplemented function msvcrt._snprintf_c
49770 Firestorm viewer crashes
49774 macDriver no longer functions within macOS VM
49806 WIDL doesn't tolerate attribute [hidden] within enums.
49811 cmd /c &qu...
2014 May 08
0
compile error about 6.0.2
...r: expected ?=?, ?,?, ?;?,
?asm? or ?__attribute__? before ?imaxabs?
> /mlsyslinux/com32/include/inttypes.h:17: error: expected ?=?, ?,?, ?;?,
?asm? or ?__attribute__? before ?strtoimax?
> /mlsyslinux/com32/include/inttypes.h:18: error: expected ?=?, ?,?, ?;?,
?asm? or ?__attribute__? before ?strtoumax?
> /mlsyslinux/com32/include/inttypes.h:21: error: expected ?=?, ?,?, ?;?,
?asm? or ?__attribute__? before ?strntoimax?
> /mlsyslinux/com32/include/inttypes.h:22: error: expected ?=?, ?,?, ?;?,
?asm? or ?__attribute__? before ?strntoumax?
> In file included from /mlsyslinux/com32/include/z...