search for: isblank

Displaying 20 results from an estimated 133 matches for "isblank".

2007 Mar 15
1
my_isspace can be isblank
Hey, I noticed my_isspace() is being used in menu/mainmenu and readconfig com32 modules. Why not use isblank() instead? Here's a patch: thanks. Ram --- com32/modules/menu.h //depot/opensource/main/syslinux-3/com32/modules/menu.h#2 +++ com32/modules/menu.h 07-03-15 16:27:14 @@ -87,11 +87,6 @@ void parse_configs(char **argv); extern int (*draw_background)(const char *filename); -static inline int...
2016 Aug 02
2
OpenSSH 7.3p1 can't be build on Solaris 10
...says it needs _XOPEN_SOURCE. saved_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -D_XOPEN_SOURCE" AC_CHECK_FUNCS([mblen mbtowc nl_langinfo wcwidth]) CFLAGS="$saved_CFLAGS" AC_LINK_IFELSE( [AC_LANG_PROGRAM(and [[ #include <ctype.h> ]], [[ return (isblank('a')); ]])], [AC_DEFINE([HAVE_ISBLANK], [1], [Define if you have isblank(3C).]) ]) before that the mblen test didn't have XOPEN_SOURCE. The failing condition is "if defined(_STDC_C99) && (defined(__XOPEN_OR_POSIX) && !defined(_XPG6))". The above expl...
2013 Feb 15
2
getpgrp
...=============================================== RCS file: /var/cvs/openssh/openbsd-compat/bsd-misc.c,v retrieving revision 1.36 diff -u -p -r1.36 bsd-misc.c --- openbsd-compat/bsd-misc.c 8 Nov 2010 22:26:23 -0000 1.36 +++ openbsd-compat/bsd-misc.c 15 Feb 2013 00:26:37 -0000 @@ -246,4 +246,18 @@ int isblank(int c) { return (c == ' ' || c == '\t'); } + +#ifndef HAVE_GETPGID +pid_t +getpgid(pid_t pid) +{ +#ifdef HAVE_GETPGRP + if (pid == 0) + return getpgrp(); +#endif + errno = ESRCH; + return -1; +} +#endif + #endif Index: openbsd-compat/bsd-misc.h ================================...
2014 Sep 27
2
[PATCH 1/2] Implement realpath()
...v.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 <unistd.h> + +static char...
2014 Sep 29
0
[PATCH v2 1/2] Implement realpath()
...v.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 <unistd.h> + +/* + * Note...
2004 Jan 24
1
get rid of various warnings, errors in io.h
...ype 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' /home/mesa/boot/klibc/klibc/include/ctype.h:69: warning: no previous prototype for `isgraph' /ho...
2016 Jan 06
0
[klibc:master] Implement realpath()
...v.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> +#include <limits.h&g...
2019 Sep 18
2
[PATCH] build: remove unused gnulib modules
.../gnulib-common.m4 /gnulib-comp.m4 /gnulib-tool.m4 /gnu-make.m4 -/hash.m4 /host-cpu-c-abi.m4 -/hostent.m4 /human.m4 /iconv.m4 /include_next.m4 -/inet_ntop.m4 /inet_pton.m4 /__inline.m4 /intlmacosx.m4 @@ -103,13 +83,9 @@ /inttypes.m4 /inttypes-pri.m4 /ioctl.m4 -/i-ring.m4 -/isatty.m4 /isblank.m4 -/isc-posix.m4 /langinfo_h.m4 /largefile.m4 -/lchown.m4 /lcmessage.m4 /lib-ld.m4 /lib-link.m4 @@ -125,7 +101,6 @@ /locale-zh.m4 /localtime-buffer.m4 /lock.m4 -/longdouble.m4 /longlong.m4 /lseek.m4 /lstat.m4 @@ -143,7 +118,6 @@ /memmem.m4 /mempcpy.m4 /memrchr.m4 -/mgetgroups.m4 /mi...
2016 Jan 02
3
ssh-keygen: sanitize ANSI escape sequences in key comment
Hi, Today I fiddled around a bit with my OpenSSH public key files, and I noticed that ssh-keygen prints most non-printable characters in the comment as-is when showing the fingerprint of a key. This can lead to confusing output on the terminal when the comment contains ANSI escape characters which are interpreted by the terminal. The attached public key file serves as an example, which, when
2007 Sep 03
2
[git patch] minor fixes
...revious 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/../include/ctype.h:131: warning: no previous prototype for 'isgraph' usr/klibc/../incl...
2009 Sep 11
1
[PATCH] guestfish: Enable grouping in string lists
.../* This loop is over token 'fragments'. A token can be in multiple bits if + * it contains single quotes. We also treat both sides of an escaped quote + * as separate fragments because we can't just copy it: we have to remove + * the \. + */ + while (*p && (!isblank (*p) || in_quote)) { + const char *end = p; + + /* Check if the fragment starts with a quote */ + if ('\'' == *p) { + /* Toggle in_quote */ + in_quote = !in_quote; + + /* Skip the quote */ + p++; end++; + } + + /* If we're in a qu...
2007 Aug 15
0
[git patch] fstype support + minor stuff
...ority.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/getpwuid.o userdb/root_group....
2009 Sep 11
1
[FOR REVIEW ONLY] guestfish: Enable grouping in string lists
.../* This loop is over token 'fragments'. A token can be in multiple bits if + * it contains single quotes. We also treat a both sides of an escaped quote + * as separate fragments because we can't just copy it: we have to remove + * the \. + */ + while (*p && (!isblank (*p) || in_quote)) { + const char *end = p; + + /* Check if the fragment starts with a quote */ + if ('\'' == *p) { + /* Toggle in_quote */ + in_quote = !in_quote; + + /* Skip the quote */ + p++; end++; + } + + /* If we're in a qu...
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
2019 Sep 18
0
Re: [PATCH] build: remove unused gnulib modules
...t; /host-cpu-c-abi.m4 > -/hostent.m4 > /human.m4 > /iconv.m4 > /include_next.m4 > -/inet_ntop.m4 > /inet_pton.m4 > /__inline.m4 > /intlmacosx.m4 > @@ -103,13 +83,9 @@ > /inttypes.m4 > /inttypes-pri.m4 > /ioctl.m4 > -/i-ring.m4 > -/isatty.m4 > /isblank.m4 > -/isc-posix.m4 > /langinfo_h.m4 > /largefile.m4 > -/lchown.m4 > /lcmessage.m4 > /lib-ld.m4 > /lib-link.m4 > @@ -125,7 +101,6 @@ > /locale-zh.m4 > /localtime-buffer.m4 > /lock.m4 > -/longdouble.m4 > /longlong.m4 > /lseek.m4 > /lstat.m4 &gt...
2019 Sep 23
0
[PATCH v2 5/5] build: remove unused gnulib modules
.../gnulib-common.m4 /gnulib-comp.m4 /gnulib-tool.m4 -/gnu-make.m4 -/hash.m4 /host-cpu-c-abi.m4 -/hostent.m4 /human.m4 -/iconv.m4 /include_next.m4 -/inet_ntop.m4 /inet_pton.m4 /__inline.m4 /intlmacosx.m4 @@ -103,13 +74,9 @@ /inttypes.m4 /inttypes-pri.m4 /ioctl.m4 -/i-ring.m4 -/isatty.m4 /isblank.m4 -/isc-posix.m4 /langinfo_h.m4 /largefile.m4 -/lchown.m4 /lcmessage.m4 /lib-ld.m4 /lib-link.m4 @@ -125,7 +92,6 @@ /locale-zh.m4 /localtime-buffer.m4 /lock.m4 -/longdouble.m4 /longlong.m4 /lseek.m4 /lstat.m4 @@ -143,7 +109,6 @@ /memmem.m4 /mempcpy.m4 /memrchr.m4 -/mgetgroups.m4 /min...
2016 Aug 01
4
OpenSSH 7.3p1 can't be build on Solaris 10
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 configure:17280: result: no configure:17300: checking for mblen configure:17356: gcc -o conftest -O3 -m64 -mtune=native -pipe -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset
2010 Dec 05
1
[PATCH 4/5][REPOST][BTRFS-PROGS] Avoid to scan cdrom and floppy
...024]; + int i; + FILE *fp; + + if(device_checklist_count) + return 0; + + if( fn == 0 ) + return 0; /* no extra rules provided */ + + fp = fopen(fn, "r"); + if(!fp) + return 0; /* the file doesn''t exist */ + + while(fgets(buf,1023, fp)){ + char *p = buf; + char *l; + while (isblank(*p)) p++; + l = p; + while( *l != ''\n'' && *l != ''\r'' && *l ) l++; + *l = 0; + + if( *p == ''#'' || *p == 0 ) + continue; + + if(device_checklist_add(p)){ + fclose(fp); + return -2; + } + } + fclose(fp); + + for(i=0; def...
2017 Aug 14
3
[PATCH] builder: templates: debian: use single-partition layout
The previously selected 'atomic' recipe resulted in 2GB swap in a 6GB volume. Also, we don't really need the boot partition, so just create a partition using the whole disk space. --- builder/templates/debian.preseed | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/builder/templates/debian.preseed b/builder/templates/debian.preseed index
2017 Jul 07
2
[PATCH v3] v2v: docs: VDSM location of virt-v2v log file.
See this bug for background information: https://bugzilla.redhat.com/show_bug.cgi?id=1350465 Thanks: Tomáš Golembiovský --- v2v/virt-v2v.pod | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/v2v/virt-v2v.pod b/v2v/virt-v2v.pod index e68d75cf8..87dba240b 100644 --- a/v2v/virt-v2v.pod +++ b/v2v/virt-v2v.pod @@ -1909,18 +1909,32 @@ that