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

Side by Side Diff: fusl/src/stdio/fileno.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too 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
OLDNEW
1 #include "stdio_impl.h" 1 #include "stdio_impl.h"
2 2
3 int fileno(FILE *f) 3 int fileno(FILE* f) {
4 { 4 /* f->fd never changes, but the lock must be obtained and released
5 » /* f->fd never changes, but the lock must be obtained and released 5 * anyway since this function cannot return while another thread
6 » * anyway since this function cannot return while another thread 6 * holds the lock. */
7 » * holds the lock. */ 7 FLOCK(f);
8 » FLOCK(f); 8 FUNLOCK(f);
9 » FUNLOCK(f); 9 return f->fd;
10 » return f->fd;
11 } 10 }
12 11
13 weak_alias(fileno, fileno_unlocked); 12 weak_alias(fileno, fileno_unlocked);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698