File:  [DVB] / dietlibc / lib / closedir.c
Revision 1.4: download - view: text, annotated - select for diffs
Wed Jul 3 20:33:37 2002 UTC (21 years, 11 months ago) by fefe
Branches: MAIN
CVS tags: finnland_test_200301, branch_rc14_fieldtest_finnland, branch_rc13_fieldtest_finnland, branch_rc12_fieldtest_finnland, branch_rc10_fieldtest_finnland, RELEASE_finnland_200301_1, RC12_FIELDTEST_FINNLAND, RC10_FIELDTEST_FINNLAND, HEAD
putenv tweak (Thomas Ogrisegg)
add missing socket syscalls for PA-RISC and IA64 (Thomas Ogrisegg)
add cpio.h and tar.h (Thomas Ogrisegg)
change opendir/readdir/closedir from malloc to mmap (Thomas Ogrisegg)

#include "dietdirent.h"
#include <sys/mman.h>
#include <unistd.h>
#include <dirent.h>
#include <stdlib.h>

int closedir (DIR* d) {
  int res=close(d->fd);
  munmap (d, PAGE_SIZE);
  return res;
}

LinuxTV legacy CVS <linuxtv.org/cvs>