search for: __ctypes

Displaying 6 results from an estimated 6 matches for "__ctypes".

2003 Nov 24
1
[PATCH] fix off-by-one correction in ctypes
...9;t necessary. # -------------------------------------------- # diff -Nru a/klibc/include/ctype.h b/klibc/include/ctype.h --- a/klibc/include/ctype.h Mon Nov 24 15:37:03 2003 +++ b/klibc/include/ctype.h Mon Nov 24 15:37:03 2003 @@ -35,13 +35,13 @@ __ctype_inline int isalnum(int __c) { - return __ctypes[__c+1] & + return __ctypes[__c] & (__ctype_upper|__ctype_lower|__ctype_digit); } __ctype_inline int isalpha(int __c) { - return __ctypes[__c+1] & + return __ctypes[__c] & (__ctype_upper|__ctype_lower); } @@ -57,48 +57,48 @@ __ctype_inline int iscntrl(int __c)...
2003 Nov 11
4
isspace() and other ctype.h functions
...me needed functions (like ftruncate and vsyslog). Should I post the patches here before commiting them to the cvs tree? Also, it looks like ctype.h has a off-by-one bug. isspace(' ') returns 0 right now, but if you change the function from: __ctype_inline int isspace(int __c) { return __ctypes[__c+1] & __ctype_space; */ } to __ctype_inline int isspace(int __c) { return __ctypes[__c] & __ctype_space; */ } things start working again :) In looking at the __ctypes[] array, it is 0 based, so all of the +1 array changes in ctype.h should be removed. Or am I missing somethi...
2012 Mar 11
0
[PATCH 2/3] fix missing prototypes for ctype inline functions
...e/ctype.h | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/usr/include/ctype.h b/usr/include/ctype.h index 4fd162b..14a2f2d 100644 --- a/usr/include/ctype.h +++ b/usr/include/ctype.h @@ -47,6 +47,20 @@ __extern int tolower(int); extern const unsigned char __ctypes[]; +__must_inline int __ctype_isalnum(int); +__must_inline int __ctype_isalpha(int); +__must_inline int __ctype_isascii(int); +__must_inline int __ctype_isblank(int); +__must_inline int __ctype_iscntrl(int); +__must_inline int __ctype_isdigit(int); +__must_inline int __ctype_isgraph(int); +__must...
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
2012 May 15
5
[PATCH 0/5] resubmitting pending patches
Hi, I?ve gone through the mailing list archives and hereby want to resubmit my pending patches. Most are independent of each other, except the m68k patch which will only be complete if sigsuspend is also fixed. (It can be applied before that, though.) http://www.zytor.com/pipermail/klibc/2012-January/003173.html [PATCH] fix m68k support Resubmitted here as 0005. While there was a question from
2007 Sep 03
2
[git patch] minor fixes
...nt isdigit(int); +__extern int isgraph(int); +__extern int islower(int); +__extern int isprint(int); +__extern int ispunct(int); +__extern int isspace(int); +__extern int isupper(int); +__extern int isxdigit(int); +__extern int toupper(int); +__extern int tolower(int); + extern const unsigned char __ctypes[]; static inline int __ctype_isalnum(int __c) commit a34e25fa8f4578340ea8b46d0b6511d47e6cc04e Author: maximilian attems <max at stro.at> Date: Sun Aug 26 19:53:49 2007 +0200 [klibc] getpwnam, getpwuid include pwd.h include the header file that prototype their function....