struct Lock { int key; int pid; }; typedef struct Lock Lock;