Mercurial > dovecot > core-2.2
view src/lib/close-keep-errno.c @ 9002:9d0037a997f4 HEAD
Initial commit for config rewrite.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 27 Jan 2009 18:21:53 -0500 |
parents | b9faf4db2a9f |
children | 615eef3139c2 |
line wrap: on
line source
/* Copyright (c) 2006-2009 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; }