Lines Matching refs:rc

123 	int		rc;
141 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
147 if ((rc = nvlist_add_string(nvlp, IPPCTL_MODNAME,
154 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) {
159 if ((rc = nvlist_add_uint32(nvlp, IPPCTL_FLAGS, flags)) != 0) {
170 errno = rc;
182 int rc;
198 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) {
204 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
210 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) {
215 if ((rc = nvlist_add_uint32(nvlp, IPPCTL_FLAGS, flags)) != 0) {
227 errno = rc;
240 int rc;
257 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
263 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) {
268 if ((rc = nvlist_add_uint32(nvlp, IPPCTL_FLAGS, flags)) != 0) {
279 errno = rc;
293 int rc;
309 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) {
314 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
320 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) {
325 if ((rc = nvlist_add_uint32(nvlp, IPPCTL_FLAGS, flags)) != 0) {
337 errno = rc;
349 int rc;
365 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) {
371 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
377 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) {
389 errno = rc;
402 int rc;
418 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) {
423 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
437 if ((rc = dispatch(&nvlp, string_array_callback, (void *)&ad)) == 0) {
442 return (rc);
445 errno = rc;
459 int rc;
475 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) {
480 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
486 if ((rc = nvlist_add_string(nvlp, IPPCTL_MODNAME,
500 if ((rc = dispatch(&nvlp, string_array_callback, (void *)&ad)) == 0) {
505 return (rc);
508 errno = rc;
546 int rc;
563 if ((rc = nvlist_dup(nvlp, nvlpp, 0)) != 0) {
565 errno = rc;
582 int rc;
596 if ((rc = nvlist_lookup_string(nvlp, IPPCTL_MODNAME, &ptr)) != 0) {
598 errno = rc;
631 int rc;
645 if ((rc = nvlist_lookup_string_array(nvlp, adp->name, &src,
648 errno = rc;
702 int rc;
716 rc = EINVAL;
724 if ((rc = nvlist_pack(cnvlp, &cbuf, &cbuflen, NV_ENCODE_NATIVE,
728 errno = rc;
756 if ((rc = ioctl(fd, IPPCTL_CMD, &iioc)) < 0) {
765 if ((nextbuflen = (size_t)rc) == 0) {
809 if ((rc = ioctl(fd, IPPCTL_DATA, &iioc)) < 0) {
819 nextbuflen = (size_t)rc;
827 if ((rc = nvlist_unpack(dbuf, dbuflen, &dnvlp, 0)) != 0) {
829 errno = rc;
840 if ((rc = nvlist_lookup_int32(dnvlp, IPPCTL_RC,
844 errno = rc;