Lines Matching refs:sep
521 serecord_t *sep;
534 sep = parse_line(line);
535 if (sep != NULL) {
536 if (matches_serecord(sep)) {
537 print_serecord(stdout, sep);
540 free_serecord(sep);
557 serecord_t *sep;
603 sep = parse_line(line);
604 if (sep == NULL) {
607 if (!matches_serecord(sep)) {
611 free_serecord(sep);
658 serecord_t *sep;
664 sep = parse_line(line);
665 if (sep != NULL) {
666 if (matches_serecord(sep)) {
667 free_serecord(sep);
671 free_serecord(sep);
681 matches_serecord(serecord_t *sep)
689 strcmp(arg_vendor, sep->se_vendor) != 0) {
694 strcmp(arg_publisher, sep->se_publisher) != 0) {
699 strcmp(arg_class, sep->se_class) != 0) {
704 strcmp(arg_subclass, sep->se_subclass) != 0) {
709 strcmp(arg_username, sep->se_user) != 0) {
714 strcmp(arg_path, sep->se_path) != 0) {
719 line = sc_strdup(sep->se_args);
735 print_serecord(FILE *fp, serecord_t *sep)
741 if (strcmp(sep->se_vendor, "-") != 0) {
743 strcats(line, sep->se_vendor);
746 if (strcmp(sep->se_publisher, "-") != 0) {
748 strcats(line, sep->se_publisher);
751 if (strcmp(sep->se_class, "-") != 0) {
753 strcats(line, sep->se_class);
755 if (strcmp(sep->se_subclass, "-") != 0) {
757 strcats(line, sep->se_subclass);
761 if (strcmp(sep->se_user, "-") != 0) {
763 strcats(line, sep->se_user);
766 strcats(line, sep->se_path);
767 if (sep->se_args) {
769 strcats(line, sep->se_args);
820 serecord_t *sep;
852 sep = sc_malloc(sizeof (serecord_t));
854 sep->se_vendor = sc_strdup(vendor);
855 sep->se_publisher = sc_strdup(publisher);
856 sep->se_class = sc_strdup(class);
857 sep->se_subclass = sc_strdup(subclass);
858 sep->se_user = sc_strdup(user);
859 sep->se_reserved1 = sc_strdup(reserved1);
860 sep->se_reserved2 = sc_strdup(reserved2);
861 sep->se_path = sc_strdup(path);
862 sep->se_args = (args == NULL) ? NULL : sc_strdup(args);
864 return (sep);
869 free_serecord(serecord_t *sep)
871 sc_strfree(sep->se_vendor);
872 sc_strfree(sep->se_publisher);
873 sc_strfree(sep->se_class);
874 sc_strfree(sep->se_subclass);
875 sc_strfree(sep->se_user);
876 sc_strfree(sep->se_reserved1);
877 sc_strfree(sep->se_reserved2);
878 sc_strfree(sep->se_path);
879 sc_strfree(sep->se_args);
880 sc_free(sep, sizeof (serecord_t));