summaryrefslogtreecommitdiff
path: root/mysys/my_os2dirsrch.h
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-01-28 08:38:28 +0200
committermonty@mashka.mysql.fi <>2003-01-28 08:38:28 +0200
commit689578a0997f54c590bcf4791e30710602851bc4 (patch)
treeb916d4acfbe4f32ab06b052fd06c072f858bdce1 /mysys/my_os2dirsrch.h
parent1bdd1d0626fdb8f858a3c4bf82e0064ee19b042d (diff)
downloadmariadb-git-689578a0997f54c590bcf4791e30710602851bc4.tar.gz
Fixes for Netware
Call pthread_mutex_destroy() on not used mutex. Changed comments in .h and .c files from // -> /* */ Added detection of mutex on which one didn't call pthread_mutex_destroy() Fixed bug in create_tmp_field() which causes a memory overrun in queries that uses "ORDER BY constant_expression" Added optimisation for ORDER BY NULL
Diffstat (limited to 'mysys/my_os2dirsrch.h')
-rw-r--r--mysys/my_os2dirsrch.h57
1 files changed, 34 insertions, 23 deletions
diff --git a/mysys/my_os2dirsrch.h b/mysys/my_os2dirsrch.h
index e894d27b576..3889f628bad 100644
--- a/mysys/my_os2dirsrch.h
+++ b/mysys/my_os2dirsrch.h
@@ -29,26 +29,35 @@ extern "C" {
struct _finddata_t
{
- unsigned attrib;
- //unsigned long time_create; /* -1 for FAT file systems */
- //unsigned long time_access; /* -1 for FAT file systems */
- //unsigned long time_write;
- unsigned long size;
- char name[260];
- //uint16 wr_date;
- //uint16 wr_time;
+ unsigned attrib;
+#ifdef NOT_USED
+ unsigned long time_create; /* -1 for FAT file systems */
+ unsigned long time_access; /* -1 for FAT file systems */
+ unsigned long time_write;
+#endif
+ unsigned long size;
+ char name[260];
+#ifdef NOT_USED
+ uint16 wr_date;
+ uint16 wr_time;
+#endif
};
+
struct dirent
{
- //unsigned attrib;
- //unsigned long time_create; /* -1 for FAT file systems */
- //unsigned long time_access; /* -1 for FAT file systems */
- //unsigned long time_write;
- //unsigned long size;
- char d_name[260];
- //uint16 wr_date;
- //uint16 wr_time;
+#ifdef NOT_USED
+ unsigned attrib;
+ unsigned long time_create; /* -1 for FAT file systems */
+ unsigned long time_access; /* -1 for FAT file systems */
+ unsigned long time_write;
+ unsigned long size;
+#endif
+ char d_name[260];
+#ifdef NOT_USED
+ uint16 wr_date;
+ uint16 wr_time;
+#endif
};
struct DIR
@@ -62,16 +71,18 @@ DIR *opendir ( char *);
struct dirent *readdir (DIR *);
int closedir (DIR *);
-//#define _A_NORMAL FILE_NORMAL
-//#define _A_SUBDIR FILE_DIRECTORY
-//#define _A_RDONLY FILE_READONLY
+#ifdef NOT_USED
+#define _A_NORMAL FILE_NORMAL
+#define _A_SUBDIR FILE_DIRECTORY
+#define _A_RDONLY FILE_READONLY
-//long _findfirst( char*, struct _finddata_t*);
-//long _findnext( long, struct _finddata_t*);
-//void _findclose( long);
+long _findfirst( char*, struct _finddata_t*);
+long _findnext( long, struct _finddata_t*);
+void _findclose( long);
+#endif
#ifdef __cplusplus_00
}
#endif
-#endif // __MY_OS2DIRSRCH2_H__
+#endif /* __MY_OS2DIRSRCH2_H__ */