221
221
/* return true if pathname is absolute */
222
222
bool absolute_pathname (const char *pathname);
224
/* return the next largest power of 2 */
225
unsigned int adjust_power_of_2 (unsigned int u);
228
225
* Get and store a username/password
300
297
#define SSEC_PW_ENV 3 /* allow calling of built-in programs and user-defined scripts that may receive a password as an environmental variable */
301
298
extern int script_security; /* GLOBAL */
300
/* return the next largest power of 2 */
301
size_t adjust_power_of_2 (size_t u);
304
* A printf-like function (that only recognizes a subset of standard printf
305
* format operators) that prints arguments to an argv list instead
306
* of a standard string. This is used to build up argv arrays for passing
309
void argv_init (struct argv *a);
310
struct argv argv_new (void);
311
void argv_reset (struct argv *a);
312
char *argv_term (const char **f);
313
const char *argv_str (const struct argv *a, struct gc_arena *gc, const unsigned int flags);
314
struct argv argv_insert_head (const struct argv *a, const char *head);
315
void argv_msg (const int msglev, const struct argv *a);
316
void argv_msg_prefix (const int msglev, const struct argv *a, const char *prefix);
318
#define APA_CAT (1<<0) /* concatentate onto existing struct argv list */
319
void argv_printf_arglist (struct argv *a, const char *format, const unsigned int flags, va_list arglist);
321
void argv_printf (struct argv *a, const char *format, ...)
323
__attribute__ ((format (printf, 2, 3)))
327
void argv_printf_cat (struct argv *a, const char *format, ...)
329
__attribute__ ((format (printf, 2, 3)))