Displaying 20 results from an estimated 1107 matches for "ctype".
Did you mean:
type
2011 Apr 09
2
Strange libtool problem
I'm not sure if this is related to me updating to gcc 4.6.0 or not,
but in the gnulib/lib directory I get an error which comes down to the
following libtool command running:
$ ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT c-ctype.lo -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.lo c-ctype.c
../../libtool: line 2075: c-ctype.c: command not found
libtool: compile: gcc -std=gnu99 -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT c-ctype.lo -MD -MP -MF .deps/c-ctype.Tpo -c "" -fPIC -DPIC -o .libs/c-ctype.o
gcc: error:...
2009 Jul 16
2
[PATCH 1/2] Fix must_inline macro in klibc/compiler.h for gcc-4.3
...nsertions(+), 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 @@
/* Use "extern inline" even in the gcc3+ case to avoid warnings in ctype.h */
#ifdef __GNUC__
# if __GNUC__ >= 3
-# define __must_inline extern __inline__ __attribute__((always_inline))
+# ifdef __GNUC_STDC_INLINE__
+# define __must_inline extern __inline__ __attribute__((__gnu_inline__))
+# else
+# define __must_inline extern __inline__ __attribute__((__alw...
2011 Mar 22
2
[LLVMdev] LLVM optimization passes crash when running on second thread
...:AssertingVH<llvm::BasicBlock> const, (anonymous namespace)::LVILatticeVal> >, std::less<llvm::AssertingVH<llvm::BasicBlock> >, std::allocator<std::pair<llvm::AssertingVH<llvm::BasicBlock> const, (anonymous namespace)::LVILatticeVal> > >::_M_insert () at ctype.h:275
#6 0x169f5a5a in std::_Rb_tree<llvm::AssertingVH<llvm::BasicBlock>, std::pair<llvm::AssertingVH<llvm::BasicBlock> const, (anonymous namespace)::LVILatticeVal>, std::_Select1st<std::pair<llvm::AssertingVH<llvm::BasicBlock> const, (anonymous namespace)::LVILatt...
2014 Sep 27
2
[PATCH 1/2] Implement realpath()
...7 @@ klib-y += vsnprintf.o snprintf.o vsprint
send.o recv.o \
access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \
lchown.o link.o rmdir.o unlink.o utimes.o lstat.o mkdir.o \
- readlink.o select.o symlink.o pipe.o \
+ readlink.o realpath.o select.o symlink.o pipe.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 \
--- /dev/null
+++ b/usr/klibc/realpath.c
@@ -0,0 +1,147 @@
+#include <errno.h>
+#include <limits.h>
+#include <stdlib.h>
+#includ...
2004 Jan 24
1
get rid of various warnings, errors in io.h
.../include/stdlib.h:21: warning: shadowing built-in
function `abs'
/home/mesa/boot/klibc/klibc/include/stdlib.h:31: warning: shadowing built-in
function `labs'
/home/mesa/boot/klibc/klibc/include/stdlib.h:35: warning: shadowing built-in
function `llabs'
/home/mesa/boot/klibc/klibc/include/ctype.h:37: warning: no previous prototype
for `isalnum'
/home/mesa/boot/klibc/klibc/include/ctype.h:43: warning: no previous prototype
for `isalpha'
/home/mesa/boot/klibc/klibc/include/ctype.h:49: warning: no previous prototype
for `isascii'
/home/mesa/boot/klibc/klibc/include/ctype.h:54: wa...
2009 Jul 07
1
Non-standard conformant usage of ctype functions
Hi,
Per the definitions of the ctype functions in POSIX-1.2008 "the c
argument is an int, the value of which the application shall ensure is a
character representable as an unsigned char or equal to the value of the
macro EOF. If the argument has any other value, the behavior is
undefined."
For obvious reasons this results...
2009 Sep 24
1
enabling more syntax-checks
The first c-set cleans up the list of excluded syntax-checks.
The second enables the sc_avoid_ctype_macros test and changes
each use of a ctype macro like isspace to c_isspace.
This makes it so such tests (often parsing-related) is locale-independent.
Otherwise, in some odd corner cases (combination of non-C locale
and perverted inputs), I suspect that libguestfs tools would mistakenly
accept sur...
2003 Nov 24
1
[PATCH] fix off-by-one correction in ctypes
Me again,
Here's a patch to fix ctypes. There was an off-by-one correction that
looks like it isn't needed. Boundary conditions and single-entry items,
like isspace(), now work for me.
mh
--
Martin Hicks Wild Open Source Inc.
mort@wildopensource.com 613-266-2296
# This is a BitKeeper generated patch for th...
2007 Aug 15
0
[git patch] fstype support + minor stuff
...sr/klibc/Kbuild b/usr/klibc/Kbuild
index ad72116..512f841 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -5,57 +5,64 @@
# Tell 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 syst...
2014 Mar 21
0
[PATCH RFC V2 4/4] tools: virtio: add a top-like utility for displaying vhost satistics
...ddr),
+ 'vhost_net_tx' : ('zerocopy', copy_modes),
+ 'vhost_virtio_signal' : ('queue_index', vqs),
+}
+
+def invert(d):
+ return dict((x[1], x[0]) for x in d.iteritems())
+
+for f in filters:
+ filters[f] = (filters[f][0], invert(filters[f][1]))
+
+import ctypes, struct, array
+
+libc = ctypes.CDLL('libc.so.6')
+syscall = libc.syscall
+class perf_event_attr(ctypes.Structure):
+ _fields_ = [('type', ctypes.c_uint32),
+ ('size', ctypes.c_uint32),
+ ('config', ctypes.c_uint64),
+...
2012 Mar 11
0
[PATCH 2/3] fix missing prototypes for ctype inline functions
Signed-off-by: Thorsten Glaser <tg at mirbsd.org>
---
usr/include/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 __ctype...
2007 Sep 03
2
[git patch] minor fixes
...please pull:
git pull git://brane.itp.tuwien.ac.at/~mattems/klibc.git maks
with the following shortlog:
maximilian attems (8):
[klibc] grp.h: Add declaration of getgrgid(), getgrnam()
[klibc] getgrgid, getgrnam include grp.h
[klibc] getpwnam, getpwuid include pwd.h
[klibc] ctype.h declare char classification functions
[klibc] do_mounts_md.c include kinit.h
[klibc] strtotimex include time.h
[klibc] add some specific .gitignore
[klibc] qsort, sleep, strntoumax, strtox, usleep include stdlib.h
and diffstat
klcc/.gitignore | 2 ++
scr...
2014 Sep 29
0
[PATCH v2 1/2] Implement realpath()
...7 @@ klib-y += vsnprintf.o snprintf.o vsprint
send.o recv.o \
access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \
lchown.o link.o rmdir.o unlink.o utimes.o lstat.o mkdir.o \
- readlink.o select.o symlink.o pipe.o \
+ readlink.o realpath.o select.o symlink.o pipe.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 \
--- /dev/null
+++ b/usr/klibc/realpath.c
@@ -0,0 +1,45 @@
+#include <fcntl.h>
+#include <limits.h>
+#include <stdlib.h>
+#include...
2016 Jan 06
0
[klibc:master] Implement realpath()
...vsnprintf.o snprintf.o vsprintf.o sprintf.o \
send.o recv.o \
access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \
lchown.o link.o rmdir.o unlink.o utimes.o lstat.o mkdir.o \
- readlink.o select.o symlink.o pipe.o \
+ readlink.o realpath.o select.o symlink.o pipe.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 \
diff --git a/usr/klibc/realpath.c b/usr/klibc/realpath.c
new file mode 100644
index 0000000..1474b1e
--- /dev/null
+++ b/usr/klibc/realpath.c
@@ -0...
2003 Nov 11
4
isspace() and other ctype.h functions
Hm, finally subscribed here, forgot to...
Anyway, I'm using klibc in udev and have added some 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...
2012 Oct 08
1
Effect of the R framework on ctype.c
...under certains circumstances, since a minimal R package produce the expected output. Even in CWB, this strange behavior is not observed in any part of the code.
When observed, a work-around for this problem is to remove the include in which this very function, isupper, is defined:
#include <ctype.h>
Since the program is compiled and run correctly without this "include", isupper() seems to be also declared elsewhere or ctype to be found by another mechanism, and the problem seems be due to interactions between the R headers (?) and the include of the CWB code?
Have you already...
2005 Mar 07
1
Question about islower() in ctype.h (ANSI compat headers test)
Hi,
So far with the latest changes the projects I am trying to port works
fine, except for a mismatch on what is considered the ansi behaviour of
islower() in ctype.h:
-----
i = 220
islower (i) = 0, ISLOWER (i) = 0
toupper (i) = 220, TOUPPER (i) = 220
i = 221
islower (i) = 0, ISLOWER (i) = 0
toupper (i) = 221, TOUPPER (i) = 221
i = 222
islower (i) = 0, ISLOWER (i) = 0
toupper (i) = 222, TOUPPER (i) = 222
i = 223
islower (i) = 2, ISLOWER (i) = 0
toupper (i) =...
2012 Aug 06
2
[LLVMdev] Question about llvm JIT
...ant
}
I would like to JIT this function in C.
I first get the void pointer using:
void *FPtr = TheExecutionEngine->getPointerToFunction( func );
Then I need to conver this void pointer to the corresponding C function
pointer
type, and then call the function pointer.
double a[2][3];
CType *FP = (CType*) FPtr;
a = FP();
My question is that:
1. Is this JIT work flow supported by LLVM?
2. If yes, what is correct CType for the JITted function?
3. If not, what are requirements on the LLVM function IRs such that they
could be JIT and called in C?
Thanks,
-Peng
-------------- next...
2012 Dec 03
1
configure: error: python does not have ctypes support
Hi,
I am trying to install glusterfs 3.3.1 from source code. At the time of
configuration i am getting the following error
* configure: error: python does not have ctypes support*
On my system python version is: 2.4.3
Kindly advice on fixing the error.
Thanks n Regards
Neetu Sharma
Bangalore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20121203/e3c2ff28/atta...
2012 Apr 10
3
[PATCH 0/2] adding tracepoints to vhost
To help in vhost analyzing, the following series adding basic tracepoints to
vhost. Operations of both virtqueues and vhost works were traced in current
implementation, net code were untouched. A top-like satistics displaying script
were introduced to help the troubleshooting.
TODO:
- net specific tracepoints?
---
Jason Wang (2):
vhost: basic tracepoints
tools: virtio: add a