Displaying 20 results from an estimated 105 matches for "isspac".
Did you mean:
isspam
1999 Oct 30
1
read.table problem on Linux/Alpha (seg faults caused by isspace(R_EOF)) (PR#303)
...Here is a fix.
--- R-0.65.1/src/main/scan.c.orig Wed Sep 29 11:11:45 1999
+++ R-0.65.1/src/main/scan.c Fri Oct 29 17:34:22 1999
@@ -124,7 +124,7 @@
if (bufp >= &buffer[MAXELTSIZE - 2])
continue;
*bufp++ = c;
- } while (!isspace(c = scanchar()) && c != R_EOF);
+ } while ((c = scanchar()) != R_EOF && !isspace(c));
while (c==' ' || c=='\t')
c=scanchar();
if (c=='\n' || c=='\r' || c==R_EOF)
@@ -647,7 +647,7 @@
}...
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 start working again :)
In look...
2016 Jun 16
1
[PATCH] mllib: Add isspace, triml, trimr and trim functions.
....34e1285 100644
--- a/mllib/common_utils.ml
+++ b/mllib/common_utils.ml
@@ -49,6 +49,35 @@ module String = struct
and len = length str in
len >= sufflen && sub str (len - sufflen) sufflen = suffix
+ (* Note OCaml stdlib has an "is_space" function. *)
+ let isspace c =
+ c = ' '
+ (* || c = '\f' *) || c = '\n' || c = '\r' || c = '\t' (* || c = '\v' *)
+
+ let triml ?(test = isspace) str =
+ let i = ref 0 in
+ let n = ref (String.length str) in
+ while !n > 0 && test str.[!...
2009 Mar 07
3
rosh patch V2
Here is a second version of my patch from last night.
It uses the provided ctype function isspace and does the same readdir().
I remove the rosh_issp() function. I admit to being a bit liberal with my
use of braces and spaces.
We all of the habit of knowing we can invent a more perfect wheel.
Let me know if you have any questions.
Keith
-------------- next part --------------
A non-text att...
2009 Jul 07
1
Non-standard conformant usage of ctype functions
...ious reasons this results in problems if you use signed char
variables as parameters in calls to the ctype functions, if you support
other charsets than ASCII.
In theory OpenSSH has this problem as well. With a few exceptions it
uses (signed) char values throughout in calls to ctype functions like
isspace.
However, given that OpenSSH doesn't call setlocale, the locale is always
"C" and the chance that the ctype functions return a wrong value is rather
tiny. Nevertheless, for the sake of correctness, and to avoid potential
problems in some later, locale-aware version of OpenSSH, I...
2002 Aug 02
3
[Bug 377] New: Reduce compiler warnings. Use unsigned args to the ctype.h is*() macros.
...of the 0 thru 0x7f range
and the implementation of the is*() macros as using an index into an
array, negative arguments could lead to unexpected behavior.
log:
* canohost.c (get_remote_hostname): Argument to macro
isupper() should be unsigned.
* clientloop.c (process_cmdlin): Argument to macro isspace()
should be unsigned.
* 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): Argumen...
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 surprising inputs.
>From 0ca36888c6975ffa7e03df11bf8ded421569...
2008 Aug 19
1
[patch] fix to ForceCommand to support additional arguments to internal-sftp
...if (options.adm_forced_command) {
original_command = command;
command = options.adm_forced_command;
- if (strcmp(INTERNAL_SFTP_NAME, command) == 0)
+ if (strncmp(INTERNAL_SFTP_NAME, command,
strlen(INTERNAL_SFTP_NAME)) == 0 &&
isspace(command[strlen(INTERNAL_SFTP_NAME)]))
s->is_subsystem = SUBSYSTEM_INT_SFTP;
else if (s->is_subsystem)
s->is_subsystem = SUBSYSTEM_EXT;
@@ -789,7 +789,7 @@
} else if (forced_command) {
original_command...
2016 Dec 09
0
Re: [PATCH] generator: Share Common_utils code.
...b2 = Bytes.of_string s in
> - let r = ref false in
> - for i = 0 to Bytes.length b2 - 1 do
> - if Bytes.unsafe_get b2 i = c1 then (
> - Bytes.unsafe_set b2 i c2;
> - r := true
> - )
> - done;
> - if not !r then s else Bytes.to_string b2
Ditto.
> -let isspace c =
> - c = ' '
> - (* || c = '\f' *) || c = '\n' || c = '\r' || c = '\t' (* || c = '\v' *)
Ditto.
> -let triml ?(test = isspace) str =
> - let i = ref 0 in
> - let n = ref (String.length str) in
> - while !n > 0 &&...
2008 Oct 11
1
[PATCH] fstype: Fix ext4/ext4dev probing
...stem is in /proc/filesystems.
+ * Returns 1 if found, 0 if not
+ */
+static int fs_proc_check(const char *fs_name)
+{
+ FILE *f;
+ char buf[80], *cp, *t;
+
+ f = fopen("/proc/filesystems", "r");
+ if (!f)
+ return (0);
+ while (fgets(buf, sizeof(buf), f)) {
+ cp = buf;
+ if (!isspace(*cp)) {
+ while (*cp && !isspace(*cp))
+ cp++;
+ }
+ while (*cp && isspace(*cp))
+ cp++;
+ if ((t = strchr(cp, '\n')) != NULL)
+ *t = 0;
+ if ((t = strchr(cp, '\t')) != NULL)
+ *t = 0;
+ if ((t = strchr(cp, ' ')) != NULL)
+ *t = 0;
+ if (!...
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 the following project:
# Project Name: The kernel C library
# This patch format is intended for GNU patch command version 2.5 or highe...
2006 Jun 04
0
[LLVMdev] "pure" functions"
...cate this
> to LLVM, so that the function call can be removed if the return value is
> never used?
There isn't a way to do this from the source code yet. However, if this
is a standard library function, you can add it to the end of
lib/Analysis/BasicAliasAnalysis.cpp. Search of "isspace".
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
2009 Apr 09
3
type.convert (PR#13646)
Full_Name: Stefan Raberger
Version: 2.8.1
OS: Windows XP
Submission from: (NULL) (213.185.163.242)
Hi there,
I recently noticed some strange behaviour of the command "type.convert",
depending on the startup mode used. But there also seems to be different
behaviour on different PCs (all running the same OS and the same version of R).
On PC1:
When I start R in SDI mode (RGui --no-save
2006 Jun 04
3
[LLVMdev] "pure" functions"
Hi,
say I've a LLVM module with a call instruction. The called function is
"pure", that is it has no side-effects at all. How can I communicate this
to LLVM, so that the function call can be removed if the return value is
never used?
Thanks,
Volodya
2010 Jul 07
3
Message: "err:psdrv:PSDRV_PPDGetNextTuple Line too long."
...;& line[1] != '%' && strncmp(line, "*End", 4))
00376 break;
00377 } while(1);
00378
00379 if(line[strlen(line)-1] != '\n') {
00380 ERR("Line too long.\n");
00381 goto start;
00382 }
00383
00384 for(cp = line; !isspace(*cp) && *cp != ':'; cp++)
00385 ;
00386
00387 endkey = cp;
00388 if(*cp == ':') { /* <key>: */
00389 gotoption = FALSE;
00390 } else {
00391 while(isspace(*cp))
00392 cp++;
00393 if(*cp == ':') { /* <key>...
2017 May 26
0
Wine release 2.9
...it crashes exporting any HKEY_* entry
43062 Installer from GOG.com displays black rectangles
----------------------------------------------------------------
Changes since 2.8:
Akihiro Sagawa (15):
oleaut32: Fix parse error when converting non-ascii string to VT_DATE.
crypt32: Use isspaceW() instead of isspace() for WCHARs.
midimap: Avoid using isdigit() for WCHARs.
dbghelp: Avoid using isdigit() for WCHARs.
ntdll: Avoid using isdigit() for WCHARs.
secur32: Use isspaceW() instead of isspace() for WCHARs.
shell32: Avoid using isspace() for WCHARs....
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
2019 Oct 07
0
[klibc:master] fstype: Drop obsolete support for "ext4dev"
...system is in /proc/filesystems.
- * Returns 1 if found, 0 if not
- */
-static int fs_proc_check(const char *fs_name)
-{
- FILE *f;
- char buf[80], *cp, *t;
-
- f = fopen("/proc/filesystems", "r");
- if (!f)
- return 0;
- while (fgets(buf, sizeof(buf), f)) {
- cp = buf;
- if (!isspace(*cp)) {
- while (*cp && !isspace(*cp))
- cp++;
- }
- while (*cp && isspace(*cp))
- cp++;
- t = strchr(cp, '\n');
- if (t != NULL)
- *t = 0;
- t = strchr(cp, '\t');
- if (t != NULL)
- *t = 0;
- t = strchr(cp, ' ');
- if (t != NULL)
- *t =...
2008 Aug 19
1
fixed: [patch] fix to ForceCommand to support additional arguments to internal-sftp
...original_command = command;
command = options.adm_forced_command;
- if (strcmp(INTERNAL_SFTP_NAME, command) == 0)
+ if (strcmp(INTERNAL_SFTP_NAME, command) == 0 ||
strncmp(INTERNAL_SFTP_NAME, command, strlen(INTERNAL_SFTP_NAME)) == 0 &&
isspace(command[strlen(INTERNAL_SFTP_NAME)]))
s->is_subsystem = SUBSYSTEM_INT_SFTP;
else if (s->is_subsystem)
s->is_subsystem = SUBSYSTEM_EXT;
@@ -789,7 +789,7 @@
} else if (forced_command) {
original_command...
2001 May 17
0
Patch: Set SSH_AUTHKEY to key id used to authenticate.
...thdata/key.c Thu May 17 00:56:46 2001
@@ -781,3 +781,23 @@
break;
}
}
+
+const char *key_matching_data(char *cp)
+{
+ static int isSet = 0;
+ static char name[100];
+ char *s;
+ int len = 0;
+
+ if (!cp) return(isSet ? name : NULL);
+
+ /* skip leading white-space */
+ for (; *cp && isspace(*cp); cp++);
+ /* copy the data to name */
+ for (s = name; *cp && !isspace(*cp) && len < sizeof(name); s++, cp++, len++)
+ *s = *cp;
+ *s = '\0';
+ isSet = 1;
+
+ return(NULL);
+}
diff -ur openssh-2.9p1/key.h openssh-2.9p1authdata/key.h
--- openssh-2.9p1/key.h Tue Ap...