Lines Matching refs:rc

314 	int i, rc;
341 rc = vs_props_get(&vp, propids);
342 if (rc != VS_ERR_NONE) {
343 (void) fprintf(stderr, "%s\n", vs_strerror(rc));
366 int rc;
371 rc = vs_adm_props_from_input(argc, argv, &vp, &propids);
372 if (rc != VS_ADM_EXIT_SUCCESS)
373 return (rc);
375 rc = vs_props_set(&vp, propids);
376 if (rc != VS_ERR_NONE) {
377 (void) fprintf(stderr, "%s\n", vs_strerror(rc));
394 int i, rc;
433 rc = vs_props_se_get(engid, &va.va_se[0], propids);
434 if (rc != VS_ERR_NONE) {
435 (void) fprintf(stderr, "%s\n", vs_strerror(rc));
443 if ((rc = vs_props_get_all(&va)) != VS_ERR_NONE) {
444 (void) fprintf(stderr, "%s\n", vs_strerror(rc));
475 int i, rc;
527 rc = vs_props_se_create(engid, &sep, propids);
529 rc = vs_props_se_set(engid, &sep, propids);
531 if (rc != VS_ERR_NONE) {
532 (void) fprintf(stderr, "%s\n", vs_strerror(rc));
547 int rc;
561 if ((rc = vs_props_se_delete(engid)) != VS_ERR_NONE) {
562 (void) fprintf(stderr, "%s\n", vs_strerror(rc));
563 return (rc);
576 int rc;
581 if ((rc = vs_adm_file_usage(argc, argv)) != VS_ADM_EXIT_SUCCESS)
582 return (rc);
585 rc = vs_adm_file_read(filename, vp.vp_types, sizeof (vp.vp_types));
586 if (rc != VS_ADM_EXIT_SUCCESS)
587 return (rc);
590 rc = vs_props_set(&vp, propids);
591 if (rc != VS_ERR_NONE) {
592 (void) fprintf(stderr, "%s\n", vs_strerror(rc));
606 int rc;
610 if ((rc = vs_adm_file_usage(argc, argv)) != VS_ADM_EXIT_SUCCESS)
611 return (rc);
614 rc = vs_adm_file_read(filename, vp.vp_types, sizeof (vp.vp_types));
615 if (rc != VS_ADM_EXIT_SUCCESS)
616 return (rc);
619 (void) fprintf(stderr, "%s: %s\n", filename, vs_strerror(rc));
634 int rc;
639 if ((rc = vs_adm_file_usage(argc, argv)) != VS_ADM_EXIT_SUCCESS)
640 return (rc);
645 if ((rc = vs_props_get(&vp, propids)) != VS_ERR_NONE) {
646 (void) fprintf(stderr, "%s: %s\n", filename, vs_strerror(rc));
650 rc = vs_adm_file_write(filename, vp.vp_types);
651 if (rc != VS_ADM_EXIT_SUCCESS)
652 return (rc);
781 int rc;
786 if ((rc = vs_statistics(&stats)) == VS_ERR_NONE) {
790 (void) fprintf(stdout, "%s\n", vs_strerror(rc));
797 if ((rc = vs_statistics_reset()) == VS_ERR_NONE) {
800 (void) fprintf(stdout, "%s\n", vs_strerror(rc));