Lines Matching +defs:t +defs:cmp
463 /* Hold lock so we can't miss wakeups should we block. */
551 /* Hold lock so we can't miss wakeups should we block. */
800 * \param t The transaction to use for this request.
814 xs_talkv(struct xs_transaction t, enum xsd_sockmsg_type request_type,
822 msg.tx_id = t.id;
872 * \param t The transaction to use for this request.
885 xs_single(struct xs_transaction t, enum xsd_sockmsg_type request_type,
893 return (xs_talkv(t, request_type, &iovec, 1, len, result));
952 struct xs_watch *i, *cmp;
954 cmp = (void *)strtoul(token, NULL, 16);
957 if (i == cmp)
1241 /* XXX Shouldn't the node be somewhere else? */
1271 xs_directory(struct xs_transaction t, const char *dir, const char *node,
1280 error = xs_single(t, XS_DIRECTORY, sbuf_data(path), &len,
1292 xs_exists(struct xs_transaction t, const char *dir, const char *node)
1297 error = xs_directory(t, dir, node, &dir_n, &d);
1305 xs_read(struct xs_transaction t, const char *dir, const char *node,
1313 error = xs_single(t, XS_READ, sbuf_data(path), len, &ret);
1322 xs_write(struct xs_transaction t, const char *dir, const char *node,
1336 error = xs_talkv(t, XS_WRITE, iovec, 2, NULL, NULL);
1343 xs_mkdir(struct xs_transaction t, const char *dir, const char *node)
1349 ret = xs_single(t, XS_MKDIR, sbuf_data(path), NULL, NULL);
1356 xs_rm(struct xs_transaction t, const char *dir, const char *node)
1362 ret = xs_single(t, XS_RM, sbuf_data(path), NULL, NULL);
1462 xs_transaction_start(struct xs_transaction *t)
1470 t->id = strtoul(id_str, NULL, 0);
1477 xs_transaction_end(struct xs_transaction t, int abort)
1486 return (xs_single(t, XS_TRANSACTION_END, abortstr, NULL, NULL));
1490 xs_scanf(struct xs_transaction t, const char *dir, const char *node,
1497 error = xs_read(t, dir, node, NULL, (void **) &val);
1514 xs_vprintf(struct xs_transaction t,
1523 error = xs_write(t, dir, node, sbuf_data(sb));
1530 xs_printf(struct xs_transaction t, const char *dir, const char *node,
1537 error = xs_vprintf(t, dir, node, fmt, ap);
1544 xs_gather(struct xs_transaction t, const char *dir, ...)
1557 error = xs_read(t, dir, name, NULL, (void **) &p);