490
491
492
493
494
495
496
497
498
499
500
501
502
503
|
490
491
492
493
494
495
496
497
498
499
500
501
502
503
|
-
+
|
/*
** Interface to pledge() on OpenBSD 5.9 and later.
**
** There is a macro in config.h that make translates calls to
** "fossil_pledge(A,B)" into calls to this routine on OpenBSD.
** On all other platforms, this routine does not exist.
*/
void fossil_pledge_impl(const char *promises, const char *execpromises){
void fossil_pledge(const char *promises, const char *execpromises){
if( pledge(promises, execpromises) ){
fossil_fatal("pledge(\"%s\",\"%s\") fails with errno=%d",
promises, execpromises, (int)errno);
}
}
#endif /* defined(FOSSIL_HAVE_PLEDGE) */
|