X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fd.c;h=abad80a86ce368660c1ed3b88a1c0e088488a422;hp=0adab0f2c0732862f03201119f975873211b5c38;hb=53a27fb91166a7734f0768721b2cef91f0f6172e;hpb=5c556c52f1196cea4536d36b683372de532943a9 diff --git a/fd.c b/fd.c index 0adab0f2..abad80a8 100644 --- a/fd.c +++ b/fd.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2007 Andre Noll + * Copyright (C) 2006-2008 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -67,7 +67,7 @@ int para_select(int n, fd_set *readfds, fd_set *writefds, * * \return Standard. */ -int mark_fd_blocking(int fd) +__must_check int mark_fd_blocking(int fd) { int flags = fcntl(fd, F_GETFL); if (flags < 0) @@ -85,7 +85,7 @@ int mark_fd_blocking(int fd) * * \return Standard. */ -int mark_fd_nonblocking(int fd) +__must_check int mark_fd_nonblocking(int fd) { int flags = fcntl(fd, F_GETFL); if (flags < 0) @@ -311,8 +311,7 @@ int para_mkdir(const char *path, mode_t mode) * open call is closed after mmap(). Otherwise the file is kept open and the * file descriptor is returned in \a fd_ptr. * - * \return Positive on success, negative on errors. Possible errors include: \p - * E_FSTAT, any errors returned by para_open(), \p E_EMPTY, \p E_MMAP. + * \return Standard. * * \sa para_open(), mmap(2). */