Home
last modified time | relevance | path

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

/freebsd/usr.sbin/nscd/agents/
H A Dservices.c48 struct servent new_serv; in services_marshal_func() local
79 memcpy(&new_serv, serv, sizeof(struct servent)); in services_marshal_func()
87 if (new_serv.s_name != NULL) { in services_marshal_func()
88 size = strlen(new_serv.s_name); in services_marshal_func()
89 memcpy(p, new_serv.s_name, size); in services_marshal_func()
90 new_serv.s_name = p; in services_marshal_func()
94 if (new_serv.s_proto != NULL) { in services_marshal_func()
95 size = strlen(new_serv.s_proto); in services_marshal_func()
96 memcpy(p, new_serv.s_proto, size); in services_marshal_func()
97 new_serv.s_proto = p; in services_marshal_func()
[all …]
/freebsd/lib/libc/net/
H A Dgetservent.c951 struct servent new_serv; in serv_marshal_func() local
1001 memcpy(&new_serv, serv, sizeof(struct servent)); in serv_marshal_func()
1009 if (new_serv.s_name != NULL) { in serv_marshal_func()
1010 size = strlen(new_serv.s_name); in serv_marshal_func()
1011 memcpy(p, new_serv.s_name, size); in serv_marshal_func()
1012 new_serv.s_name = p; in serv_marshal_func()
1016 if (new_serv.s_proto != NULL) { in serv_marshal_func()
1017 size = strlen(new_serv.s_proto); in serv_marshal_func()
1018 memcpy(p, new_serv.s_proto, size); in serv_marshal_func()
1019 new_serv.s_proto = p; in serv_marshal_func()
[all …]