Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 344) sorted by relevance

12345678910>>...14

/netbsd/src/sys/compat/netbsd32/
Dnetbsd32_sysent.c144 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
148 ns(struct netbsd32_syscall_args),
153 ns(struct netbsd32_exit_args),
160 ns(struct netbsd32_read_args),
164 ns(struct netbsd32_write_args),
168 ns(struct netbsd32_open_args),
172 ns(struct netbsd32_close_args),
176 ns(struct compat_50_netbsd32_wait4_args),
180 ns(struct compat_43_netbsd32_ocreat_args),
184 ns(struct netbsd32_link_args),
[all …]
/netbsd/src/sys/kern/
Dinit_sysent.c144 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
148 ns(struct sys_syscall_args),
153 ns(struct sys_exit_args),
160 ns(struct sys_read_args),
165 ns(struct sys_write_args),
170 ns(struct sys_open_args),
175 ns(struct sys_close_args),
179 ns(struct compat_50_sys_wait4_args),
184 ns(struct compat_43_sys_creat_args),
189 ns(struct sys_link_args),
[all …]
Dcore_elf32.c125 struct note_state ns; in ELFNAMEEND() local
131 ns.ns_first = kmem_alloc(sizeof *ns.ns_first, KM_SLEEP); in ELFNAMEEND()
132 ns.ns_last = ns.ns_first; in ELFNAMEEND()
133 ns.ns_count = 0; in ELFNAMEEND()
134 ns.ns_offset = 0; in ELFNAMEEND()
135 error = ELFNAMEEND(coredump_notes)(l, &ns); in ELFNAMEEND()
136 ns.ns_last->nb_next = NULL; in ELFNAMEEND()
139 notesize = ns.ns_count * sizeof nb->nb_data + ns.ns_offset; in ELFNAMEEND()
264 for (nb = ns.ns_first; nb != NULL; nb = nb->nb_next) { in ELFNAMEEND()
267 nb->nb_next == NULL ? ns.ns_offset : sizeof nb->nb_data), in ELFNAMEEND()
[all …]
/netbsd/src/sys/compat/linux32/arch/amd64/
Dlinux32_sysent.c37 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
44 ns(struct linux32_sys_exit_args),
51 ns(struct netbsd32_read_args),
55 ns(struct netbsd32_write_args),
59 ns(struct linux32_sys_open_args),
63 ns(struct netbsd32_close_args),
67 ns(struct linux32_sys_waitpid_args),
71 ns(struct linux32_sys_creat_args),
75 ns(struct netbsd32_link_args),
79 ns(struct linux32_sys_unlink_args),
[all …]
/netbsd/src/sys/compat/linux/arch/i386/
Dlinux_sysent.c31 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
38 ns(struct linux_sys_exit_args),
45 ns(struct sys_read_args),
50 ns(struct sys_write_args),
55 ns(struct linux_sys_open_args),
60 ns(struct sys_close_args),
64 ns(struct linux_sys_waitpid_args),
69 ns(struct linux_sys_creat_args),
74 ns(struct sys_link_args),
79 ns(struct linux_sys_unlink_args),
[all …]
/netbsd/src/sys/compat/linux/arch/mips/
Dlinux_sysent.c32 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
39 ns(struct linux_sys_exit_args),
46 ns(struct sys_read_args),
51 ns(struct sys_write_args),
56 ns(struct linux_sys_open_args),
61 ns(struct sys_close_args),
65 ns(struct linux_sys_waitpid_args),
70 ns(struct linux_sys_creat_args),
75 ns(struct sys_link_args),
80 ns(struct linux_sys_unlink_args),
[all …]
/netbsd/src/sys/compat/linux/arch/arm/
Dlinux_sysent.c32 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
39 ns(struct linux_sys_exit_args),
46 ns(struct sys_read_args),
51 ns(struct sys_write_args),
56 ns(struct linux_sys_open_args),
61 ns(struct sys_close_args),
65 ns(struct linux_sys_waitpid_args),
70 ns(struct linux_sys_creat_args),
75 ns(struct sys_link_args),
80 ns(struct linux_sys_unlink_args),
[all …]
/netbsd/src/sys/compat/linux/arch/m68k/
Dlinux_sysent.c35 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
42 ns(struct linux_sys_exit_args),
49 ns(struct sys_read_args),
54 ns(struct sys_write_args),
59 ns(struct linux_sys_open_args),
64 ns(struct sys_close_args),
68 ns(struct linux_sys_waitpid_args),
73 ns(struct linux_sys_creat_args),
78 ns(struct sys_link_args),
83 ns(struct linux_sys_unlink_args),
[all …]
/netbsd/src/sys/compat/sunos32/
Dsunos32_sysent.c32 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
39 ns(struct netbsd32_exit_args),
46 ns(struct netbsd32_read_args),
50 ns(struct netbsd32_write_args),
54 ns(struct sunos32_sys_open_args),
58 ns(struct netbsd32_close_args),
62 ns(struct sunos32_sys_wait4_args),
66 ns(struct sunos32_sys_creat_args),
70 ns(struct netbsd32_link_args),
74 ns(struct netbsd32_unlink_args),
[all …]
/netbsd/src/sys/compat/linux/arch/amd64/
Dlinux_sysent.c43 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
47 ns(struct sys_read_args),
52 ns(struct sys_write_args),
57 ns(struct linux_sys_open_args),
62 ns(struct sys_close_args),
66 ns(struct linux_sys_stat64_args),
71 ns(struct linux_sys_fstat64_args),
76 ns(struct linux_sys_lstat64_args),
81 ns(struct sys_poll_args),
86 ns(struct compat_43_sys_lseek_args),
[all …]
/netbsd/src/sys/compat/linux/arch/powerpc/
Dlinux_sysent.c30 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
37 ns(struct linux_sys_exit_args),
44 ns(struct sys_read_args),
49 ns(struct sys_write_args),
54 ns(struct linux_sys_open_args),
59 ns(struct sys_close_args),
63 ns(struct linux_sys_waitpid_args),
68 ns(struct linux_sys_creat_args),
73 ns(struct sys_link_args),
78 ns(struct linux_sys_unlink_args),
[all …]
/netbsd/src/sys/compat/sunos/
Dsunos_sysent.c28 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
35 ns(struct sys_exit_args),
42 ns(struct sys_read_args),
47 ns(struct sys_write_args),
52 ns(struct sunos_sys_open_args),
57 ns(struct sys_close_args),
61 ns(struct sunos_sys_wait4_args),
66 ns(struct sunos_sys_creat_args),
71 ns(struct sys_link_args),
76 ns(struct sys_unlink_args),
[all …]
/netbsd/src/sys/compat/freebsd/
Dfreebsd_sysent.c32 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
39 ns(struct sys_exit_args),
46 ns(struct sys_read_args),
51 ns(struct sys_write_args),
56 ns(struct sys_open_args),
61 ns(struct sys_close_args),
65 ns(struct compat_50_sys_wait4_args),
70 ns(struct compat_43_sys_creat_args),
75 ns(struct sys_link_args),
80 ns(struct sys_unlink_args),
[all …]
/netbsd/src/external/bsd/ipf/dist/lib/
Dprintnatside.c13 printnatside(side, ns) in printnatside() argument
15 nat_stat_side_t *ns;
17 PRINTF("%lu\tproxy create fail %s\n", ns->ns_appr_fail, side);
18 PRINTF("%lu\tproxy fail %s\n", ns->ns_ipf_proxy_fail, side);
19 PRINTF("%lu\tbad nat %s\n", ns->ns_badnat, side);
20 PRINTF("%lu\tbad nat new %s\n", ns->ns_badnatnew, side);
21 PRINTF("%lu\tbad next addr %s\n", ns->ns_badnextaddr, side);
22 PRINTF("%lu\tbucket max %s\n", ns->ns_bucket_max, side);
23 PRINTF("%lu\tclone nomem %s\n", ns->ns_clone_nomem, side);
24 PRINTF("%lu\tdecap bad %s\n", ns->ns_decap_bad, side);
[all …]
/netbsd/src/sys/compat/aoutm68k/
Daoutm68k_sysent.c32 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
36 ns(struct sys_syscall_args),
41 ns(struct sys_exit_args),
48 ns(struct sys_read_args),
53 ns(struct sys_write_args),
58 ns(struct sys_open_args),
63 ns(struct sys_close_args),
67 ns(struct compat_50_sys_wait4_args),
73 ns(struct compat_43_sys_creat_args),
83 ns(struct sys_link_args),
[all …]
/netbsd/src/sys/compat/linux/arch/alpha/
Dlinux_sysent.c38 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
45 ns(struct linux_sys_exit_args),
52 ns(struct sys_read_args),
57 ns(struct sys_write_args),
65 ns(struct sys_close_args),
69 ns(struct linux_sys_osf1_wait4_args),
74 ns(struct linux_sys_creat_args),
79 ns(struct sys_link_args),
84 ns(struct linux_sys_unlink_args),
92 ns(struct sys_chdir_args),
[all …]
/netbsd/src/sys/compat/ultrix/
Dultrix_sysent.c23 #define ns(type) .sy_narg = n(type), .sy_argsize = s(type) macro
30 ns(struct sys_exit_args),
37 ns(struct sys_read_args),
42 ns(struct sys_write_args),
47 ns(struct ultrix_sys_open_args),
52 ns(struct sys_close_args),
59 ns(struct ultrix_sys_creat_args),
64 ns(struct sys_link_args),
69 ns(struct sys_unlink_args),
74 ns(struct ultrix_sys_execv_args),
[all …]
/netbsd/src/share/examples/disktab/
Ddisktab12 # ns #sectors/track
15 # sc #sectors/cylinder, ns*nt default
47 :ty=floppy:se#512:nt#2:rm#300:ns#36:nc#80:\
55 :dt=ESDI:ty=winchester:se#512:nt#16:ns#63:nc#826: \
63 :dt=ESDI:ty=winchester:se#512:nt#15:ns#62:nc#899: \
72 :dt=ESDI:ty=winchester:se#512:nt#16:ns#62:nc#839: \
82 :nc#1651:ns#63:nt#16:se#512:\
90 :dt=SCSI::ty=removable:se#512:nt#64:ns#32:nc#634: \
99 :ty=winchester:dt=SCSI:ns#62:nt#9:nc#1476:\
107 :dt=SCSI:se#512:ns#99:nt#16:sc#1584:nc#2595:\
[all …]
/netbsd/src/sys/ufs/lfs/
Dulfs_bswap.h52 ulfs_rw16(uint16_t a, int ns) in ulfs_rw16() argument
54 return ((ns) ? bswap16(a) : (a)); in ulfs_rw16()
58 ulfs_rw32(uint32_t a, int ns) in ulfs_rw32() argument
60 return ((ns) ? bswap32(a) : (a)); in ulfs_rw32()
64 ulfs_rw64(uint64_t a, int ns) in ulfs_rw64() argument
66 return ((ns) ? bswap64(a) : (a)); in ulfs_rw64()
69 #define ulfs_rw16(a, ns) (__USE(ns), (uint16_t)(a)) argument
70 #define ulfs_rw32(a, ns) (__USE(ns), (uint32_t)(a)) argument
71 #define ulfs_rw64(a, ns) (__USE(ns), (uint64_t)(a)) argument
74 #define ulfs_add16(a, b, ns) \ argument
[all …]
/netbsd/src/sys/ufs/ufs/
Dufs_bswap.h51 ufs_rw16(uint16_t a, int ns) in ufs_rw16() argument
53 return ((ns) ? bswap16(a) : (a)); in ufs_rw16()
57 ufs_rw32(uint32_t a, int ns) in ufs_rw32() argument
59 return ((ns) ? bswap32(a) : (a)); in ufs_rw32()
63 ufs_rw64(uint64_t a, int ns) in ufs_rw64() argument
65 return ((ns) ? bswap64(a) : (a)); in ufs_rw64()
69 ufs_rw16(uint16_t a, int ns) in ufs_rw16() argument
75 ufs_rw32(uint32_t a, int ns) in ufs_rw32() argument
81 ufs_rw64(uint64_t a, int ns) in ufs_rw64() argument
87 #define ufs_add16(a, b, ns) \ argument
[all …]
/netbsd/src/external/bsd/libbind/dist/resolv/
Dres_send.c167 int ns; in res_ourserver_p() local
172 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
173 srv = (struct sockaddr_in *)get_nsaddr(statp, ns); in res_ourserver_p()
185 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
186 srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns); in res_ourserver_p()
298 int gotsomewhere, terrno, tries, v_circuit, resplen, ns, n; in res_nsend() local
332 for (ns = 0; ns < statp->nscount; ns++) { in res_nsend()
333 if (statp->nsaddr_list[ns].sin_family && in res_nsend()
334 !sock_eq((struct sockaddr *)&statp->nsaddr_list[ns], in res_nsend()
335 … (struct sockaddr *)&EXT(statp).ext->nsaddrs[ns])) { in res_nsend()
[all …]
/netbsd/src/lib/libc/resolv/
Dres_send.c213 int ns; in res_ourserver_p() local
218 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
219 srv = (struct sockaddr_in *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p()
231 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
232 srv6 = (struct sockaddr_in6 *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p()
344 int gotsomewhere, terrno, tries, v_circuit, resplen, ns, n; in res_nsend() local
385 for (ns = 0; ns < statp->nscount; ns++) { in res_nsend()
386 if (statp->nsaddr_list[ns].sin_family && in res_nsend()
387 … !sock_eq((struct sockaddr *)(void *)&statp->nsaddr_list[ns], in res_nsend()
388 … (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) { in res_nsend()
[all …]
/netbsd/src/sys/ufs/ffs/
Dfs.h565 #define old_cg_blktot_old(cgp, ns) \ argument
567 #define old_cg_blks_old(fs, cgp, cylno, ns) \ argument
570 #define old_cg_blktot_new(cgp, ns) \ argument
572 ufs_rw32((cgp)->cg_old_btotoff, (ns))))
573 #define old_cg_blks_new(fs, cgp, cylno, ns) \ argument
575 ufs_rw32((cgp)->cg_old_boff, (ns))) + (cylno) * (fs)->fs_old_nrpos)
577 #define old_cg_blktot(cgp, ns) \ argument
578 ((ufs_rw32((cgp)->cg_magic, (ns)) != CG_MAGIC) ? \
579 old_cg_blktot_old(cgp, ns) : old_cg_blktot_new(cgp, ns))
580 #define old_cg_blks(fs, cgp, cylno, ns) \ argument
[all …]
/netbsd/src/sys/net80211/
Dieee80211_netbsd.c336 struct ieee80211_node_sysctl *ns, int ifindex, in ieee80211_sysctl_fill_node() argument
339 memset(ns, 0, sizeof(*ns)); in ieee80211_sysctl_fill_node()
341 ns->ns_ifindex = ifindex; in ieee80211_sysctl_fill_node()
342 ns->ns_capinfo = ni->ni_capinfo; in ieee80211_sysctl_fill_node()
343 ns->ns_flags = flags; in ieee80211_sysctl_fill_node()
344 memcpy(ns->ns_macaddr, ni->ni_macaddr, sizeof(ns->ns_macaddr)); in ieee80211_sysctl_fill_node()
345 memcpy(ns->ns_bssid, ni->ni_bssid, sizeof(ns->ns_bssid)); in ieee80211_sysctl_fill_node()
347 ns->ns_freq = ni->ni_chan->ic_freq; in ieee80211_sysctl_fill_node()
348 ns->ns_chanflags = ni->ni_chan->ic_flags; in ieee80211_sysctl_fill_node()
349 ns->ns_chanidx = ni->ni_chan - chan0; in ieee80211_sysctl_fill_node()
[all …]
/netbsd/src/usr.bin/m4/lib/
Dohash_do.c28 unsigned int ns, j; in ohash_resize() local
32 ns = h->size << 1; in ohash_resize()
34 ns = h->size >> 1; in ohash_resize()
36 ns = h->size; in ohash_resize()
37 if (ns < MINSIZE) in ohash_resize()
38 ns = MINSIZE; in ohash_resize()
41 STAT_HASH_SIZE += ns - h->size; in ohash_resize()
43 n = (h->info.halloc)(sizeof(struct _ohash_record) * ns, h->info.data); in ohash_resize()
49 i = h->t[j].hv % ns; in ohash_resize()
50 incr = ((h->t[j].hv % (ns - 2)) & ~1) + 1; in ohash_resize()
[all …]

12345678910>>...14