search for: isxdigit

Displaying 20 results from an estimated 49 matches for "isxdigit".

Did you mean: isdigit
2017 Apr 19
1
[PATCH supermin] init: Support root=UUID=... to specify the appliance disk by volume UUID.
...44 @@ show_directory (const char *dirname) closedir (dir); chdir ("/"); } + +static void +parse_root_uuid (const char *root, unsigned char *raw_uuid) +{ + size_t i; + + i = 0; + while (i < 16) { + if (*root == '-') { + ++root; + continue; + } + if (!isxdigit (root[0]) || !isxdigit (root[1])) { + fprintf (stderr, "supermin: root UUID is not a 16 byte UUID string\n"); + exit (EXIT_FAILURE); + } + raw_uuid[i++] = hexdigit (root[0]) * 0x10 + hexdigit (root[1]); + root += 2; + } + + if (i < 16) { + fprintf (stderr, &quot...
2017 Apr 25
1
[PATCH supermin v2] init: Support root=UUID=... to specify the appliance disk by volume UUID.
v1 -> v2: - I fixed the end condition of the loop in parse_root_uuid. - Retested. Didn't change the busy wait loop into a function or macro, as per discussion on IRC. Rich.
2008 Aug 22
1
Building colorspace on RHEL5
.../include/stdlib.h:25, from /usr/lib/R/include/R.h:28, from colorspace.c:1: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory colorspace.c: In function 'CheckHex': colorspace.c:411: warning: implicit declaration of function 'isxdigit' colorspace.c: In function 'RGB_to_RColor': colorspace.c:1024: warning: unused variable 'Zn' colorspace.c:1024: warning: unused variable 'Yn' colorspace.c:1024: warning: unused variable 'Xn' colorspace.c: In function 'hex_to_RGB': colorspace.c:1115: warni...
2009 Aug 03
2
[PATCH] New commands to list devices by UUID and label
...= malloc (len + 1); + if (r == NULL) { + reply_with_perror ("malloc"); + return NULL; + } + + for (i = j = 0; i < len; ++i, ++j) { + if (i < len-4 && /* \xAB */ + dname[i] == '\\' && dname[i+1] == 'x' && + isxdigit (dname[i+2]) && isxdigit (dname[i+3])) { + r[j] = getxdigit (dname[i+2]) * 16 + getxdigit (dname[i+3]); + i += 3; + } + else if (i < len-2 && dname[i] == '\\') { /* \\ etc */ + r[j] = dname[i+1]; + i++; + } + else + r[j] = dname[i]; +...
2017 Mar 21
4
Clang -O0 performs optimizations that undermine dynamic bug-finding tools
...le, consider the following program: #include <ctype.h> int main() { isalnum(1000000); isalpha(1000000); iscntrl(1000000); isdigit(1000000); isgraph(1000000); islower(1000000); isprint(1000000); ispunct(1000000); isspace(1000000); isupper(1000000); isxdigit(1000000); } The glibc (on my system) implements the macros by calling __ctype_b_loc() which returns a lookup array that can be indexed by values between -128 and 255. Thus, I expected that, when compiling with -O0, the calls above would result in out-of-bounds accesses that (at least in theory) co...
2012 Aug 02
0
[LLVMdev] Problem to generate an executable file of 403.gcc (SPEC2006)
...ich ones. The errors look like: /tmp/403-HRnVZ5.o: In function `check_format_info_main': 403.gcc.linked.rbc:(.text+0x2ec94): undefined reference to `ISDIGIT' 403.gcc.linked.rbc:(.text+0x2f642): undefined reference to `ISGRAPH' 403.gcc.linked.rbc:(.text+0x326b8): undefined reference to `ISXDIGIT' 403.gcc.linked.rbc:(.text+0x994c2): undefined reference to `IS_NVSPACE' 403.gcc.linked.rbc:(.text+0x9aad3): undefined reference to `ISIDNUM' 403.gcc.linked.rbc:(.text+0x9ec89): undefined reference to `ISPRINT' 403.gcc.linked.rbc:(.text+0xcd96b): undefined reference to `ISALPHA'...
2003 Nov 24
1
[PATCH] fix off-by-one correction in ctypes
...} __ctype_inline int isspace(int __c) { - return __ctypes[__c+1] & __ctype_space; + return __ctypes[__c] & __ctype_space; } __ctype_inline int isupper(int __c) { - return __ctypes[__c+1] & __ctype_upper; + return __ctypes[__c] & __ctype_upper; } __ctype_inline int isxdigit(int __c) { - return __ctypes[__c+1] & __ctype_xdigit; + return __ctypes[__c] & __ctype_xdigit; } #define _toupper(__c) ((__c) & ~0x20)
2004 Jan 24
1
get rid of various warnings, errors in io.h
...pe for `ispunct' /home/mesa/boot/klibc/klibc/include/ctype.h:90: warning: no previous prototype for `isspace' /home/mesa/boot/klibc/klibc/include/ctype.h:95: warning: no previous prototype for `isupper' /home/mesa/boot/klibc/klibc/include/ctype.h:100: warning: no previous prototype for `isxdigit' /home/mesa/boot/klibc/klibc/include/ctype.h:109: warning: no previous prototype for `toupper' /home/mesa/boot/klibc/klibc/include/ctype.h:114: warning: no previous prototype for `tolower' /home/mesa/boot/klibc/klibc/include/stdio.h:90: warning: no previous prototype for `fread' /ho...
2008 May 21
1
colorspace package does not compile on ubuntu 7.04 32 bit
...mplicit declaration of function ?strcmp? colorspace.c: In function ?CheckHex?: colorspace.c:407: warning: implicit declaration of function ?strlen? colorspace.c:407: warning: incompatible implicit declaration of built-in function ?strlen? colorspace.c:411: warning: implicit declaration of function ?isxdigit? colorspace.c: In function ?hex_to_RGB?: colorspace.c:1115: warning: passing argument 1 of ?decodeHexStr? discards qualifiers from pointer target type make: *** [colorspace.o] Error 1 ERROR: compilation failed for package 'colorspace' ** Removing '/home/mspivako/R/i486-pc-linux-gnu-libr...
2009 Jul 16
2
[PATCH 1/2] Fix must_inline macro in klibc/compiler.h for gcc-4.3
See http://gcc.gnu.org/gcc-4.3/porting_to.html for details. Signed-off-by: Jon Ringle <jon at ringle.org> --- usr/include/klibc/compiler.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/usr/include/klibc/compiler.h b/usr/include/klibc/compiler.h index 816a4ee..e0da37e 100644 --- a/usr/include/klibc/compiler.h +++ b/usr/include/klibc/compiler.h @@ -24,7 +24,11
2008 Sep 05
0
initial mntent.h, mount features, ipconfig fixes
...ct mntent *getmntent(FILE *); + extern int endmntent(FILE *fp); #endif /* mntent.h */ diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index 9edc57f..7945a56 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -56,7 +56,7 @@ klib-y := vsnprintf.o snprintf.o vsprintf.o sprintf.o \ ctype/isxdigit.o ctype/tolower.o ctype/toupper.o \ userdb/getgrgid.o userdb/getgrnam.o userdb/getpwnam.o \ userdb/getpwuid.o userdb/root_group.o userdb/root_user.o \ - setmntent.o endmntent.o + setmntent.o endmntent.o getmntent.o klib-$(CONFIG_KLIBC_ERRLIST) += errlist.o diff --git a/usr/klibc/ge...
2007 Sep 03
2
[git patch] minor fixes
...revious prototype for 'ispunct' usr/klibc/../include/ctype.h:135: warning: no previous prototype for 'isspace' usr/klibc/../include/ctype.h:136: warning: no previous prototype for 'isupper' usr/klibc/../include/ctype.h:137: warning: no previous prototype for 'isxdigit' usr/klibc/../include/ctype.h:138: warning: no previous prototype for 'toupper' usr/klibc/../include/ctype.h:139: warning: no previous prototype for 'tolower' Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/include/ctype.h b/usr/include...
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
...specific utility functions in generator/utils.ml. Also in this change: - Use String.uppercase_ascii and String.lowercase_ascii in place of deprecated String.uppercase/String.lowercase. - Implement String.capitalize_ascii to replace deprecated String.capitalize. - Move isspace, isdigit, isxdigit functions to Char module. --- .gitignore | 3 + dib/utils.ml | 2 +- generator/Makefile.am | 23 ++++++- generator/bindtests.ml | 25 +++---- generator/c.ml | 53 ++++++++------- generator/daemon.ml | 10 +-- generator/docstrings.ml | 3 +-...
2008 Sep 07
1
[git pull v2] initial mntent.h, mount features, ipconfig fixes
...ct mntent *getmntent(FILE *); + extern int endmntent(FILE *fp); #endif /* mntent.h */ diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index 842a79f..1f505c2 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -57,7 +57,7 @@ klib-y := vsnprintf.o snprintf.o vsprintf.o sprintf.o \ ctype/isxdigit.o ctype/tolower.o ctype/toupper.o \ userdb/getgrgid.o userdb/getgrnam.o userdb/getpwnam.o \ userdb/getpwuid.o userdb/root_group.o userdb/root_user.o \ - setmntent.o endmntent.o + setmntent.o endmntent.o getmntent.o klib-$(CONFIG_KLIBC_ERRLIST) += errlist.o diff --git a/usr/klibc/ge...
2001 Sep 28
0
openssh-2.9.9p2 subscript violation problems with ctype macros
...net_aton(const char *cp, struct in_addr base = 8; } for (;;) { - if (isascii(c) && isdigit(c)) { + if ('0' <= c && c <= '9') { val = (val * base) + (c - '0'); c = *++cp; - } else if (base == 16 && isascii(c) && isxdigit(c)) { - val = (val << 4) | - (c + 10 - (islower(c) ? 'a' : 'A')); + } else if (base == 16 && 'a' <= c && c <= 'f') { + val = (val << 4) | (c + 10 - 'a'); + c = *++cp; + } else if (base == 16 && 'A...
2007 Aug 15
0
[git patch] fstype support + minor stuff
...et/inet_ntop.o inet/inet_pton.o inet/bindresvport.o \ - send.o recv.o \ - ctype/isalnum.o ctype/isalpha.o ctype/isascii.o \ - ctype/isblank.o ctype/iscntrl.o ctype/isdigit.o \ - ctype/isgraph.o ctype/islower.o ctype/isprint.o \ - ctype/ispunct.o ctype/isspace.o ctype/isupper.o \ - ctype/isxdigit.o ctype/tolower.o ctype/toupper.o \ - userdb/getgrgid.o userdb/getgrnam.o userdb/getpwnam.o \ - userdb/getpwuid.o userdb/root_group.o userdb/root_user.o +klib-y := abort.o alarm.o asprintf.o assert.o \ + atexit.o atoi.o atoll.o atol.o brk.o \ + bsd_signal.o bsearch.o calloc.o clearenv.o \ +...
2007 Dec 15
2
[LLVMdev] fix warning with newer g++ compilers
...[0-9A-Fa-f]+ int LLLexer::Lex0x() { CurPtr = TokStart + 2; - + char Kind; if (CurPtr[0] >= 'K' && CurPtr[0] <= 'M') { Kind = *CurPtr++; @@ -661,18 +663,18 @@ int LLLexer::Lex0x() { CurPtr = TokStart+1; return '0'; } - + while (isxdigit(CurPtr[0])) ++CurPtr; - + if (Kind == 'J') { // HexFPConstant - Floating point constant represented in IEEE format as a // hexadecimal number for when exponential notation is not precise enough. // Float and double only. - llvmAsmlval.FPVal = new APFloat(HexToFP(...
2010 Aug 09
8
Call for testing: OpenSSH-5.6
Hi, OpenSSH 5.6 is almost ready for release, so we would appreciate testing on as many platforms and systems as possible. This is a moderately large release, with a number of new features and bug fixes. Snapshot releases for portable OpenSSH are available from http://www.mindrot.org/openssh_snap/ The OpenBSD version is available in CVS HEAD: http://www.openbsd.org/anoncvs.html Portable OpenSSH
2006 Jun 26
2
[PATCH, RFC 3/13] OTP: parity table
Add OTP parity table. diff -urdpNX /usr/share/dontdiff -x Makefile dovecot.vanilla/src/lib-otp/otp-parity.c dovecot/src/lib-otp/otp-parity.c --- dovecot.vanilla/src/lib-otp/otp-parity.c 1970-01-01 03:00:00.000000000 +0300 +++ dovecot/src/lib-otp/otp-parity.c 2006-06-23 13:44:31.161891112 +0400 @@ -0,0 +1,29 @@ +/* + * OTP parity table. + * + * Copyright (c) 2006 Andrey Panin <pazke at
2002 Aug 02
3
[Bug 377] New: Reduce compiler warnings. Use unsigned args to the ctype.h is*() macros.
...d. * match.c (match_pattern_list): Argument to macro isupper() should be unsigned. * scp.c (sink): Argument to macro isdigit() should be unsigned. * sshconnect.c (ssh_login): Argument to macro isupper() should be unsigned. * openbsd-compat/inet_aton.c (inet_aton): Arguments to the isdigit(), isxdigit(), islower() and isspace() macros should be unsigned. * openbsd-compat/mktemp.c (_gettemp): The isdigit() macro argument should be unsigned. * openbsd-compat/readpassphrase.c (readpassphrase): The isalpha() macro argument should be unsigned. Index: canohost.c =================================...