Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: fusl/src/dirent/readdir_r.c

Issue 1716893002: [fusl] Remove LFS64 macro (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: apptest rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/src/dirent/readdir.c ('k') | fusl/src/dirent/scandir.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <dirent.h> 1 #include <dirent.h>
2 #include <errno.h> 2 #include <errno.h>
3 #include <string.h> 3 #include <string.h>
4 #include "__dirent.h" 4 #include "__dirent.h"
5 #include "libc.h" 5 #include "libc.h"
6 6
7 int readdir_r(DIR* restrict dir, 7 int readdir_r(DIR* restrict dir,
8 struct dirent* restrict buf, 8 struct dirent* restrict buf,
9 struct dirent** restrict result) { 9 struct dirent** restrict result) {
10 struct dirent* de; 10 struct dirent* de;
(...skipping 10 matching lines...) Expand all
21 errno = errno_save; 21 errno = errno_save;
22 if (de) 22 if (de)
23 memcpy(buf, de, de->d_reclen); 23 memcpy(buf, de, de->d_reclen);
24 else 24 else
25 buf = NULL; 25 buf = NULL;
26 26
27 UNLOCK(dir->lock); 27 UNLOCK(dir->lock);
28 *result = buf; 28 *result = buf;
29 return 0; 29 return 0;
30 } 30 }
31
32 LFS64_2(readdir_r, readdir64_r);
OLDNEW
« no previous file with comments | « fusl/src/dirent/readdir.c ('k') | fusl/src/dirent/scandir.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698