OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [dirfd.c] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#include <errno.h>
2
#include "dirstream.h"
3
 
4
int dirfd (DIR * dir)
5
{
6
  if (!dir || dir->dd_fd == -1) {
7
    errno = EBADF;
8
    return -1;
9
  }
10
 
11
  return dir->dd_fd;
12
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.