Home
last modified time | relevance | path

Searched refs:new_serv (Results 1 – 2 of 2) sorted by relevance

/freebsd-14-stable/usr.sbin/nscd/agents/
HDservices.c49 struct servent new_serv; in services_marshal_func() local
80 memcpy(&new_serv, serv, sizeof(struct servent)); in services_marshal_func()
88 if (new_serv.s_name != NULL) { in services_marshal_func()
89 size = strlen(new_serv.s_name); in services_marshal_func()
90 memcpy(p, new_serv.s_name, size); in services_marshal_func()
91 new_serv.s_name = p; in services_marshal_func()
95 if (new_serv.s_proto != NULL) { in services_marshal_func()
96 size = strlen(new_serv.s_proto); in services_marshal_func()
97 memcpy(p, new_serv.s_proto, size); in services_marshal_func()
98 new_serv.s_proto = p; in services_marshal_func()
[all …]
/freebsd-14-stable/lib/libc/net/
HDgetservent.c954 struct servent new_serv; in serv_marshal_func() local
1004 memcpy(&new_serv, serv, sizeof(struct servent)); in serv_marshal_func()
1012 if (new_serv.s_name != NULL) { in serv_marshal_func()
1013 size = strlen(new_serv.s_name); in serv_marshal_func()
1014 memcpy(p, new_serv.s_name, size); in serv_marshal_func()
1015 new_serv.s_name = p; in serv_marshal_func()
1019 if (new_serv.s_proto != NULL) { in serv_marshal_func()
1020 size = strlen(new_serv.s_proto); in serv_marshal_func()
1021 memcpy(p, new_serv.s_proto, size); in serv_marshal_func()
1022 new_serv.s_proto = p; in serv_marshal_func()
[all …]