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

Side by Side Diff: fusl/src/regex/glob.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/misc/setrlimit.c ('k') | fusl/src/stat/__xstat.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 <glob.h> 1 #include <glob.h>
2 #include <fnmatch.h> 2 #include <fnmatch.h>
3 #include <sys/stat.h> 3 #include <sys/stat.h>
4 #include <dirent.h> 4 #include <dirent.h>
5 #include <limits.h> 5 #include <limits.h>
6 #include <string.h> 6 #include <string.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <errno.h> 8 #include <errno.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include "libc.h" 10 #include "libc.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 } 238 }
239 239
240 void globfree(glob_t* g) { 240 void globfree(glob_t* g) {
241 size_t i; 241 size_t i;
242 for (i = 0; i < g->gl_pathc; i++) 242 for (i = 0; i < g->gl_pathc; i++)
243 free(g->gl_pathv[g->gl_offs + i] - offsetof(struct match, name)); 243 free(g->gl_pathv[g->gl_offs + i] - offsetof(struct match, name));
244 free(g->gl_pathv); 244 free(g->gl_pathv);
245 g->gl_pathc = 0; 245 g->gl_pathc = 0;
246 g->gl_pathv = NULL; 246 g->gl_pathv = NULL;
247 } 247 }
248
249 LFS64(glob);
250 LFS64(globfree);
OLDNEW
« no previous file with comments | « fusl/src/misc/setrlimit.c ('k') | fusl/src/stat/__xstat.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698