Authen-TacacsPlus

 view release on metacpan or  search on metacpan

tacpluslib/utils.c  view on Meta::CPAN

	}
    }
    return 0;
}
#endif /* NEED_BZERO */

/* Lock a file descriptor using fcntl. Returns 1 on successfully
   acquiring the lock. The lock dies when we close the file, so
   there's currently no separate unlock procedure.

   Note that if the locked file is on an NFS-mounted partition, you
   are at the mercy of SUN's lockd, which is probably a bad idea */

int
tac_lockfd(filename,lockfd)
char *filename;
int lockfd;
{
    int tries;
    struct flock flock;
    int status;



( run in 0.459 second using v1.01-cache-2.11-cpan-49f99fa48dc )