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

Side by Side Diff: fusl/src/dirent/scandir.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_r.c ('k') | fusl/src/dirent/versionsort.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 <string.h> 2 #include <string.h>
3 #include <stdlib.h> 3 #include <stdlib.h>
4 #include <stdint.h> 4 #include <stdint.h>
5 #include <errno.h> 5 #include <errno.h>
6 #include <stddef.h> 6 #include <stddef.h>
7 #include "libc.h" 7 #include "libc.h"
8 8
9 int scandir(const char* path, 9 int scandir(const char* path,
10 struct dirent*** res, 10 struct dirent*** res,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 free(names); 45 free(names);
46 return -1; 46 return -1;
47 } 47 }
48 errno = old_errno; 48 errno = old_errno;
49 49
50 if (cmp) 50 if (cmp)
51 qsort(names, cnt, sizeof *names, (int (*)(const void*, const void*))cmp); 51 qsort(names, cnt, sizeof *names, (int (*)(const void*, const void*))cmp);
52 *res = names; 52 *res = names;
53 return cnt; 53 return cnt;
54 } 54 }
55
56 LFS64(scandir);
OLDNEW
« no previous file with comments | « fusl/src/dirent/readdir_r.c ('k') | fusl/src/dirent/versionsort.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698