Lines Matching defs:pr
726 * int irp_marshall_pr(struct protoent *pr, char **buffer, size_t *len)
739 irp_marshall_pr(struct protoent *pr, char **buffer, size_t *len) {
744 if (pr == NULL || len == NULL) {
749 sprintf(prProto, "%d", (int)pr->p_proto);
751 need += strlen(pr->p_name) + 1;
752 need += joinlength(pr->p_aliases) + 1;
776 strcpy(*buffer, pr->p_name); strcat(*buffer, fieldsep);
777 joinarray(pr->p_aliases, *buffer, COMMA); strcat(*buffer, fieldsep);
785 * int irp_unmarshall_pr(struct protoent *pr, char *buffer)
797 int irp_unmarshall_pr(struct protoent *pr, char *buffer) {
808 if (pr == NULL || buffer == NULL) {
850 pr->p_name = name;
851 pr->p_aliases = aliases;
852 pr->p_proto = prproto;