Displaying 20 results from an estimated 28 matches for "islower".
Did you mean:
slower
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
tou...
2013 Nov 09
0
Standard errors in regression models with interactions terms
In a rather simple regression, I?d like to ask the question, for high trees,
whether it makes a difference (for volume) whether a three is thick.
If my interpretation is correct, for low trees, i.e. for which trees$isHigh
== FALSE, the answer is yes.
The problem is how to "merge" the standard errors. Code follows.
data(trees)
trees$isHigh <- trees$Height > 76
trees$isThick
2014 Sep 27
2
[PATCH 1/2] Implement realpath()
....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>
+#include <sys/stat.h>
+#include <unistd.h>
+
+static char *__realpath(const char *name, char *resolved_name, int recurse)
+{
+...
2017 Mar 21
4
Clang -O0 performs optimizations that undermine dynamic bug-finding tools
...ay (which is legit since it is UB). However, note that that cases exist
where no warning is printed. For example, 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 tha...
2003 Nov 24
1
[PATCH] fix off-by-one correction in ctypes
...int __c)
{
- return __ctypes[__c+1] & __ctype_digit;
+ return __ctypes[__c] & __ctype_digit;
}
__ctype_inline int isgraph(int __c)
{
- return __ctypes[__c+1] &
+ return __ctypes[__c] &
(__ctype_upper|__ctype_lower|__ctype_digit|__ctype_punct);
}
__ctype_inline int islower(int __c)
{
- return __ctypes[__c+1] & __ctype_lower;
+ return __ctypes[__c] & __ctype_lower;
}
__ctype_inline int isprint(int __c)
{
- return __ctypes[__c+1] & __ctype_print;
+ return __ctypes[__c] & __ctype_print;
}
__ctype_inline int ispunct(int __c)
{
- return __c...
2014 Sep 29
0
[PATCH v2 1/2] Implement realpath()
....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 <sys/types.h>
+#include <unistd.h>
+
+/*
+ * Note that this requires name to refer to an existing file. This is
+ * co...
2004 Jan 24
1
get rid of various warnings, errors in io.h
...ype
for `iscntrl'
/home/mesa/boot/klibc/klibc/include/ctype.h:64: warning: no previous prototype
for `isdigit'
/home/mesa/boot/klibc/klibc/include/ctype.h:69: warning: no previous prototype
for `isgraph'
/home/mesa/boot/klibc/klibc/include/ctype.h:75: warning: no previous prototype
for `islower'
/home/mesa/boot/klibc/klibc/include/ctype.h:80: warning: no previous prototype
for `isprint'
/home/mesa/boot/klibc/klibc/include/ctype.h:85: warning: no previous prototype
for `ispunct'
/home/mesa/boot/klibc/klibc/include/ctype.h:90: warning: no previous prototype
for `isspace'
/ho...
2016 Jan 06
0
[klibc:master] Implement realpath()
....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,0 +1,49 @@
+#include <fcntl.h>
+#include <limits.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <...
2007 Nov 23
3
[LLVMdev] Getting rid of the DoesntAccessMemoryFns and OnlyReadsMemoryFns tables
...e gcc says that a bunch of math ones are readonly because
they depend on the floating point mode; I think gcc is correct to
say this):
function LLVM says gcc says
-------- --------- --------
isalnum readnone readonly
isalpha readnone readonly
iscntrl readnone readonly
isgraph readnone readonly
islower readnone readonly
isprint readnone readonly
ispunct readnone readonly
isspace readnone readonly
isupper readnone readonly
tolower readnone readonly
toupper readnone readonly
iswalnum readnone readonly
iswalpha readnone readonly
iswcntrl readnone readonly
iswdigit readnone readonly
iswgraph r...
2007 Sep 03
2
[git patch] minor fixes
...revious prototype for 'iscntrl'
usr/klibc/../include/ctype.h:130: warning: no previous prototype for 'isdigit'
usr/klibc/../include/ctype.h:131: warning: no previous prototype for 'isgraph'
usr/klibc/../include/ctype.h:132: warning: no previous prototype for 'islower'
usr/klibc/../include/ctype.h:133: warning: no previous prototype for 'isprint'
usr/klibc/../include/ctype.h:134: warning: no previous prototype for 'ispunct'
usr/klibc/../include/ctype.h:135: warning: no previous prototype for 'isspace'
usr/klibc/../incl...
2001 Sep 28
0
openssh-2.9.9p2 subscript violation problems with ctype macros
...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' <= c && c <= 'F') {
+ val = (v...
2007 Aug 15
0
[git patch] fstype support + minor stuff
...and48.o srand48.o seed48.o \
- inet/inet_ntoa.o inet/inet_aton.o inet/inet_addr.o \
- inet/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 \...
2016 Jan 06
3
[PATCH klibc 0/3] Changes to support initramfs-tools 0.117
initramfs-tools version 0.117 requires 'readlink -f' and
'mount -o defaults' to work.
The first two patches were previously submitted but not applied.
Ben.
Ben Hutchings (3):
Implement realpath()
readlink: Add -f option
mount: Implement -o defaults
usr/include/stdlib.h | 2 ++
usr/klibc/Kbuild | 2 +-
usr/klibc/realpath.c | 49
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
2002 Aug 02
3
[Bug 377] New: Reduce compiler warnings. Use unsigned args to the ctype.h is*() macros.
...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
============================================...
2013 Nov 08
0
[PATCH 2/3] syscalls: Add syscalls needed by arm64
...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 open64.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/SYSCALLS.def b/usr/klibc/SYSCALLS.def
index 4630d14..c2f36e7 100644
--- a/usr/klibc/SYSCALLS.def
+++ b/usr/klibc/SYSCALLS.def
@@ -106,31 +106,31 @@ int swapoff(const char *);
/*
* Inode-related system calls
*/
-int access(const char *, int);
+<?>...
2013 Nov 12
0
[klibc:master] syscalls: Add syscalls needed by arm64
....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 \
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/SYSCALLS.def b/usr/klibc/SYSCALLS.def
index 55d8e36..12f57ac 100644
--- a/usr/klibc/SYSCALLS.def
+++ b/usr/klibc/SYSCALLS.def
@@ -106,34 +106,34 @@ int swapoff(const char *);
/*
* Inode-related system calls
*/
-int access(const char *, int);
+<?>...
2017 Jan 23
2
undefined symbols during linking LLDB 4.0 RC1
...000000000000008 GLIBC_2.2.5 geteuid
0000000000000000 DF *UND* 0000000000000076 Base _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc
0000000000000000 DF *UND* 0000000000000025 GLIBC_2.2.5 uname
0000000000000000 DF *UND* 000000000000003b GLIBC_2.2.5 islower
0000000000000000 DF *UND* 0000000000000025 GLIBC_2.2.5 socket
0000000000000000 DF *UND* 0000000000000081 GLIBC_2.2.5 ldexpf
0000000000000000 DF *UND* 0000000000000009 Base _ZNSt3__113basic_istreamIcNS_11char_traitsIcEEED1Ev
0000000000000000 DF *UND* 0000000000000206 G...
2009 Aug 03
1
use gnulib, and begin to pass its "make syntax-check" tests
...\
+ | grep -E '\.[ch](\.in)?$$' \
+ | grep -v '^gnulib/') && \
+ { echo '$(ME): found TAB(s) used for indentation in C sources;'\
+ 'use spaces' 1>&2; exit 1; } || :
+
+ctype_re = isalnum|isalpha|isascii|isblank|iscntrl|isdigit|isgraph|islower\
+|isprint|ispunct|isspace|isupper|isxdigit|tolower|toupper
+
+sc_avoid_ctype_macros:
+ @grep -E '\b($(ctype_re)) *\(' /dev/null \
+ $$($(VC_LIST_EXCEPT)) && \
+ { echo "$(ME): don't use ctype macros (use c-ctype.h)" \
+ 1>&2; exit 1; } || :
+
+sc_...
2013 Nov 11
5
[PATCH V2 0/3] Introduce arm64 support
Hello,
Here is V2 of the arm64 support for klibc patch set.
Notable changes since the original series:
* fp regs dropped from setjmp/longjmp
* chmod, lstat and stat re-implemented with *at functions.
* open64 merged into open.
As with the original, this series is to be applied against the latest
klibc, just after
25a66fa README.klibc: update build information
V2 has been tested on x86_64