summaryrefslogtreecommitdiffstats
path: root/compat/dirent2.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-06-27 06:42:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-06-27 06:42:06 (GMT)
commit04d66a25716cb7738dad3170cca4d0a4683db08a (patch)
treebb32d0fe416032980724cd7a6bb8cb94f9b53fb5 /compat/dirent2.h
parent1b53ef3bbd2bd4139a0fbbeaa493a2d4562b9825 (diff)
downloadtcl-04d66a25716cb7738dad3170cca4d0a4683db08a.zip
tcl-04d66a25716cb7738dad3170cca4d0a4683db08a.tar.gz
tcl-04d66a25716cb7738dad3170cca4d0a4683db08a.tar.bz2
Remove compat/dirent*.h and some other compat/*.c files: Modern C-compilers all have those now
Diffstat (limited to 'compat/dirent2.h')
-rw-r--r--compat/dirent2.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/compat/dirent2.h b/compat/dirent2.h
deleted file mode 100644
index 5be08ba..0000000
--- a/compat/dirent2.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * dirent.h --
- *
- * Declarations of a library of directory-reading procedures
- * in the POSIX style ("struct dirent").
- *
- * Copyright (c) 1991 The Regents of the University of California.
- * Copyright (c) 1994 Sun Microsystems, Inc.
- *
- * See the file "license.terms" for information on usage and redistribution
- * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- */
-
-#ifndef _DIRENT
-#define _DIRENT
-
-/*
- * Dirent structure, which holds information about a single
- * directory entry.
- */
-
-#define MAXNAMLEN 255
-#define DIRBLKSIZ 512
-
-struct dirent {
- long d_ino; /* Inode number of entry */
- short d_reclen; /* Length of this record */
- short d_namlen; /* Length of string in d_name */
- char d_name[MAXNAMLEN + 1]; /* Name must be no longer than this */
-};
-
-/*
- * State that keeps track of the reading of a directory (clients
- * should never look inside this structure; the fields should
- * only be accessed by the library procedures).
- */
-
-typedef struct _dirdesc {
- int dd_fd;
- long dd_loc;
- long dd_size;
- char dd_buf[DIRBLKSIZ];
-} DIR;
-
-/*
- * Procedures defined for reading directories:
- */
-
-extern void closedir (DIR *dirp);
-extern DIR * opendir (char *name);
-extern struct dirent * readdir (DIR *dirp);
-
-#endif /* _DIRENT */