*** From dhcp-server -- To unsubscribe, see the end of this message. ***
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Fri, 12 Nov 1999 11:53:44 z (MET)
Subject: Solaris does have snprintf() & Co.
Hi all,
just looking at include/cf/sunos5-5.h, it says:
/* Solaris doesn't support limited sprintfs. */
#define vsnprintf(buf, size, fmt, list) vsprintf (buf, fmt, list)
#define NO_SNPRINTF
That's no longer true, at least starting with SunOS 5.6, they are
available (and functional quite well, the HP-UX version is more
damaged since it returns an error iff the string didn't fit, Solaris
reports the number of chars that are needed).
Also:
/* Basic Integer Types not defined in SunOS headers... */
#define int8_t char
#define int16_t short
#define int32_t long
#define u_int8_t unsigned char
#define u_int16_t unsigned short
#define u_int32_t unsigned long
int{8,16,23}_t's are there in <sys/types.h> (actually int_types.h, but
don't care), the u_int* stuff is named uint* instead. I'm surprised it
still compiles using the above #defines, since it probably will result
in something like
typedef short short;
when including <sys/types.h> in case the above #define's are present at
that time.
Just my EUR 0.02...
Joerg
-----------------------------------------------------------------------
List Archives : http://www.isc.org/ml-archives/dhcp-server/
Unsubscribe : http://www.isc.org/dhcp-lists.html
-or- : mailto:[EMAIL PROTECTED]?Subject=unsubscribe
-----------------------------------------------------------------------