diff os2/dirent.c @ 174:75bf3051235f

Fixes so you can mix compilers.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 01 Dec 2002 12:59:24 +0000
parents d9e87e8bcf1d
children 0e6f09149eaa
line wrap: on
line diff
--- a/os2/dirent.c	Sun Dec 01 11:18:14 2002 +0000
+++ b/os2/dirent.c	Sun Dec 01 12:59:24 2002 +0000
@@ -1,5 +1,3 @@
-#ifdef OS2
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -100,7 +98,7 @@
 }
 
 char *
-abs_path(const char *name, char *buffer, int len)
+_abs_path(const char *name, char *buffer, int len)
 {
 	char buf[4];
 	if (isalpha(name[0]) && name[1] == ':' && name[2] == '\0') {
@@ -116,7 +114,7 @@
 }
 
 DIR *
-openxdir(const char *path, unsigned att_mask)
+_openxdir(const char *path, unsigned att_mask)
 {
 	DIR *dir;
 	char name[MAXPATHLEN+3];
@@ -174,13 +172,13 @@
 }
 
 DIR *
-opendir(const char *pathname)
+_opendir(const char *pathname)
 {
 	return openxdir(pathname, 0);
 }
 
 struct dirent *
-readdir(DIR *dir)
+_readdir(DIR *dir)
 {
 	static int dummy_ino = 2;
 
@@ -228,13 +226,13 @@
 }
 
 long
-telldir(DIR *dir)
+_telldir(DIR *dir)
 {
 	return dir->number;
 }
 
 void
-seekdir(DIR *dir, long off)
+_seekdir(DIR *dir, long off)
 {
 	if (dir->number > off) {
 		char name[MAXPATHLEN+2];
@@ -268,7 +266,7 @@
 }
 
 void
-closedir(DIR *dir)
+_closedir(DIR *dir)
 {
 	DosFindClose(dir->handle);
 	free(dir);
@@ -301,5 +299,3 @@
 
 #endif
 
-#endif /* OS2 */
-