Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/close-keep-errno.c @ 8076:bbfbc84f795c HEAD
Added clock_gettime() compatibility function for systems without it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 07 Aug 2008 15:05:40 -0400 |
parents | 7ed926ed7aa4 |
children | b9faf4db2a9f |
line wrap: on
line source
/* Copyright (c) 2006-2008 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "close-keep-errno.h" #include <unistd.h> void close_keep_errno(int fd) { int old_errno = errno; (void)close(fd); errno = old_errno; }