Differences From Artifact [b37b88e7db]:
- File src/OFFileManager.m — part of check-in [abbed5c008] at 2023-04-10 15:08:39 on branch trunk — Work around newer amiga-gcc defining Class (user: js, size: 25826) [annotate] [blame] [check-ins using]
To Artifact [c425786752]:
- File
src/OFFileManager.m
— part of check-in
[6d93db9f98]
at
2023-07-15 16:12:34
on branch trunk
— Add support for GNU/Hurd
Hurd does not have PATH_MAX, so different APIs need to be used on Hurd. (user: js, size: 26147) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
169 170 171 172 173 174 175 176 177 178 179 180 181 182 | @throw [OFOutOfRangeException exception]; return nil; } return [OFString stringWithCString: buffer encoding: [OFLocale encoding]]; # else char buffer[PATH_MAX]; if ((getcwd(buffer, PATH_MAX)) == NULL) @throw [OFGetCurrentDirectoryFailedException exceptionWithErrNo: errno]; | > > > > > > > > > > > > > > > > | 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | @throw [OFOutOfRangeException exception]; return nil; } return [OFString stringWithCString: buffer encoding: [OFLocale encoding]]; # elif defined(OF_GLIBC) char *buffer; OFString *path; if ((buffer = getcwd(NULL, 0)) == NULL) @throw [OFGetCurrentDirectoryFailedException exceptionWithErrNo: errno]; @try { path = [OFString stringWithCString: buffer encoding: [OFLocale encoding]]; } @finally { free(buffer); } return path; # else char buffer[PATH_MAX]; if ((getcwd(buffer, PATH_MAX)) == NULL) @throw [OFGetCurrentDirectoryFailedException exceptionWithErrNo: errno]; |
︙ | ︙ |