Lines Matching defs:buf
50 char *buf = NULL;
55 if ((err = smbfs_door_encode(SMBIOD_START, NULL, &buf, &buflen)) != 0)
62 if ((err = smbfs_door_call(buf, buflen, &da)) != 0) {
63 free(buf);
66 free(buf);
78 char *buf = NULL;
87 &buf, &buflen)) != 0)
94 if ((err = smbfs_door_call(buf, buflen, &da)) != 0) {
95 free(buf);
98 free(buf);
111 char *buf = NULL;
121 if ((err = smbfs_door_encode(cmd, pwdinfo, &buf, &buflen)) != 0)
128 if ((err = smbfs_door_call(buf, buflen, &da)) != 0) {
129 free(buf);
132 free(buf);
146 smbfs_door_decode(char *buf, size_t buflen, int *cmd, smbfs_passwd_t *pwdinfo)
154 if ((err = nvlist_unpack(buf, buflen, &nvl, 0)) != 0)
185 * should set the buf pointer to NULL. The memory then should be freed by
189 smbfs_door_encode(int cmd, smbfs_passwd_t *pwdinfo, char **buf, size_t *buflen)
221 err = nvlist_pack(nvl, buf, buflen, NV_ENCODE_XDR, 0);
228 smbfs_door_call(char *buf, size_t buflen, door_arg_t *da)
239 da->data_ptr = (void *) buf;