X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=osl.h;h=cb3194bea087dd95600e9e5b947435d2e8c186c5;hp=1fec9865dabe1854272a7e7476185db583aeee9e;hb=4df56926d10669ec120510957d3aa3fddb16e3c6;hpb=97f53e18953fc2013c0b14f0261ac385e45b0284;ds=sidebyside diff --git a/osl.h b/osl.h index 1fec9865..cb3194be 100644 --- a/osl.h +++ b/osl.h @@ -183,21 +183,3 @@ ssize_t para_write_all(int fd, const void *buf, size_t size); int para_lseek(int fd, off_t *offset, int whence); int para_write_file(const char *filename, const void *buf, size_t size); -/** - * A wrapper for munmap(2). - * - * \param start The start address of the memory mapping. - * \param length The size of the mapping. - * - * \return Positive on success, \p -E_MUNMAP on errors. - * - * \sa munmap(2), mmap_full_file(). - */ -_static_inline_ int para_munmap(void *start, size_t length) -{ - if (munmap(start, length) >= 0) - return 1; - PARA_ERROR_LOG("munmap (%p/%zu) failed: %s\n", start, length, - strerror(errno)); - return -E_MUNMAP; -}