Lines Matching defs:nptr
41 getnetbyname_r(const char *name, struct netent *nptr, NET_R_ARGS) {
46 if (ne == NULL || (n = copy_netent(ne, nptr, NET_R_COPY)) != 0)
57 return (copy_netent(ne, nptr, NET_R_COPY));
65 getnetbyaddr_r(GETNETBYADDR_ADDR_T addr, int type, struct netent *nptr, NET_R_ARGS) {
70 if (ne == NULL || (n = copy_netent(ne, nptr, NET_R_COPY)) != 0)
82 return (copy_netent(ne, nptr, NET_R_COPY));
93 getnetent_r(struct netent *nptr, NET_R_ARGS) {
98 if (ne == NULL || (n = copy_netent(ne, nptr, NET_R_COPY)) != 0)
110 return (copy_netent(ne, nptr, NET_R_COPY));
148 copy_netent(struct netent *ne, struct netent *nptr, NET_R_COPY_ARGS) {
168 nptr->n_addrtype = ne->n_addrtype;
169 nptr->n_net = ne->n_net;
176 nptr->n_name = cp;
180 nptr->n_aliases = (char **)ALIGN(buf);
184 nptr->n_aliases[i] = cp;
187 nptr->n_aliases[i] = NULL;
193 copy_netent(struct netent *ne, struct netent *nptr, NET_R_COPY_ARGS) {
198 nptr->n_addrtype = ne->n_addrtype;
199 nptr->n_net = ne->n_net;
206 nptr->n_name = cp;
214 nptr->n_aliases = ndptr->net_aliases;
218 nptr->n_aliases[i] = cp;
225 nptr->n_aliases[i] = NULL;