Displaying 20 results from an estimated 42 matches for "have_vsnprintf".
2001 Oct 18
2
Incorrect return types for snprintf() and vsnprintf()
Both of these functions are using strlen() to create return value.
Cheers,
Scott Rankin
*** /openbsd-compat/bsd-snprintf.c.orig Thu Oct 18 13:57:51 2001
--- /openbsd-compat/bsd-snprintf.c Thu Oct 18 13:58:26 2001
***************
*** 632,638 ****
#endif /* !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) */
#ifndef HAVE_VSNPRINTF
! int
vsnprintf(char *str, size_t count, const char *fmt, va_list args)
{
str[0] = 0;
--- 632,638 ----
#endif /* !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) */
#ifndef HAVE_VSNPRINTF
! size_t
vsnprintf(char *str, size_t count, const char *fmt, va_...
2003 Jun 25
2
snprintf, vsnprintf
...AIX 5.2-ML01 with IBM C for
AIX 6.0 and i'm having an issue with lib/snprintf.c
The first thing i noticed is that "includes.h" is not included which is
in many other places, but I'm sure there are reaasons.
The other thing is there is a check at the beginning for HAVE_SNPRINTF,
HAVE_VSNPRINTF and HAVE_C99_VSNPRINTF to include stdio.h - that one i
get. the one i don't get is at line 790:
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_SNPRINTF)
i can't find a HAVE_C99_SNPRINTF anywhere in configure unless it's under
another name, but it seems to me based on the description...
2001 Feb 12
5
SCO OS3 build broken (CVS 01/12/01)
It looks like something got broken in openbsd-compat/bsd-snprintf.c
...
gcc -g -O2 -Wall -Dftruncate=chsize -I/usr/local/include -I/usr/local/ssl/includ
e -I. -I.. -I../src/openbsd-compat -I../src/openbsd-compat/.. -DHAVE_CONFIG_H -c
../src/openbsd-compat/bsd-snprintf.c
In file included from ../src/openbsd-compat/bsd-snprintf.c:72:
2001 Mar 11
0
Problems with sftp under SCO OpenServer (fwd)
...toh.eviladmin.org [mailto:mouring at etoh.eviladmin.org]
> Sent: Monday, February 26, 2001 12:53 PM
> To: Greg Jewell
> Subject: RE: Problems with sftp under SCO OpenServer
>
>
>
> > I downloaded today's snap, and placed #undef HAVE_SNPRINTF
> and #undef
> > HAVE_VSNPRINTF in the openbsd-compat/bsd-snprintf.c file. When I
> > compiled this and connected to the system, everything looked good...
> >
> <grumble> That is what I was afraid of.
>
> Is 'llu' even valid under SCO's snprintf?
>
> - Ben
>
>
With SCO...
2008 Aug 30
2
Strange sender log file characters
Is there a reason I get the following strange characters in my log file?
2008/08/29 19:48:13 [7138] Number of files: 42321
2008/08/29 19:48:13 [7138] Number of files transferred: 78
2008/08/29 19:48:13 [7138] Total file size: +)*)/.+),00//,+)),( bytes
2008/08/29 19:48:13 [7138] Total transferred file size: +)*)/.+),(*0,+-.,0'
bytes
2008/08/29 19:48:13 [7138] Literal data: -+,((0),' bytes
2005 Dec 16
4
[Bug 1133] configure.ac sets wrong BROKEN_ var (snprintf/vsnprintf)
...gure: WARNING: ****** Your vsnprintf() function is broken, complain to
your vendor
The config.h file contains no BROKEN_VSNPRINTF at all
$ grep PRINTF config.h
#define BROKEN_SNPRINTF 1
/* #undef HAVE_ASPRINTF */
#define HAVE_SNPRINTF 1
/* #undef HAVE_VASPRINTF */
#define HAVE_VSNPRINTF 1
Build fails here:
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99
-I. -I.. -I. -I./.. -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
-DHAVE_CONFIG_H -c bsd-snprintf.c
bsd-snprintf.c:792: error: conflicting types for `snprintf'
/usr/local/l...
2003 Apr 08
1
compile 11.00 parisc1.1 32-bit fails - snprintf
...level:
lib/snprintf.c:760: error: conflicting types for `snprintf'
/usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/3.2/include/stdio.h:459: error:
previous declaration of `snprintf'
*** Error exit code 1
The problem seems to be in lib/snprintf.c :
#if defined(HAVE_SNPRINTF) && defined(HAVE_VSNPRINTF) &&
defined(HAVE_C99_VSNPRINTF)
/* only include stdio.h if we are not re-defining snprintf or vsnprintf */
#include <stdio.h>
/* make the compiler happy with an empty file */
void dummy_snprintf(void) {}
#else
<snip>
- if I just run:
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -DHAVE...
2012 Aug 06
1
Windows link.exe error : libbrass.lib(brass_table.obj) : unresolved external symbol _inflateEnd
...--------------------------------------
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl.exe -showIncludes -nologo -c -Zi -I.. -I..\include -I..\common
-I..\win32 -W3 -EHsc -DWIN32 -D__WIN32__ -D_WIN32
-D_WINDOWS -D "HAVE_VSNPRINTF" -D "HAVE_STRDUP" -D "_USE_32BIT_TIME_T"
-D_CRT_SECURE_NO_DEPRECATE -I"C:\Users\qwerty\Deskt
op\xapian-1.2.8\zlib-1.2.7" -O2 -MD -D NDEBUG /I ".." /I "..\testsuite"
/I"..\backends\flint" /I"..\backends\chert" /I"..\
bac...
2003 Dec 25
1
How to tell if option "with-acl-support" is compiledin Solaris smbd?
...PBRK
HAVE_STRTOUL
HAVE_STRUCT_DIRENT64
HAVE_STRUCT_FLOCK64
HAVE_SYMLINK
HAVE_SYSCALL
HAVE_SYSCONF
HAVE_SYSLOG
HAVE_UNIXSOCKET
HAVE_UPDWTMP
HAVE_UPDWTMPX
HAVE_USLEEP
HAVE_UTIMBUF
HAVE_UTIME
HAVE_UTIMES
HAVE_UX_UT_SYSLEN
HAVE_VA_COPY
HAVE_VOLATILE
HAVE_VSNPRINTF
HAVE_VSNPRINTF_DECL
HAVE_VSYSLOG
HAVE_WAITPID
HAVE_YP_GET_DEFAULT_DOMAIN
HAVE__ACL
HAVE__CHDIR
HAVE__CLOSE
HAVE__CLOSEDIR
HAVE__DUP
HAVE__DUP2
HAVE__ET_LIST
HAVE__FACL
HAVE__FCHDIR
HAVE__FCNTL
HAVE__FORK
HAVE__FSTAT
HAVE__FSTAT64
HAVE__GETCWD...
2005 Nov 09
0
Samba 3.0.20b / AIX 5.3 / VFS Modules
...LE_METHOD_VERSION
HAVE_STRUCT_STAT_ST_RDEV
HAVE_STRUCT_TIMESPEC
HAVE_ST_RDEV
HAVE_SYMLINK
HAVE_SYSCONF
HAVE_SYSLOG
HAVE_TELLDIR64
HAVE_UNIXSOCKET
HAVE_UNSIGNED_CHAR
HAVE_UPDWTMP
HAVE_USLEEP
HAVE_UTIMBUF
HAVE_UTIME
HAVE_UTIMES
HAVE_VA_COPY
HAVE_VOLATILE
HAVE_VSNPRINTF
HAVE_VSNPRINTF_DECL
HAVE_WAITPID
HAVE_YP_GET_DEFAULT_DOMAIN
HAVE__LSEEK
HAVE__READDIR
HAVE__READDIR64
HAVE___FCNTL
HAVE___FORK
--with Options:
WITH_AIO
WITH_SENDFILE
WITH_SYSLOG
WITH_UTMP
WITH_WINBIND
Build Options:
AIX
AIX_SENDFILE_API
BROKEN_STRNDUP
BROKEN_STRN...
2007 Sep 24
2
Where is the tdbsam password database file?
...YSCONF
HAVE_SYSLOG
HAVE_SYS_QUOTAS
HAVE_TICKET_POINTER_IN_KRB5_AP_REQ
HAVE_TIMEGM
HAVE_UNIXSOCKET
HAVE_UNSETENV
HAVE_UPDWTMP
HAVE_UPDWTMPX
HAVE_USLEEP
HAVE_UTIMBUF
HAVE_UTIME
HAVE_UTIMES
HAVE_VASPRINTF
HAVE_VASPRINTF_DECL
HAVE_VA_COPY
HAVE_VOLATILE
HAVE_VSNPRINTF
HAVE_VSNPRINTF_DECL
HAVE_VSYSLOG
HAVE_WAITPID
HAVE_WORKING_AF_LOCAL
HAVE_WRFILE_KEYTAB
HAVE_XFS_QUOTAS
HAVE_YP_GET_DEFAULT_DOMAIN
HAVE__Bool
HAVE__ET_LIST
HAVE__VA_ARGS__MACRO
HAVE___CLOSE
HAVE___DUP2
HAVE___FCNTL
HAVE___FORK
HAVE___FSTAT
HAVE___FXSTA...
2005 Oct 19
1
samba with ADS. winbindd ignore for user authentication
...HAVE_STRUCT_STAT_ST_RDEV
HAVE_STRUCT_TIMESPEC
HAVE_ST_RDEV
HAVE_SYMLINK
HAVE_SYSCALL
HAVE_SYSCONF
HAVE_SYSLOG
HAVE_TIMEGM
HAVE_UNIXSOCKET
HAVE_USLEEP
HAVE_UTIMBUF
HAVE_UTIME
HAVE_UTIMES
HAVE_VASPRINTF
HAVE_VASPRINTF_DECL
HAVE_VOLATILE
HAVE_VSNPRINTF
HAVE_VSNPRINTF_DECL
HAVE_VSYSLOG
HAVE_WAITPID
HAVE_YP_GET_DEFAULT_DOMAIN
HAVE__CHDIR
HAVE__CLOSE
HAVE__DUP
HAVE__DUP2
HAVE__ET_LIST
HAVE__FCHDIR
HAVE__FCNTL
HAVE__FORK
HAVE__FSTAT
HAVE__GETDENTS
HAVE__LSTAT
HAVE__OPEN
HAVE__READ...
2004 Aug 06
0
Submission: Patch to libshout/sock.c for MacOSX
...ssfully written, and 0 if not.
* Potential problems: Will truncate the string if longer than 1024 bytes.
* Might fuck everything up if no vsnprintf is available
*/
int sock_write(SOCKET sockfd, const char *fmt, ...)
{
char buff[1024];
va_list ap;
va_start(ap, fmt);
#ifdef HAVE_VSNPRINTF
vsnprintf(buff, 1024, fmt, ap);
#else
vsprintf(buff, fmt, ap);
#endif
va_end(ap);
return (sock_write_bytes(sockfd, buff, strlen(buff)) > 0);
}
/*
* Read one line of at max len bytes from sockfd into buff.
* If ok, return 1 and nullterminate buff. Otherwize return 0.
* Terminating \n is...
2005 May 18
1
Samba Comple Problem on Solaris 2.8
..._STRUCT_DIRENT64
HAVE_STRUCT_FLOCK64
HAVE_STRUCT_STAT_ST_RDEV
HAVE_ST_RDEV
HAVE_SYMLINK
HAVE_SYSCALL
HAVE_SYSCONF
HAVE_SYSLOG
HAVE_UNIXSOCKET
HAVE_UPDWTMP
HAVE_UPDWTMPX
HAVE_USLEEP
HAVE_UTIMBUF
HAVE_UTIME
HAVE_UTIMES
HAVE_UX_UT_SYSLEN
HAVE_VOLATILE
HAVE_VSNPRINTF
HAVE_VSNPRINTF_DECL
HAVE_VSYSLOG
HAVE_WAITPID
HAVE_YP_GET_DEFAULT_DOMAIN
HAVE__ACL
HAVE__CHDIR
HAVE__CLOSE
HAVE__CLOSEDIR
HAVE__DUP
HAVE__DUP2
HAVE__ET_LIST
HAVE__FACL
HAVE__FCHDIR
HAVE__FCNTL
HAVE__FORK
HAVE__FSTAT
HAVE__FSTAT64
HAVE__GETCWD...
2005 May 07
0
force group broken in 3.0.14?
...UCT_STAT_ST_RDEV
HAVE_ST_RDEV
HAVE_SYMLINK
HAVE_SYSCALL
HAVE_SYSCONF
HAVE_SYSLOG
HAVE_SYS_QUOTAS
HAVE_TIMEGM
HAVE_UNIXSOCKET
HAVE_UPDWTMP
HAVE_UPDWTMPX
HAVE_USLEEP
HAVE_UTIMBUF
HAVE_UTIME
HAVE_UTIMES
HAVE_VASPRINTF
HAVE_VASPRINTF_DECL
HAVE_VA_COPY
HAVE_VOLATILE
HAVE_VSNPRINTF
HAVE_VSNPRINTF_DECL
HAVE_VSYSLOG
HAVE_WAITPID
HAVE_XFS_QUOTAS
HAVE_YP_GET_DEFAULT_DOMAIN
HAVE__ET_LIST
HAVE___CLOSE
HAVE___DUP2
HAVE___FCNTL
HAVE___FORK
HAVE___FSTAT
HAVE___FXSTAT
HAVE___LSEEK
HAVE___LSTAT
HAVE___LXSTAT
HAVE___OPEN
HAVE___OPEN64
HAVE___PREAD64...
2008 Aug 26
2
Error while compiling Ices 0.4
...FCNTL_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYS_SIGNAL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define TIME_WITH_SYS_TIME 1
| #define RETSIGTYPE void
| #define HAVE_STRFTIME 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_SETSID 1
| #define HAVE_SETLINEBUF 1
| #define PACKAGE "ices"
| #define VERSION "0.4"
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #define HAVE_SHOUT_SHOUT_H 1
| /* end confdefs.h. */
| /* Define shou...
1999 Dec 21
0
Problem with UTMP recording
..._SETPROCTITLE */
/* Define if you have the snprintf function. */
#define HAVE_SNPRINTF 1
/* Define if you have the strlcat function. */
/* #undef HAVE_STRLCAT */
/* Define if you have the strlcpy function. */
/* #undef HAVE_STRLCPY */
/* Define if you have the vsnprintf function. */
#define HAVE_VSNPRINTF 1
/* Define if you have the <endian.h> header file. */
#define HAVE_ENDIAN_H 1
/* Define if you have the <lastlog.h> header file. */
#define HAVE_LASTLOG_H 1
/* Define if you have the <login.h> header file. */
/* #undef HAVE_LOGIN_H */
/* Define if you have the <maillock...
2017 Jun 08
0
2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
...S_QUOTAS
HAVE_TEXTDOMAIN
HAVE_TICKET_POINTER_IN_KRB5_AP_REQ
HAVE_TIMEGM
HAVE_UINTPTR_T
HAVE_UNIXSOCKET
HAVE_UNSETENV
HAVE_UPDWTMP
HAVE_UPDWTMPX
HAVE_USLEEP
HAVE_UTIMBUF
HAVE_UTIME
HAVE_UTIMENSAT
HAVE_UTIMES
HAVE_VASPRINTF
HAVE_VA_COPY
HAVE_VOLATILE
HAVE_VSNPRINTF
HAVE_VSYSLOG
HAVE_WAIT4
HAVE_WAITPID
HAVE_WRFILE_KEYTAB
HAVE_XFS_QUOTAS
HAVE_YP_GET_DEFAULT_DOMAIN
HAVE_ZLIBVERSION
HAVE__Bool
HAVE__VA_ARGS__MACRO
HAVE___CLOSE
HAVE___DUP2
HAVE___FCNTL
HAVE___FORK
HAVE___FSTAT
HAVE___FXSTAT
HAVE___LSEEK
HAVE___LST...
2003 Feb 11
1
Problems configuring OpenSSH 3.5p1 on Sol 5.8
...TSID 1
#define HAVE_SETVBUF 1
#define HAVE_SIGACTION 1
#define HAVE_SNPRINTF 1
#define HAVE_SOCKETPAIR 1
#define HAVE_STRERROR 1
#define HAVE_STRLCAT 1
#define HAVE_STRLCPY 1
#define HAVE_SYSCONF 1
#define HAVE_TCGETPGRP 1
#define HAVE_TRUNCATE 1
#define HAVE_UTIMES 1
#define HAVE_VHANGUP 1
#define HAVE_VSNPRINTF 1
#define HAVE_WAITPID 1
#define HAVE_DIRNAME 1
#define HAVE_LIBGEN_H 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_TIME 1
#define HAVE_ENDUTENT 1
#define HAVE_GETUTENT 1
#define HAVE_GETUTID 1
#define HAVE_GETUTLINE 1
#define HAVE_PUTUTLINE 1
#define HAVE_SETUTENT 1
#define HAVE_UTMPNAME 1
#define HA...
2007 Jun 05
1
Samba unable to connect to ldap
...YSCONF
HAVE_SYSLOG
HAVE_SYS_QUOTAS
HAVE_TICKET_POINTER_IN_KRB5_AP_REQ
HAVE_TIMEGM
HAVE_UNIXSOCKET
HAVE_UNSETENV
HAVE_UPDWTMP
HAVE_UPDWTMPX
HAVE_USLEEP
HAVE_UTIMBUF
HAVE_UTIME
HAVE_UTIMES
HAVE_VASPRINTF
HAVE_VASPRINTF_DECL
HAVE_VA_COPY
HAVE_VOLATILE
HAVE_VSNPRINTF
HAVE_VSNPRINTF_DECL
HAVE_VSYSLOG
HAVE_WAITPID
HAVE_WORKING_AF_LOCAL
HAVE_WRFILE_KEYTAB
HAVE_XFS_QUOTAS
HAVE_YP_GET_DEFAULT_DOMAIN
HAVE__Bool
HAVE__ET_LIST
HAVE__VA_ARGS__MACRO
HAVE___CLOSE
HAVE___DUP2
HAVE___FCNTL
HAVE___FORK
HAVE___FSTAT
HAVE___FXSTA...