search for: strsep

Displaying 20 results from an estimated 276 matches for "strsep".

2006 Aug 21
0
problem building openssh-4.3p2 on Fedora Core 5 using gcc -std=c99
This problem actually came up with pdftex-1.40, which now uses the openbsd-compat code. I routinely build pdftex with c99 to reduce reliance on old gcc extensions, in the hope that things will be more consistent across linux and unix. I think the problem is that the way configure checks for strsep leaves things open for a #def'd version to conflict with the replacement version. I'm willing to accept the view that gcc -std=c99 shouldn't #def strsep, but a google search indicates this is a common problem that is usually handled by #define HAVE_STRSEP, so it seems wisest to adjust c...
2000 Jul 13
2
[PATCH] OpenSSH 2.1.1pl3 (portable), readconf.c and strsep(3)
The latest changes (replacing strtok with strsep) in OpenSSH's readconf.c broke many ~/.ssh/config files. Actually those which uses more than one whitespace character to separate keyword and value. For instance my ~/.ssh/config file reads: | BatchMode no | Compression yes | CompressionLevel 3 | FallBackToRsh...
2009 Jun 09
2
oggz mingw
...-O2 -Wall -Wextra -g -std=gnu99 -Wdeclaration-after-statement -Wno-unused -o .libs/oggz-info.exe oggz-info.o skeleton.o oggz_tools.o dirac.o ../liboggz/.libs/liboggz.a /mingw/lib/libogg.a oggz-info.o: In function `ot_fisbone_print': c:\liboggz\src\tools/oggz-info.c:297: undefined reference to `strsep' collect2: ld returned 1 exit status make[4]: *** [oggz-info.exe] Error 1 That bit of code is: printf("\tMessage Header Fields:\n"); while (1) { token = strsep(&messages, "\n\r"); printf("\t %s", token); if (messages == NULL) break;...
2003 Jan 25
1
Build failures: nanosleep on Solaris and AIX 4.2.x
...top innetgr login_getcapbool md5_crypt memmove nsleep \ mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo pstat readpassphrase \ realpath recvmsg rresvport_af sendmsg setdtablesize setegid \ setenv seteuid setgroups setlogin setproctitle setresgid setreuid \ @@ -615,6 +615,11 @@ dnl Make sure strsep prototype is defined before defining HAVE_STRSEP AC_CHECK_DECL(strsep, [AC_CHECK_FUNCS(strsep)]) + +AC_CHECK_FUNC(nanosleep, + AC_DEFINE(HAVE_NANOSLEEP), + AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP)) +) dnl IRIX and Solaris 2.5.1 have dirname() in libgen AC_CH...
2001 Jun 07
0
Patch for systems with no setreuid()
...etttyent getusershell glob inet_aton inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep strtok_r sysconf tcgetpgrp utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop +for ac_func in arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent getusershell glob inet_...
2000 Jul 11
3
Test snapshot
...4 [auth-rsa.c auth2.c ssh-keygen.c] clean code is good code - deraadt at cvs.openbsd.org 2000/07/07 02:14:29 [serverloop.c] sense of port forwarding flag test was backwards - provos at cvs.openbsd.org 2000/07/08 17:17:31 [compat.c readconf.c] replace strtok with strsep; from David Young <dyoung at onthejob.net> - deraadt at cvs.openbsd.org 2000/07/08 19:21:15 [auth.h] KNF - ho at cvs.openbsd.org 2000/07/08 19:27:33 [compat.c readconf.c] Better conditions for strsep() ending. - ho at cvs.openbsd.org 2000/07/10 10:27:05...
2002 Sep 17
8
[Bug 397] Openssh build failure AIX 4.3.3
http://bugzilla.mindrot.org/show_bug.cgi?id=397 ------- Additional Comments From dtucker at zip.com.au 2002-09-18 00:55 ------- Not sure about error 1, but error 2 has been fixed in -current (see bug #265). As for error 3, the last time I built using the native compiler, I used "CC=xlc" which worked; if possible try that. ------- You are receiving this mail because: -------
2003 Jun 04
1
new application Dialtone()
...t; int res; > char tmp[256]; > char *stringp, *mailbox, *stimeout; > int timeout; > > stringp = mailbox = stimeout = NULL; > timeout = 10000; > > strncpy(tmp, data, sizeof(tmp)-1), > stringp = tmp; > > stimeout = strsep(&stringp, "|"); > if(stimeout && stimeout[0]) { > mailbox = strsep(&stringp, "|"); > timeout = atoi(stimeout) * 1000; > } > > > if(mailbox && ast_app_has_voicemail(mailbox)) { >...
2002 Oct 25
0
NeXT Community
...etvbuf sigaction sigvec snprintf \ socketpair strerror strlcat strlcpy strmode sysconf tcgetpgrp \ truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty) + +dnl Make sure that mmap prototype is defined before defining HAVE_MMAP +AC_CHECK_DECL(mmap, [AC_CHECK_FUNCS(mmap)]) dnl Make sure strsep prototype is defined before defining HAVE_STRSEP AC_CHECK_DECL(strsep, [AC_CHECK_FUNCS(strsep)])
2003 Apr 08
1
IRIX compilation and openbsd-compat/basename.h
I was trying to compile openssh-3.6.1p1 on IRIX and ran across this error while compiling progressmeter.c: "/usr/include/libgen.h", line 35: error(1143): declaration is incompatible with "char *basename(const char *)" (declared at line 9 of "openbsd-compat/basename.h") extern char *basename(char *); ^ 1 error detected in the
2003 May 09
1
[Bug 558] configure broken_dirname checks not run on Solaris 2.5.1
...n, getspnam, LIBS="$LIBS -lgen")) - AC_ARG_WITH(rpath, [ --without-rpath Disable auto-added -R linker paths], [ @@ -622,7 +619,6 @@ ) AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP)) -AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME)) dnl Make sure strsep prototype is defined before defining HAVE_STRSEP AC_CHECK_DECL(strsep, [AC_CHECK_FUNCS(strsep)]) @@ -663,6 +659,10 @@ fi ]) ]) + +AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME)) +AC_CHECK_FUNC(getspnam, , + AC_CHECK_LIB(gen, getspnam, LIBS="$LIBS -lgen")) dnl Checks f...
2003 Aug 14
1
setres[gu]id implicit decl warning on Linux glibc
Hi, With recent snapshots, I noted a warning in compilation on Red Hat Linux 7.3 system with glibc 2.2.5: uidswap.c: In function `permanently_set_uid': uidswap.c:155: warning: implicit declaration of function `setresgid' uidswap.c:168: warning: implicit declaration of function `setresuid' The problem appears to be that these should be prototyped in unistd.h, but aren't. There
2011 Mar 09
2
collapse a data column into a row
I have a file with a data in columnar format like below: probeID rc_AI104113_at rc_AI178259_f_at rc_AI179134_i_at rc_AI179134_f_at rc_AI104113_at rc_AA819429_f_at How can I rewrite it in the format below: 'rc_AI104113_at', 'rc_AI178259_f_at', 'rc_AI179134_i_at', 'rc_AI179134_f_at', 'rc_AI104113_at', 'rc_AA819429_f_at' Is there any function to do
2000 Jul 12
0
Announce: portable OpenSSH 2.1.1p3
...4 [auth-rsa.c auth2.c ssh-keygen.c] clean code is good code - deraadt at cvs.openbsd.org 2000/07/07 02:14:29 [serverloop.c] sense of port forwarding flag test was backwards - provos at cvs.openbsd.org 2000/07/08 17:17:31 [compat.c readconf.c] replace strtok with strsep; from David Young <dyoung at onthejob.net> - deraadt at cvs.openbsd.org 2000/07/08 19:21:15 [auth.h] KNF - ho at cvs.openbsd.org 2000/07/08 19:27:33 [compat.c readconf.c] Better conditions for strsep() ending. - ho at cvs.openbsd.org 2000/07/10 10:27:05...
2000 Jul 12
0
Announce: portable OpenSSH 2.1.1p3
...4 [auth-rsa.c auth2.c ssh-keygen.c] clean code is good code - deraadt at cvs.openbsd.org 2000/07/07 02:14:29 [serverloop.c] sense of port forwarding flag test was backwards - provos at cvs.openbsd.org 2000/07/08 17:17:31 [compat.c readconf.c] replace strtok with strsep; from David Young <dyoung at onthejob.net> - deraadt at cvs.openbsd.org 2000/07/08 19:21:15 [auth.h] KNF - ho at cvs.openbsd.org 2000/07/08 19:27:33 [compat.c readconf.c] Better conditions for strsep() ending. - ho at cvs.openbsd.org 2000/07/10 10:27:05...
2002 Jul 03
2
2.2.5 - SOl 2.8 - Recycle Bin VFS
...daemon.error] [2002/07/03 10:08:26, 0] smbd/vfs.c:vfs_init_custom(142) Jul 3 10:08:26 serv03 smbd[1544]: [ID 702911 daemon.error] Error opening /usr/local/samba.22/vfs/recycle.so: ld.so.1: /usr/local/samba.22/sbin/smbd: fatal: relocation error: file /usr/local/samba.22/vfs/recycle.so: symbol strsep: referenced symbol not found Jul 3 10:08:26 serv03 smbd[1544]: [ID 702911 daemon.error] [2002/07/03 10:08:26, 0] smbd/vfs.c:smbd_vfs_init(187) Jul 3 10:08:26 serv03 smbd[1544]: [ID 702911 daemon.error] smbd_vfs_init: vfs_init_custom failed Jul 3 10:08:26 serv03 smbd[1544]: [ID 702911 daemon...
2011 Nov 15
1
[PATCH] virtio-mmio: Devices parameter parsing
...-cmdline", +}; + +static int virtio_mmio_register_cmdline_devices(void) +{ + int err; + int id = 0; + char *device = NULL; + char *token; + + err = device_register(&virtio_mmio_cmdline_parent); + if (err) + return err; + + /* Split colon-or-semicolon-separated devices */ + while ((token = strsep(&virtio_mmio_cmdline_devices, ",;")) != NULL) { + struct resource resources[] = { + { + .flags = IORESOURCE_IRQ, + }, { + .flags = IORESOURCE_MEM, + } + }; + char *size, *base; + unsigned long long val; + + if (!*token) + continue; + + kfree(device); + device = ks...
2011 Nov 15
1
[PATCH] virtio-mmio: Devices parameter parsing
...-cmdline", +}; + +static int virtio_mmio_register_cmdline_devices(void) +{ + int err; + int id = 0; + char *device = NULL; + char *token; + + err = device_register(&virtio_mmio_cmdline_parent); + if (err) + return err; + + /* Split colon-or-semicolon-separated devices */ + while ((token = strsep(&virtio_mmio_cmdline_devices, ",;")) != NULL) { + struct resource resources[] = { + { + .flags = IORESOURCE_IRQ, + }, { + .flags = IORESOURCE_MEM, + } + }; + char *size, *base; + unsigned long long val; + + if (!*token) + continue; + + kfree(device); + device = ks...
2001 Jan 23
0
Build Problem
...es.h:95, from bsd-arc4random.c:25: bsd-misc.h:60: redefinition of `struct timeval' bsd-misc.h:66: two or more data types in declaration of `utimes' In file included from openbsd-compat.h:23, from includes.h:95, from bsd-arc4random.c:25: bsd-strsep.h:7: parse error before `__extension__' bsd-strsep.h:7: parse error before `(' In file included from openbsd-compat.h:24, from includes.h:95, from bsd-arc4random.c:25: bsd-strtok.h:7: parse error before `__extension__' In file included from openbsd-comp...
2001 May 22
1
[PATCH]: configure.in: Missing check for setvbuf
...etttyent getusershell glob inet_aton inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep strtok_r sysconf tcgetpgrp utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop) +AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent getusershell glob inet...