| Coda Distributed File System
    | 
#include <stdio.h>#include <sys/file.h>#include <netinet/in.h>#include <unistd.h>#include <stdlib.h>#include <lwp.h>#include <lock.h>#include <vice.h>#include <vnode.h>#include <volume.h>#include <vldb.h>
| Macros | |
| #define | LEFT(i) 2 * (i); | 
| #define | RIGHT(i) 2 * (i) + 1; | 
| #define | VID(lp) ntohl((lp)->volumeId[(lp)->volumeType]) | 
| #define | UNIQUE(vid) ((vid) & 0xffffff) /* strip hostid bits */ | 
| Functions | |
| void | heapify (struct vldb a[], int i, int size) | 
| void | heapsort (struct vldb a[], int length) | 
| void | main (int argc, char **argv) | 
| #define LEFT | ( | i | ) | 2 * (i); | 
| #define RIGHT | ( | i | ) | 2 * (i) + 1; | 
| #define UNIQUE | ( | vid | ) | ((vid) & 0xffffff) /* strip hostid bits */ | 
| #define VID | ( | lp | ) | ntohl((lp)->volumeId[(lp)->volumeType]) | 
| void heapify | ( | struct vldb | a[], | 
| int | i, | ||
| int | size | ||
| ) | 
| void heapsort | ( | struct vldb | a[], | 
| int | length | ||
| ) | 
| void main | ( | int | argc, | 
| char ** | argv | ||
| ) |