client/src/unifycr.c
int unifycr_fid_alloc()
{
    unifycr_stack_lock();
    int fid = unifycr_stack_pop(free_fid_stack);
    unifycr_stack_unlock();
    debug("unifycr_stack_pop() gave %d\n", fid);
    if (fid < 0) {
        /* need to create a new file, but we can't */
        debug("unifycr_stack_pop() failed (%d)\n", fid);
        return -1;
    }
    return fid;
}
/* allocate a file id slot for a new file 
 * return the fid or -1 on error */
allocate a file id slot for a new file
return the fid or -1 on error
allocate a file id slot for a new file return the fid or - 1 on error
int unifycr_fid_alloc()
{
    unifycr_stack_lock();
    int fid = unifycr_stack_pop(free_fid_stack);
    unifycr_stack_unlock();
    debug("unifycr_stack_pop() gave %d\n", fid);
    if (fid < 0) {
        debug("unifycr_stack_pop() failed (%d)\n", fid);
        return -1;
    }
    return fid;
}
int unifycr_fid_alloc ( ) { unifycr_stack_lock ( ) ; int fid = unifycr_stack_pop ( free_fid_stack ) ; unifycr_stack_unlock ( ) ; debug ( " \n " , fid ) ; if ( fid < 0 ) { debug ( " \n " , fid ) ; return -1 ; } return fid ; }
allocate a file id slot for a new file
 return the fid or -1 on error
allocate a file id slot for a new file return the fid or - 1 on error
/* need to create a new file, but we can't */