getlock
static int getlock(void);
lckfd = getlock();
lckfd = getlock();
lckfd = getlock();
lckfd = getlock();
int (*getlock)(void *, struct l9p_request *);
switch (req->lr_req.getlock.type) {
req->lr_resp.getlock = req->lr_req.getlock;
req->lr_resp.getlock.type = L9PL_LOCK_TYPE_UNLOCK;
req->lr_resp.getlock.client_id = strdup(""); /* XXX what should go here? */
backend->getlock = fs_getlock;
struct l9p_f_getlock getlock;
l9p_pu8(msg, &fcall->getlock.type);
l9p_pu64(msg, &fcall->getlock.start);
l9p_pu64(msg, &fcall->getlock.length);
l9p_pu32(msg, &fcall->getlock.proc_id);
r = l9p_pustring(msg, &fcall->getlock.client_id);
free(fcall->getlock.client_id);
error = be->getlock != NULL ? be->getlock(be->softc, req) : ENOSYS;
fcall->getlock.type,
fcall->getlock.start, fcall->getlock.length,
fcall->getlock.proc_id, fcall->getlock.client_id);
if (getlock) {
if (getlock) {
static void nat_siocdelnat(n, np, getlock, ifs)
int getlock;
if (getlock) {
if (getlock) {
static int fr_natputent(data, getlock, ifs)
int getlock;
if (getlock) {
if (getlock) {
if (getlock) {
if (getlock) {
if (getlock) {
if (getlock) {
if (getlock) {
if (getlock) {
int error = 0, ret, arg, getlock;
getlock = 0;
getlock = (mode & NAT_LOCKHELD) ? 0 : 1;
error = nat_siocaddnat(nt, np, getlock, ifs);
nat_siocdelnat(n, np, getlock, ifs);
if (getlock) {
if (getlock) {
if (getlock) {
if (getlock) {
error = fr_natputent(data, getlock, ifs);
if (getlock) {
if (getlock) {
if (getlock) {
if (getlock) {
static int nat_siocaddnat(n, np, getlock, ifs)
int getlock;