12 #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
14 /* Define this as a fall through, HAVE_STDARG_H is probably already set */
16 #ifndef HAVE_VARARGS_H
17 #define HAVE_VARARGS_H
20 /* varargs declarations: */
22 #if defined(HAVE_STDARG_H)
24 # define HAVE_STDARGS /* let's hope that works everywhere (mj) */
25 # define VA_LOCAL_DECL va_list ap
26 # define VA_START(f) va_start(ap, f)
27 # define VA_SHIFT(v,t) ; /* no-op for ANSI */
28 # define VA_END va_end(ap)
30 # if defined(HAVE_VARARGS_H)
33 # define VA_LOCAL_DECL va_list ap
34 # define VA_START(f) va_start(ap) /* f is ignored! */
35 # define VA_SHIFT(v,t) v = va_arg(ap,t)
36 # define VA_END va_end(ap)
38 /*XX ** NO VARARGS ** XX*/
42 #if !defined (HAVE_SNPRINTF) || defined (__Lynx__)
43 int snprintf (char *str
, size_t count
, const char *fmt
, ...)
44 __attribute__ ((__format__ (__printf__
, 3, 4)));
47 #if !defined (HAVE_VSNPRINTF)
48 int vsnprintf (char *str
, size_t count
, const char *fmt
, va_list arg
);
54 int nut_setenv(const char *name
, const char *value
, int overwrite
);
55 static inline int setenv(const char *name
, const char *value
, int overwrite
) {
56 return nut_setenv(name
, value
, overwrite
);
61 #ifdef HAVE_SYS_MODEM_H
62 #include <sys/modem.h>
64 /* See sys/termio.h and sys/modem.h
65 The following serial bits are not defined by HPUX.
66 The numbers are octal like I found in BSD.
67 TIOCM_ST is used in genericups.[ch] for the Powerware 3115.
68 These defines make it compile, but I have no idea if it works.
70 #define TIOCM_LE 0001 /* line enable */
71 #define TIOCM_ST 0010 /* secondary transmit */
72 #define TIOCM_SR 0020 /* secondary receive */
75 #ifdef HAVE_GETPASSPHRASE
76 #define GETPASS getpassphrase
78 #define GETPASS getpass
82 /* Missing prototypes on LynxOS */
84 int vprintf(const char *, va_list);