Mercurial > public > mercurial-scm > hg
diff contrib/chg/util.h @ 28854:ddef14468952
chg: add fchdirx as a utility function
As part of the series to support long socket paths, we need to use fchdir and
check its result in several places. Make it a utility function.
author | Jun Wu <quark@fb.com> |
---|---|
date | Sun, 10 Apr 2016 03:14:32 +0100 |
parents | 57a78a64de44 |
children | f5764e177bbe |
line wrap: on
line diff
--- a/contrib/chg/util.h Sun Apr 10 22:58:11 2016 +0100 +++ b/contrib/chg/util.h Sun Apr 10 03:14:32 2016 +0100 @@ -23,6 +23,7 @@ void enabledebugmsg(void); void debugmsg(const char *fmt, ...) PRINTF_FORMAT_; +void fchdirx(int dirfd); void *mallocx(size_t size); void *reallocx(void *ptr, size_t size);