Mercurial > dwindows
comparison os2/dirent.c @ 24:d9e87e8bcf1d
Updated dynamic windows to build with EMX.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 17 Aug 2001 11:44:05 +0000 |
parents | 67a643a734d9 |
children | 75bf3051235f |
comparison
equal
deleted
inserted
replaced
23:2932f9d2c7d5 | 24:d9e87e8bcf1d |
---|---|
3 #include <stdio.h> | 3 #include <stdio.h> |
4 #include <stdlib.h> | 4 #include <stdlib.h> |
5 #include <string.h> | 5 #include <string.h> |
6 #include <ctype.h> | 6 #include <ctype.h> |
7 | 7 |
8 #include "dirent.h" | 8 #include "platform/dirent.h" |
9 #include <errno.h> | 9 #include <errno.h> |
10 | 10 |
11 /*#ifndef __EMX__ | 11 /*#ifndef __EMX__ |
12 #include <libx.h> | 12 #include <libx.h> |
13 #endif */ | 13 #endif */ |
120 { | 120 { |
121 DIR *dir; | 121 DIR *dir; |
122 char name[MAXPATHLEN+3]; | 122 char name[MAXPATHLEN+3]; |
123 Word rc; | 123 Word rc; |
124 | 124 |
125 if(!path) | |
126 return NULL; | |
127 | |
125 dir = malloc(sizeof(DIR)); | 128 dir = malloc(sizeof(DIR)); |
126 if (dir == NULL) { | 129 if (dir == NULL) { |
127 errno = ENOMEM; | 130 errno = ENOMEM; |
128 return NULL; | 131 return NULL; |
129 } | 132 } |