Home
last modified time | relevance | path

Searched refs:_ALIGN (Results 1 – 20 of 20) sorted by relevance

/freebsd/sys/sys/
H A Dsocket.h554 _ALIGN(sizeof(struct cmsghdr)))
559 ((char *)(cmsg) + _ALIGN(((struct cmsghdr *)(cmsg))->cmsg_len) + \
560 _ALIGN(sizeof(struct cmsghdr)) > \
564 _ALIGN(((struct cmsghdr *)(cmsg))->cmsg_len)))
577 #define CMSG_SPACE(l) (_ALIGN(sizeof(struct cmsghdr)) + _ALIGN(l))
578 #define CMSG_LEN(l) (_ALIGN(sizeof(struct cmsghdr)) + (l))
582 #define CMSG_ALIGN(n) _ALIGN(n)
/freebsd/lib/libc/net/
H A Dgetnetnamadr.c179 p = (char *)_ALIGN(p); in net_marshal_func()
189 p = (char *)_ALIGN(p); in net_marshal_func()
250 orig_buf = (char *)_ALIGN(orig_buf); in net_unmarshal_func()
252 _ALIGN(p) - (size_t)p, in net_unmarshal_func()
254 _ALIGN(p) + (size_t)p); in net_unmarshal_func()
255 p = (char *)_ALIGN(p); in net_unmarshal_func()
H A Dgethostnamadr.c304 desired_size += addr_size * _ALIGN(ht->h_length); in host_marshal_func()
320 p = (char *)_ALIGN(p); in host_marshal_func()
330 p = (char *)_ALIGN(p); in host_marshal_func()
344 p = (char *)_ALIGN(p); in host_marshal_func()
349 size = _ALIGN(new_ht.h_length); in host_marshal_func()
403 orig_buf = (char *)_ALIGN(orig_buf); in host_unmarshal_func()
405 _ALIGN(p) - (size_t)p, in host_unmarshal_func()
407 _ALIGN(p) + (size_t)p); in host_unmarshal_func()
408 p = (char *)_ALIGN(p); in host_unmarshal_func()
H A Dgetprotoent.c197 p = (char *)_ALIGN(p); in __proto_marshal_func()
207 p = (char *)_ALIGN(p); in __proto_marshal_func()
266 orig_buf = (char *)_ALIGN(orig_buf); in __proto_unmarshal_func()
268 _ALIGN(p) - (size_t)p, in __proto_unmarshal_func()
270 _ALIGN(p) + (size_t)p); in __proto_unmarshal_func()
271 p = (char *)_ALIGN(p); in __proto_unmarshal_func()
H A Dgetservent.c231 aliases = (char **)_ALIGN(&buffer[resultbuflen + 1]); in parse_result()
1007 p = (char *)_ALIGN(p); in serv_marshal_func()
1024 p = (char *)_ALIGN(p); in serv_marshal_func()
1085 orig_buf = (char *)_ALIGN(orig_buf); in serv_unmarshal_func()
1087 (_ALIGN(p) - (size_t)p), in serv_unmarshal_func()
1089 (_ALIGN(p) - (size_t)p)); in serv_unmarshal_func()
1090 p = (char *)_ALIGN(p); in serv_unmarshal_func()
H A Dgetaddrinfo.c1877 sentinel->ai_addr = (struct sockaddr *)_ALIGN((char *)sentinel + in addrinfo_unmarshal_func()
/freebsd/lib/libc/rpc/
H A Dgetrpcent.c273 aliases = (char **)_ALIGN(&buffer[linesize+1]); in files_rpcent()
521 aliases=(char **)_ALIGN(&buffer[resultbuflen+2]); in nis_rpcent()
710 p = (char *)_ALIGN(p); in rpc_marshal_func()
720 p = (char *)_ALIGN(p); in rpc_marshal_func()
779 orig_buf = (char *)_ALIGN(orig_buf); in rpc_unmarshal_func()
781 _ALIGN(p) - (size_t)p, in rpc_unmarshal_func()
783 _ALIGN(p) + (size_t)p); in rpc_unmarshal_func()
784 p = (char *)_ALIGN(p); in rpc_unmarshal_func()
/freebsd/sys/arm/include/
H A D_align.h49 #define _ALIGN(p) (((unsigned)(p) + _ALIGNBYTES) & ~_ALIGNBYTES) macro
H A Dparam.h74 #define ALIGN(p) _ALIGN(p)
/freebsd/sys/riscv/include/
H A D_align.h39 #define _ALIGN(p) (((u_long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES) macro
H A Dparam.h64 #define ALIGN(p) _ALIGN(p)
/freebsd/sys/arm64/include/
H A D_align.h43 #define _ALIGN(p) (((u_long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES) macro
H A Dparam.h71 #define ALIGN(p) _ALIGN(p)
/freebsd/sys/powerpc/include/
H A D_align.h49 #define _ALIGN(p) (((uintptr_t)(p) + _ALIGNBYTES) & ~_ALIGNBYTES) macro
H A Dparam.h90 #define ALIGN(p) _ALIGN(p)
/freebsd/sys/x86/include/
H A D_align.h49 #define _ALIGN(p) (((__uintptr_t)(p) + _ALIGNBYTES) & ~_ALIGNBYTES) macro
/freebsd/lib/libc/gen/
H A Dgetgrent.c266 p = (char *)_ALIGN(p); in grp_marshal_func()
283 p = (char *)_ALIGN(p); in grp_marshal_func()
350 _ALIGN(p) - (size_t)p < buffer_size) { in grp_unmarshal_func()
355 orig_buf = (char *)_ALIGN(orig_buf); in grp_unmarshal_func()
357 _ALIGN(p) - (size_t)p, in grp_unmarshal_func()
359 _ALIGN(p) + (size_t)p); in grp_unmarshal_func()
360 p = (char *)_ALIGN(p); in grp_unmarshal_func()
1543 members = (char **)_ALIGN(membuf); in __gr_parse_entry()
/freebsd/sys/i386/include/
H A Dparam.h69 #define ALIGN(p) _ALIGN(p)
/freebsd/sys/amd64/include/
H A Dparam.h76 #define ALIGN(p) _ALIGN(p)
/freebsd/tests/sys/kern/
H A Dunix_passfd_test.c445 #define MAXFDS ((MCLBYTES - _ALIGN(sizeof(struct cmsghdr)))/sizeof(void *))