File:  [Linux-0.01 rebuild] / linux / include / dirent.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:02:01 2018 UTC (8 years, 3 months ago) by root
Branches: MAIN, DrAcOnUx
CVS tags: linux00135, HEAD
linux 0.01-rm3.5


#ifndef __DIRENT_H
#define __DIRENT_H

#include <linux/fs.h>
#include <stdint.h>

#define NAME_MAX NAME_LEN

struct dirent{
	long d_ino;
	off_t d_off;
	unsigned short d_reclen;
	char d_name[256];
};

struct dirent64 {
  uint64_t	d_ino;
  int64_t	d_off;
  uint16_t	d_reclen;
  unsigned char	d_type;
  char		d_name[256];
};

struct __DIR{
	struct dirent64 d_dent;
	int d_pos;
	int d_fd;
};

#define DIR struct __DIR 

DIR *opendir (const char *name);
int closedir (DIR *dir);
struct dirent *readdir (DIR *dir);

#endif 



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.