HomeSort by: relevance | last modified time | path
    Searched defs:hp (Results 1 - 25 of 111) sorted by relevancy

1 2 3 4 5

  /src/lib/libc/rpc/
getrpcport.c 69 struct hostent *hp; local in function:__weak_alias
73 if ((hp = gethostbyname(host)) == NULL)
79 if (hp->h_length > addr.sin_len)
80 hp->h_length = addr.sin_len;
81 memcpy(&addr.sin_addr.s_addr, hp->h_addr, (size_t)hp->h_length);
  /src/usr.bin/talk/
get_addrs.c 51 struct hostent *hp; local in function:get_addrs
61 hp = gethostbyname(my_machine_name);
62 if (hp == NULL)
65 memcpy(&my_machine_addr, hp->h_addr, sizeof(my_machine_addr));
66 hp = gethostbyname(his_machine_name);
67 if (hp == NULL)
70 memcpy(&his_machine_addr, hp->h_addr, sizeof(his_machine_addr));
  /src/lib/libm/src/
e_remainderf.c 30 int32_t hx,hp; local in function:__ieee754_remainderf
35 GET_FLOAT_WORD(hp,p);
37 hp &= 0x7fffffff;
41 if(hp==0) return (x*p)/(x*p); /* p = 0 */
43 ((hp>0x7f800000))) /* p is NaN */
47 if (hp<=0x7effffff) x = __ieee754_fmodf(x,p+p); /* now x < 2p */
48 if ((hx-hp)==0) return zero*x;
51 if (hp<0x01000000) {
e_remainder.c 36 int32_t hx,hp; local in function:__ieee754_remainder
41 EXTRACT_WORDS(hp,lp,p);
43 hp &= 0x7fffffff;
47 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */
49 ((hp>=0x7ff00000)&& /* p is NaN */
50 (((hp-0x7ff00000)|lp)!=0)))
54 if (hp<=0x7fdfffff) x = __ieee754_fmod(x,p+p); /* now x < 2p */
55 if (((hx-hp)|(lx-lp))==0) return zero*x;
58 if (hp<0x00200000) {
  /src/usr.sbin/bootp/common/
lookup.c 71 struct hostent *hp; local in function:lookup_ipa
72 hp = gethostbyname(hostname);
73 if (!hp)
75 bcopy(hp->h_addr, result, sizeof(*result));
dumptab.c 51 struct host *hp; local in function:dumptab
109 for (hp = (struct host *) hash_FirstEntry(nmhashtable); hp != NULL;
110 hp = (struct host *) hash_NextEntry(nmhashtable)) {
111 dump_host(fp, hp);
124 * Dump all the available information on the host pointed to by "hp".
129 dump_host(FILE *fp, struct host *hp)
132 if (hp) {
133 fprintf(fp, "%s:", (hp->hostname ?
134 hp->hostname->string : "?"))
    [all...]
  /src/lib/libc/db/hash/
ndbm.c 92 HTAB *hp; local in function:dbm_error
94 hp = db->internal;
95 return (hp->err);
101 HTAB *hp; local in function:dbm_clearerr
103 hp = db->internal;
104 hp->err = 0;
111 HTAB *hp; local in function:dbm_dirfno
113 hp = db->internal;
114 return hp->fp;
  /src/lib/libc/net/
hostent.h 58 struct hostent *hp; member in struct:getnamaddr
  /src/usr.sbin/rpc.bootparamd/
test.c 71 struct hostent *hp; local in function:main
78 if ((hp = gethostbyname(argv[1])) == NULL)
85 memcpy(&addr, hp->h_addr_list[0], sizeof(addr));
  /src/sys/kern/
vfs_hooks.c 73 struct vfs_hooks *hp; local in function:vfs_hooks_detach
77 LIST_FOREACH(hp, &vfs_hooks_head, vfs_hooks_list) {
78 if (hp == vfs_hooks) {
79 LIST_REMOVE(hp, vfs_hooks_list);
83 if (hp == NULL)
100 struct vfs_hooks *hp; \
105 LIST_FOREACH(hp, &vfs_hooks_head, vfs_hooks_list) { \
106 if (hp-> hook != NULL) { \
107 error = hp-> hook hargs; \
126 struct vfs_hooks *hp; \
    [all...]
  /src/lib/libcompat/4.3/
rexec.c 68 struct hostent *hp; local in function:rexec
81 hp = gethostbyname(*ahost);
82 if (hp == 0) {
86 *ahost = hp->h_name;
87 (void)ruserpass(hp->h_name, &name, &pass);
93 rsin.sin_family = hp->h_addrtype;
97 if (hp->h_length > (int) sizeof(rsin.sin_addr))
100 len = hp->h_length;
101 memcpy(&rsin.sin_addr, hp->h_addr, len);
109 warn("Cannot connect to %s", hp->h_name)
    [all...]
  /src/lib/libresolv/
res_sendsigned.c 41 HEADER *hp; local in function:res_nsendsigned
149 hp = (HEADER *)(void *)answer;
150 if (hp->tc && !usingTCP && (statp->options & RES_IGNTC) == 0U) {
ns_sign.c 96 HEADER *hp = (void *)msg; local in function:ns_sign2
234 PUTSHORT(ntohs(hp->id), cp); /*%< already in network order */
251 hp->arcount = htons(ntohs(hp->arcount) + 1);
289 HEADER *hp = (void *)msg; local in function:ns_sign_tcp2
378 PUTSHORT(ntohs(hp->id), cp); /*%< already in network order */
388 hp->arcount = htons(ntohs(hp->arcount) + 1);
  /src/sys/dev/rasops/
rasops1_putchar_width.h 44 * rp and hp are always half-word aligned, whereas
69 SUBST_UNIT tmp, *rp, *hp; local in function:NAME
71 hp = NULL; /* XXX GCC */
90 hp = (SUBST_UNIT *)(ri->ri_hwbits + row * ri->ri_yscale +
101 *hp = bg;
102 DELTA(hp, ri->ri_stride, SUBST_UNIT *);
118 *hp = tmp;
119 DELTA(hp, ri->ri_stride, SUBST_UNIT *);
130 DELTA(hp, - ri->ri_stride * ri->ri_ul.off,
137 DELTA(hp, - ri->ri_stride, SUBST_UNIT *)
    [all...]
rasops1-4_putchar.h 93 uint32_t *rp, *bp, *hp; local in function:NAME
97 hp = NULL; /* XXX GCC */
118 hp = (uint32_t *)(ri->ri_hwbits + row * ri->ri_yscale +
146 *hp = tmp;
147 DELTA(hp, ri->ri_stride, uint32_t *);
169 *hp = tmp;
170 DELTA(hp, ri->ri_stride, uint32_t *);
181 DELTA(hp, - ri->ri_stride * ri->ri_ul.off,
189 DELTA(hp, - ri->ri_stride, uint32_t *);
190 *hp = tmp
    [all...]
rasops1.c 98 uint32_t *rp, *hp; local in function:rasops1_putchar
102 hp = NULL; /* XXX GCC */
123 hp = (uint32_t *)(ri->ri_hwbits + row * ri->ri_yscale +
151 *hp = tmp;
152 DELTA(hp, ri->ri_stride, uint32_t *);
168 *hp = tmp;
169 DELTA(hp, ri->ri_stride, uint32_t *);
180 DELTA(hp, - ri->ri_stride * ri->ri_ul.off,
188 DELTA(hp, - ri->ri_stride, uint32_t *);
189 *hp = tmp
    [all...]
  /src/usr.sbin/ypset/
ypset.c 97 struct hostent *hp; local in function:gethostaddr
102 hp = gethostbyname(host);
103 if (hp == NULL)
106 (void) memcpy(ia, hp->h_addr, sizeof(*ia));
  /src/lib/libc/resolv/
res_mkquery.c 122 register HEADER *hp; local in function:res_nmkquery
140 hp = (HEADER *)(void *)buf;
142 hp->id = htons(statp->id);
143 hp->opcode = op;
144 hp->rd = (statp->options & RES_RECURSE) != 0U;
145 hp->ad = (statp->options & RES_USE_DNSSEC) != 0U;
146 hp->rcode = NOERROR;
169 hp->qdcount = htons(1);
190 hp->arcount = htons(1);
212 hp->ancount = htons(1)
232 register HEADER *hp; local in function:res_nopt
    [all...]
  /src/bin/csh/
hist.c 56 struct Hist *hp, *np; local in function:savehist
77 for (hp = &Histlist; (np = hp->Hnext) != NULL;)
79 hp->Hnext = np->Hnext, hfree(np);
81 hp = np;
87 loadhist(struct Hist *hp) {
90 if (hi == NULL || hp == NULL)
92 loadhist(hp->Hnext);
93 if (sprlex(&h, &hp->Hlex) != -1) {
131 hfree(struct Hist *hp)
    [all...]
  /src/lib/libc/compat/net/
compat_ns_addr.c 109 int hb[6], *hp; local in function:Field
193 hp = hb + i - 1;
195 while (hp > hb) {
197 (void)sscanf(bp, "%3x", hp);
199 (void)sscanf(bp, "%3d", hp);
201 (void)sscanf(bp, "%3o", hp);
204 hp--;
208 (void)sscanf(buf, "%3x", hp);
210 (void)sscanf(buf, "%3d", hp);
212 (void)sscanf(buf, "%3o", hp);
    [all...]
  /src/usr.sbin/bootp/bootpef/
bootpef.c 130 struct host *hp;
238 hp = (struct host *) hash_Lookup(nmhashtable,
241 if (!hp) {
245 if (!hp->flags.exten_file) {
249 mktagfile(hp);
256 hp = (struct host *) hash_FirstEntry(nmhashtable);
257 while (hp != NULL) {
258 mktagfile(hp);
259 hp = (struct host *) hash_NextEntry(nmhashtable);
273 mktagfile(struct host *hp)
127 struct host *hp; local in function:main
    [all...]
  /src/lib/libedit/
hist.c 103 const wchar_t *hp; local in function:hist_get
125 hp = HIST_FIRST(el);
127 if (hp == NULL)
131 if ((hp = HIST_NEXT(el)) == NULL)
134 hlen = wcslen(hp) + 1;
139 memcpy(el->el_line.buffer, hp, hlen * sizeof(*hp));
  /src/lib/libquota/
quota_nfs.c 101 struct hostent *hp; local in function:callaurpc
107 if ((hp = gethostbyname(host)) == NULL)
111 memmove(&server_addr.sin_addr, hp->h_addr, hp->h_length);
  /src/sbin/rcorder/
hash.c 143 struct Hash_Entry **hp; local in function:Hash_InitTable
157 t->bucketPtr = hp = (struct Hash_Entry **)emalloc(sizeof(*hp) * i);
159 *hp++ = NULL;
183 struct Hash_Entry **hp, *h, *nexth; local in function:Hash_DeleteTable
187 for (hp = t->bucketPtr, i = t->size; --i >= 0;) {
188 for (h = *hp++; h != NULL; h = nexth) {
271 struct Hash_Entry **hp; local in function:Hash_CreateEntry
297 hp = &t->bucketPtr[h & t->mask];
298 e->next = *hp;
330 Hash_Entry **hp, *p; local in function:Hash_DeleteEntry
445 Hash_Entry *e, *next, **hp, **xp; local in function:RebuildTable
    [all...]
  /src/sys/arch/sparc64/dev/
fhc.c 181 int flags, vaddr_t unused, bus_space_handle_t *hp)
203 return bus_space_map(t->parent, paddr, size, flags, hp);
236 bus_space_handle_t *hp; local in function:fhc_intr_establish
239 hp = fhc_find_intr_handle(sc, ihandle);
240 if (hp == NULL) {
245 intrregs = bus_space_vaddr(sc->sc_bt, *hp);

Completed in 20 milliseconds

1 2 3 4 5