Differences From Artifact [6182cd74e1]:
- File
src/OFFile.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 18073) [annotate] [blame] [check-ins using]
To Artifact [526afc5ebd]:
- File src/OFFile.m — part of check-in [c01ed004b0] at 2013-04-26 22:25:13 on branch trunk — Better checks for functions used in OFFile. (user: js, size: 18074) [annotate] [blame] [check-ins using]
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | - + + + | #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <dirent.h> |
︙ | |||
97 98 99 100 101 102 103 | 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | - + | #define DEFAULT_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH #define DIR_MODE DEFAULT_MODE | S_IXUSR | S_IXGRP | S_IXOTH OFStream *of_stdin = nil; OFStream *of_stdout = nil; OFStream *of_stderr = nil; |
︙ | |||
158 159 160 161 162 163 164 | 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | - + | objc_autoreleasePoolPop(pool); } @interface OFFileSingleton: OFFile @end @implementation OFFile |
︙ | |||
385 386 387 388 389 390 391 | 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 | - + | if (_wchdir([path UTF16String])) #endif @throw [OFChangeDirectoryFailedException exceptionWithClass: self path: path]; } |
︙ | |||
442 443 444 445 446 447 448 | 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 | - + | path: path mode: @"r"]; /* FIXME: We could be more precise on some OSes */ return [OFDate dateWithTimeIntervalSince1970: s.st_mtime]; } |
︙ | |||
543 544 545 546 547 548 549 | 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 | - + | length = [sourceFile readIntoBuffer: buffer length: pageSize]; [destinationFile writeBuffer: buffer length: length]; } |
︙ | |||
610 611 612 613 614 615 616 | 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 | - + | if (_wrmdir([path UTF16String])) #endif @throw [OFDeleteDirectoryFailedException exceptionWithClass: self path: path]; } |
︙ | |||
632 633 634 635 636 637 638 | 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 | - + | sourcePath: source destinationPath: destination]; objc_autoreleasePoolPop(pool); } #endif |
︙ |