Fossil

Check-in [8993c332]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update the comment for fossil_pledge to reflect the new change in [1180676e].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:8993c3324a4caa49143182bdd0914488598773748a7a8bb5958f04c2e6f4f14d
User & Date: andybradford 2018-01-15 21:48:32
References
2018-01-15
21:53
Remove unnecessary whitespace in fossil_pledge comment inadvertenly added by [8993c332]. check-in: 0e877b0c user: andybradford tags: trunk
Context
2018-01-15
21:53
Remove unnecessary whitespace in fossil_pledge comment inadvertenly added by [8993c332]. check-in: 0e877b0c user: andybradford tags: trunk
21:50
Remove unnecessary whitespace. Closed-Leaf check-in: 73d0734a user: andybradford tags: mistake
21:48
Update the comment for fossil_pledge to reflect the new change in [1180676e]. check-in: 8993c332 user: andybradford tags: trunk
21:43
Only #define fossil_pledge in config.h if FOSSIL_HAVE_PLEDGE is not defined so that makeheaders can pick up the function prototype for checkin.h when FOSSIL_HAVE_PLEDGE is defined. check-in: 1180676e user: andybradford tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/util.c.

485
486
487
488
489
490
491
492
493
494
495

496
497
498
499
500
501
502
503
#endif /* defined(RLIMIT_STACK) */
#endif /* defined(__unix__) */
}

#if defined(FOSSIL_HAVE_PLEDGE)
/*
** 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(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) */







|
|
<
|
>








485
486
487
488
489
490
491
492
493

494
495
496
497
498
499
500
501
502
503
#endif /* defined(RLIMIT_STACK) */
#endif /* defined(__unix__) */
}

#if defined(FOSSIL_HAVE_PLEDGE)
/*
** Interface to pledge() on OpenBSD 5.9 and later.
** 
** On platforms that have pledge(), use this routine.

** On all other platforms, this routine does not exist, but instead
** a macro defined in config.h is used to provide a no-op.
*/
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) */