Added array= param to allow array definitions
Implementation of Linux semaphore API