/*
** This file implements a simple command-line utility that shows all of the
** Posix Advisory Locks on a file.
**
** Usage:
**
** showlocks FILENAME
**
** To compile: gcc -o showlocks showlocks.c
*/
/* This utility only looks for locks in the first 2 billion bytes */
/*
** Print all locks on the inode of "fd" that occur in between
** lwr and upr, inclusive.
*/
static int
int