search for: isascii

Displaying 20 results from an estimated 40 matches for "isascii".

2001 Sep 28
0
openssh-2.9.9p2 subscript violation problems with ctype macros
...* 0x=hex, 0=octal, isdigit=decimal. */ - if (!isdigit(c)) + if (! ('0' <= c && c <= '9')) return (0); val = 0; base = 10; if (c == '0') { @@ -125,12 +125,14 @@ inet_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' :...
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
2014 Sep 27
2
[PATCH 1/2] Implement realpath()
...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> +#include <sys/stat.h> +#include <unist...
2005 Apr 28
0
[LLVMdev] SimplifyLibCalls Pass -- Help!
...intf(file,"%c",chr) -> fputc(chr,file) fputs: (only if the result is not used) * fputs("",F) -> noop * fputs(s,F) -> fputc(s[0],F) (if s is constant and strlen(s) == 1) * fputs(s,F) -> fwrite(s, 1, len, F) (if s is constant and strlen(s) > 1) isascii: * isascii(c) -> ((c & ~0x7f) == 0) isdigit: * isdigit(c) -> (unsigned)(c) - '0' <= 9 log, logf, logl: * log(1.0) -> 0.0 * log(exp(x)) -> x * log(x**y) -> y*log(x) * log(exp(y)) -> y*log(e) * log(exp2(y)) -> y*log(2...
2013 Dec 18
1
SOLVED Re: kernel update to 3.12.5-1, now: upsd[617]: getaddrinfo: Servname not supported for ai_socktype
On Dec 17, 2013, at 1:08 PM, David C. Rankin wrote: > On 12/17/2013 10:43 AM, David C. Rankin wrote: >> Huh? Why the : in Servname? So I just hardwired it passing the port "Servname" >> as "3493" (could have just used "nut" from /etc/services): > > Sheepishly looking for a place to hide.... > > Yes there was a ':' there all
2006 Jun 27
0
Win32 Extension Issues Wanted!
...g problems that we had with Ruby 1.8.2 was the use of VS.NET 2003 (VC++ 7.1) and its general incompatibility -- focussing on errno, because that''s the one item which stuck in my mind -- with earlier and later runtimes, as well as a big problem of compatibility with MSYS/gcc and any MSVCRT (isascii, as reported by Ara Howard). They asked for as much information as I can gather on this matter. If you have had problems trying to get Ruby or an extension compiled or running on Windows for any reason, but especially because of Microsoft runtime DLL differences, please provide me as much informat...
2014 Sep 29
0
[PATCH v2 1/2] Implement realpath()
...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 <sys/types.h> +#include <unist...
2004 Jan 24
1
get rid of various warnings, errors in io.h
...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: warning: no previous prototype for `isblank' /home/mesa/boot/klibc/klibc/include/ctype.h:59: warning: no previous prototype for `iscntrl' /home/mesa/boot/klibc/klibc/include/ctype.h:64: warning: no previous prototype for `isdigit' /ho...
2016 Jan 06
0
[klibc:master] Implement realpath()
...ntf.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,0 +1,49 @@ +#include <fcntl.h> +#...
2019 Jan 18
0
[klibc:master] rename, renameat: Use renameat2() system call
...mod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \ + access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o renameat.o \ + stat.o \ lchown.o link.o rmdir.o unlink.o utimes.o lstat.o mkdir.o \ readlink.o realpath.o select.o symlink.o pipe.o \ ctype/isalnum.o ctype/isalpha.o ctype/isascii.o \ diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index c56e8f9..64d7b0c 100644 --- a/usr/klibc/SYSCALLS.def +++ b/usr/klibc/SYSCALLS.def @@ -116,6 +116,7 @@ int chdir(const char *); int fchdir(int); <?> int rename(const char *, const char *); <?> int renameat(int, con...
2004 Apr 18
0
[patch] R-1.9.0: compile error without nl_langinfo(CODESET) (PR#6789)
...ale.h \ netdb.h netinet/in.h \ pwd.h readline/history.h readline/readline.h strings.h \ sys/param.h sys/select.h sys/socket.h sys/stat.h sys/time.h \ @@ -1161,13 +1161,17 @@ AC_FUNC_ALLOCA AC_CHECK_FUNCS(access chdir expm1 fcntl finite ftruncate getcwd \ getgrgid getpwuid getuid hypot isascii isnan log1p matherr mkfifo \ - nl_langinfo popen putenv rint setenv strcoll stat strptime symlink \ + popen putenv rint setenv strcoll stat strptime symlink \ system times unsetenv) ## <NOTE> ## No need checking for bcopy bzero memcpy mempcpy even though ifnames ## might report corres...
2007 Sep 03
2
[git patch] minor fixes
...declarations, fixes those warnings: usr/klibc/../include/ctype.h:125: warning: no previous prototype for 'isalnum' usr/klibc/../include/ctype.h:126: warning: no previous prototype for 'isalpha' usr/klibc/../include/ctype.h:127: warning: no previous prototype for 'isascii' usr/klibc/../include/ctype.h:128: warning: no previous prototype for 'isblank' usr/klibc/../include/ctype.h:129: warning: no previous prototype for 'iscntrl' usr/klibc/../include/ctype.h:130: warning: no previous prototype for 'isdigit' usr/klibc/../incl...
2007 Aug 15
0
[git patch] fstype support + minor stuff
...llseek.o nice.o getpriority.o \ - qsort.o bsearch.o \ - lrand48.o jrand48.o mrand48.o nrand48.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/getpwui...
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
2018 Jul 17
1
[PATCH klibc 1/2] rename, renameat: Use renameat2() system call
...access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \ + access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o renameat.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 \ --- a/usr/klibc/rename.c +++ b/usr/klibc/rename.c @@ -5,7 +5,7 @@ int rename(const char *oldpath, const char *newpath) { - return renameat(AT_FDCWD, oldpath, AT_FDCWD, newpath); + return renameat2(AT_FDCWD, oldpath, AT_FDCWD, newpath, 0); } #endif /* __NR_rename */ --- /dev/null +++ b/u...
2002 Jan 02
0
R ./configure error | Solaris8 / E-450
...asinh... yes checking for atanh... yes checking for bcopy... yes checking for bzero... yes checking for finite... yes checking for ftruncate... yes checking for getcwd... yes checking for getgrgid... yes checking for getpwuid... yes checking for getuid... yes checking for hypot... yes checking for isascii... yes checking for isnan... yes checking for matherr... yes checking for memcpy... yes checking for memmove... yes checking for mempcpy... no checking for mkfifo... yes checking for popen... yes checking for putenv... yes checking for rint... yes checking for setenv... no checking for snprintf......
2013 Sep 12
10
[PATCH] xen/build: Remove hacked up version of figlet
...] = 0; - } - -/**************************************************************************** - - skipws - - Skips whitespace characters from a stream. - -****************************************************************************/ -void skipws(fp) -ZFILE *fp; -{ - int c; - while (c=Zgetc(fp),isascii(c)&&isspace(c)) ; - Zungetc(c,fp); - } - -/**************************************************************************** - - readnum - - Reads a number from a stream. Accepts "0" prefix for octal and - "0x" or "0X" for hexadecimal. Ignores leading whitesp...
2012 Aug 02
2
[LLVMdev] Proposal to merge SimplifyLibCalls into InstCombiner
...f, cos, cosl, powf, pow, powl, llvm.pow.f32, llvm.pow.f64, llvm.pow.f80, llvm.pow.f128, llvm.pow.ppcf128, exp21, exp2, exp2f, llvm.exp2.ppcf128, llvm.exp2.f128, llvm.exp2.f80, llvm.exp2.f64, llvm.exp2.f32, floor, cell, round, rint, nearbyint, ffs, ffsl, ffsll, abs, labs, llabs, isdigit, isascii, toascii, sprintf, print, fwrite, fputs, fprintf, puts. Test cases that exercise the library call folders for each of these functions should be present. Any missing test cases will be added. Create new `LibCallSimplifier` class ------------------------------------ A new self-contained `LibCa...
2002 Nov 05
2
2.5.6 release
On Tue, Nov 05, 2002 at 08:37:00AM -0800, Martin Pool wrote: > On 10 Oct 2002, "Green, Paul" <Paul.Green@stratus.com> wrote: > > No new CVS messages have appeared on the rsync-cvs archives since August > > 30th. This seems rather odd-- perhaps a daemon stopped working? If there > > has truly been no activity since that date, I apologize for > >
2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...() { return CurTok = gettok(); } /// BinopPrecedence - This holds the precedence for each binary operator that is /// defined. static std::map<char, int> BinopPrecedence; /// GetTokPrecedence - Get the precedence of the pending binary operator token. static int GetTokPrecedence() { if (!isascii(CurTok)) return -1; // Make sure it's a declared binop. int TokPrec = BinopPrecedence[CurTok]; if (TokPrec <= 0) return -1; return TokPrec; } /// Error* - These are little helper functions for error handling. ExprAST *Error(const char *Str) { fprintf(stderr, "Error: %s\n&q...