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

Side by Side Diff: third_party/sqlite/src/tool/showlocks.c

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « third_party/sqlite/src/tool/showjournal.c ('k') | third_party/sqlite/src/tool/showstat4.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 /* 1 /*
2 ** This file implements a simple command-line utility that shows all of the 2 ** This file implements a simple command-line utility that shows all of the
3 ** Posix Advisory Locks on a file. 3 ** Posix Advisory Locks on a file.
4 ** 4 **
5 ** Usage: 5 ** Usage:
6 ** 6 **
7 ** showlocks FILENAME 7 ** showlocks FILENAME
8 ** 8 **
9 ** To compile: gcc -o showlocks showlocks.c 9 ** To compile: gcc -o showlocks showlocks.c
10 */ 10 */
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 fd = open(argv[1], O_RDWR, 0); 55 fd = open(argv[1], O_RDWR, 0);
56 if( fd<0 ){ 56 if( fd<0 ){
57 fprintf(stderr, "%s: cannot open %s\n", argv[0], argv[1]); 57 fprintf(stderr, "%s: cannot open %s\n", argv[0], argv[1]);
58 return 1; 58 return 1;
59 } 59 }
60 cnt = showLocksInRange(fd, 0, MX_LCK); 60 cnt = showLocksInRange(fd, 0, MX_LCK);
61 if( cnt==0 ) printf("no locks\n"); 61 if( cnt==0 ) printf("no locks\n");
62 close(fd); 62 close(fd);
63 return 0; 63 return 0;
64 } 64 }
OLDNEW
« no previous file with comments | « third_party/sqlite/src/tool/showjournal.c ('k') | third_party/sqlite/src/tool/showstat4.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698