Lines Matching defs:ne
42 struct netent *ne = getnetbyname(name);
46 if (ne == NULL || (n = copy_netent(ne, nptr, NET_R_COPY)) != 0)
49 *answerp = ne;
50 if (ne == NULL)
54 if (ne == NULL)
57 return (copy_netent(ne, nptr, NET_R_COPY));
66 struct netent *ne = getnetbyaddr(addr, type);
70 if (ne == NULL || (n = copy_netent(ne, nptr, NET_R_COPY)) != 0)
73 *answerp = ne;
74 if (ne == NULL)
79 if (ne == NULL)
82 return (copy_netent(ne, nptr, NET_R_COPY));
94 struct netent *ne = getnetent();
98 if (ne == NULL || (n = copy_netent(ne, nptr, NET_R_COPY)) != 0)
101 *answerp = ne;
102 if (ne == NULL)
107 if (ne == NULL)
110 return (copy_netent(ne, nptr, NET_R_COPY));
148 copy_netent(struct netent *ne, struct netent *nptr, NET_R_COPY_ARGS) {
156 for (i = 0; ne->n_aliases[i]; i++, numptr++) {
157 len += strlen(ne->n_aliases[i]) + 1;
159 len += strlen(ne->n_name) + 1;
168 nptr->n_addrtype = ne->n_addrtype;
169 nptr->n_net = ne->n_net;
174 n = strlen(ne->n_name) + 1;
175 strcpy(cp, ne->n_name);
181 for (i = 0 ; ne->n_aliases[i]; i++) {
182 n = strlen(ne->n_aliases[i]) + 1;
183 strcpy(cp, ne->n_aliases[i]);
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;
204 if ((n = strlen(ne->n_name) + 1) < (eob - cp)) {
205 strcpy(cp, ne->n_name);
215 while (ne->n_aliases[i] && i < (_MAXALIASES-1)) {
216 if ((n = strlen(ne->n_aliases[i]) + 1) < (eob - cp)) {
217 strcpy(cp, ne->n_aliases[i]);