view src/lib/execv-const.h @ 23017:c1d36f2575c7 default tip

lib-imap: Fix "Don't accept strings with NULs" cherry-pick
author Timo Sirainen <timo.sirainen@open-xchange.com>
date Thu, 29 Aug 2019 09:55:25 +0300
parents ddbc6e8b2776
children
line wrap: on
line source

#ifndef EXECV_CONST_H
#define EXECV_CONST_H

/* Just like execv() and execvp(), except argv points to const strings.
   Also if calling execv*() fails, these functions call i_fatal(). */
void execv_const(const char *path, const char *const argv[]) ATTR_NORETURN;
void execvp_const(const char *file, const char *const argv[]) ATTR_NORETURN;

#endif