Lines Matching defs:rc

125 	int		rc;
143 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
149 if ((rc = nvlist_add_string(nvlp, IPPCTL_MODNAME,
156 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) {
161 if ((rc = nvlist_add_uint32(nvlp, IPPCTL_FLAGS, flags)) != 0) {
172 errno = rc;
184 int rc;
200 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) {
206 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
212 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) {
217 if ((rc = nvlist_add_uint32(nvlp, IPPCTL_FLAGS, flags)) != 0) {
230 errno = rc;
243 int rc;
260 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
266 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) {
271 if ((rc = nvlist_add_uint32(nvlp, IPPCTL_FLAGS, flags)) != 0) {
282 errno = rc;
296 int rc;
312 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) {
317 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
323 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) {
328 if ((rc = nvlist_add_uint32(nvlp, IPPCTL_FLAGS, flags)) != 0) {
341 errno = rc;
353 int rc;
369 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) {
375 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
381 if ((rc = nvlist_add_string(nvlp, IPPCTL_ANAME, (char *)aname)) != 0) {
394 errno = rc;
407 int rc;
423 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) {
428 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
442 if ((rc = dispatch(&nvlp, string_array_callback, (void *)&ad)) == 0) {
447 return (rc);
451 errno = rc;
465 int rc;
481 if ((rc = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, 0)) != 0) {
486 if ((rc = nvlist_add_byte(nvlp, IPPCTL_OP,
492 if ((rc = nvlist_add_string(nvlp, IPPCTL_MODNAME,
506 if ((rc = dispatch(&nvlp, string_array_callback, (void *)&ad)) == 0) {
511 return (rc);
515 errno = rc;
553 int rc;
570 if ((rc = nvlist_dup(nvlp, nvlpp, 0)) != 0) {
572 errno = rc;
589 int rc;
603 if ((rc = nvlist_lookup_string(nvlp, IPPCTL_MODNAME, &ptr)) != 0) {
605 errno = rc;
638 int rc;
652 if ((rc = nvlist_lookup_string_array(nvlp, adp->name, &src,
655 errno = rc;
709 int rc;
723 rc = EINVAL;
731 if ((rc = nvlist_pack(cnvlp, &cbuf, &cbuflen, NV_ENCODE_NATIVE,
735 errno = rc;
763 if ((rc = ioctl(fd, IPPCTL_CMD, &iioc)) < 0) {
772 if ((nextbuflen = (size_t)rc) == 0) {
816 if ((rc = ioctl(fd, IPPCTL_DATA, &iioc)) < 0) {
826 nextbuflen = (size_t)rc;
834 if ((rc = nvlist_unpack(dbuf, dbuflen, &dnvlp, 0)) != 0) {
836 errno = rc;
847 if ((rc = nvlist_lookup_int32(dnvlp, IPPCTL_RC,
851 errno = rc;