Home
last modified time | relevance | path

Searched refs:ncp (Results 1 – 25 of 52) sorted by relevance

123

/netbsd-src/lib/libc/rpc/
H A Dgetnetconfig.c123 struct netconfig *ncp; member
248 struct netconfig_vars *ncp = handlep; in getnetconfig() local
256 if (ncp == NULL || nc_file == NULL) { in getnetconfig()
261 switch (ncp->valid) { in getnetconfig()
272 if (ncp->flag == 0) { /* first time */ in getnetconfig()
273 ncp->flag = 1; in getnetconfig()
274 ncp->nc_configs = ni.head; in getnetconfig()
275 if (ncp->nc_configs != NULL) /* entry already exist */ in getnetconfig()
276 return ncp->nc_configs->ncp; in getnetconfig()
278 else if (ncp->nc_configs != NULL && in getnetconfig()
[all …]
H A Dgetnetpath.c66 struct netconfig *ncp; /* an nconf entry */ member
154 struct netconfig *ncp = NULL; /* temp. holds a netconfig session */ in getnetpath() local
170 if ((ncp = getnetconfig(np_sessionp->nc_handlep)) in getnetpath()
173 } while ((ncp->nc_flag & NC_VISIBLE) == 0); in getnetpath()
174 return (ncp); in getnetpath()
184 if ((ncp = getnetconfigent(npp)) != NULL) { in getnetpath()
188 freenetconfigent(ncp); in getnetpath()
191 chainp->ncp = ncp; in getnetpath()
197 return (ncp); in getnetpath()
225 freenetconfigent(chainp->ncp); in endnetpath()
/netbsd-src/sys/kern/
H A Dvfs_cache.c379 cache_remove(struct namecache *ncp, const bool dir2node) in cache_remove()
381 struct vnode *vp, *dvp = ncp->nc_dvp; in cache_remove()
383 size_t namelen = NC_NLEN(ncp); in cache_remove()
386 KASSERT(cache_key(ncp->nc_name, namelen) == ncp->nc_key); in cache_remove()
387 KASSERT(rb_tree_find_node(&dvi->vi_nc_tree, ncp) == ncp); in cache_remove()
389 SDT_PROBE(vfs, namecache, invalidate, done, ncp, 0, 0, 0, 0); in cache_remove()
395 if ((vp = ncp->nc_vp) != NULL) { in cache_remove()
399 TAILQ_REMOVE(&vi->vi_nc_list, ncp, nc_lis in cache_remove()
377 cache_remove(struct namecache * ncp,const bool dir2node) cache_remove() argument
431 struct namecache *ncp; cache_lookup_entry() local
534 struct namecache *ncp; cache_lookup() local
660 struct namecache *ncp; cache_lookup_linked() local
796 struct namecache *ncp; cache_revlookup() local
914 struct namecache *ncp, *oncp; cache_enter() local
1179 struct namecache *ncp; cache_purge_parents() local
1236 struct namecache *ncp; cache_purge_children() local
1255 struct namecache *ncp; cache_purge_name() local
1325 cache_activate(struct namecache * ncp) cache_activate() argument
1344 struct namecache *ncp; cache_deactivate() local
1392 struct namecache *ncp; cache_reclaim() local
1542 struct namecache *ncp; namecache_print() local
[all...]
/netbsd-src/sys/arch/arc/stand/boot/
H A Ddevopen.c51 char *ncp; in devopen() local
58 ncp = (char *)fname; in devopen()
76 while (*ncp && *ncp++ != ')') in devopen()
78 if (*ncp) in devopen()
79 cp = ncp; in devopen()
92 while (*ncp && *ncp++ != ')') in devopen()
94 if (*ncp) in devopen()
95 cp = ncp; in devopen()
111 while (ncp != NULL && *ncp != 0) { in devopen()
112 while (*ncp && *ncp++ != ')') in devopen()
[all …]
/netbsd-src/sys/arch/sgimips/stand/common/
H A Ddevopen.c54 char *ncp; in devopen() local
61 ncp = (char *)fname; in devopen()
70 while (*ncp && *ncp++ != ')') in devopen()
72 if (*ncp) in devopen()
73 cp = ncp; in devopen()
89 while (ncp != NULL && *ncp != 0) { in devopen()
90 while (*ncp && *ncp++ != ')') in devopen()
92 if (*ncp) in devopen()
93 cp = ncp; in devopen()
/netbsd-src/sys/arch/alpha/stand/netboot/
H A Ddevopen.c50 register char *ncp; in devopen()
60 ncp = namebuf; in devopen()
84 if (ncp < namebuf + sizeof(namebuf) - 1) in devopen()
85 *ncp++ = c; in devopen()
88 *ncp = '\0'; in devopen()
100 if (ncp < namebuf + sizeof(namebuf) - 1) in devopen()
101 *ncp++ = c; in devopen()
129 *ncp = '\0'; in devopen()
/netbsd-src/sys/arch/evbmips/stand/sbmips/netboot/
H A Ddevopen.c50 register char *ncp; in devopen()
59 ncp = namebuf; in devopen()
84 if (ncp < namebuf + sizeof(namebuf) - 1) in devopen()
85 *ncp++ = c; in devopen()
88 *ncp = '\0'; in devopen()
100 if (ncp < namebuf + sizeof(namebuf) - 1) in devopen()
101 *ncp++ = c; in devopen()
129 *ncp = '\0'; in devopen()
/netbsd-src/sys/arch/sbmips/stand/netboot/
H A Ddevopen.c50 register char *ncp; in devopen()
59 ncp = namebuf; in devopen()
84 if (ncp < namebuf + sizeof(namebuf) - 1) in devopen()
85 *ncp++ = c; in devopen()
88 *ncp = '\0'; in devopen()
100 if (ncp < namebuf + sizeof(namebuf) - 1) in devopen()
101 *ncp++ = c; in devopen()
129 *ncp = '\0'; in devopen()
/netbsd-src/external/bsd/am-utils/dist/conf/transp/
H A Dtransp_tli.c61 struct netconfig *ncp; in amu_get_myaddress() local
66 ncp = getnetconfig(handlep); in amu_get_myaddress()
70 ret = netdir_getbyname(ncp, &service, &addrs); in amu_get_myaddress()
299 u_long protocol, struct netconfig *ncp) in amu_svc_register() argument
302 return svc_reg(xprt, prognum, versnum, dispatch, ncp); in amu_svc_register()
470 const struct netconfig *ncp, in bind_preferred_amq_port() argument
479 if (!ncp) { in bind_preferred_amq_port()
484 td = t_open(ncp->nc_device, O_RDWR, (struct t_info *) NULL); in bind_preferred_amq_port()
638 struct netconfig *ncp = NULL; in get_knetconfig() local
642 ncp = in_ncp; in get_knetconfig()
[all …]
/netbsd-src/sys/arch/pmax/stand/common/
H A Ddevopen.c52 char *ncp; in devopen() local
59 ncp = namebuf; in devopen()
88 if (ncp < namebuf + sizeof(namebuf) - 1) in devopen()
89 *ncp++ = c; in devopen()
99 if (ncp < namebuf + sizeof(namebuf) - 1) in devopen()
100 *ncp++ = c; in devopen()
129 *ncp = '\0'; in devopen()
/netbsd-src/sys/arch/emips/stand/common/
H A Ddevopen.c53 char *ncp; in devopen() local
60 ncp = device_name; in devopen()
83 if (ncp < device_name + sizeof(device_name) - 1) in devopen()
84 *ncp++ = c; in devopen()
87 if (ncp == device_name) in devopen()
110 *ncp = '\0'; in devopen()
H A Dboot.c264 char *ncp; in devcanon() local
269 ncp = device_name; in devcanon()
290 if (ncp < device_name + sizeof(device_name) - 1) in devcanon()
291 *ncp++ = c; in devcanon()
295 if (ncp == device_name) { in devcanon()
297 ncp += 3; in devcanon()
319 *ncp = '\0'; in devcanon()
/netbsd-src/sys/arch/mipsco/stand/common/
H A Ddevopen.c52 char *ncp; in devopen() local
59 ncp = namebuf; in devopen()
67 if (ncp < namebuf + sizeof(namebuf) - 1) in devopen()
68 *ncp++ = c; in devopen()
100 *ncp = '\0'; in devopen()
/netbsd-src/sys/arch/arc/pci/
H A Dnecpb.c172 necpb_init(struct necpb_context *ncp) in necpb_init() argument
181 if (ncp->nc_initialized) in necpb_init()
184 arc_large_bus_space_init(&ncp->nc_memt, "necpcimem", in necpb_init()
186 arc_bus_space_init_arena(&ncp->nc_memt, &necpb_mem_arena_store, in necpb_init()
189 arc_bus_space_init(&ncp->nc_iot, "necpciio", in necpb_init()
191 arc_bus_space_init_arena(&ncp->nc_iot, &necpb_io_arena_store, in necpb_init()
194 jazz_bus_dma_tag_init(&ncp->nc_dmat); in necpb_init()
196 pc = &ncp->nc_pc; in necpb_init()
238 ncp->nc_initialized = 1; in necpb_init()
/netbsd-src/sbin/pppoectl/
H A Dpppoectl.c91 static struct spppncpcfg ncp; variable
211 memset(&ncp, 0, sizeof ncp); in main()
212 strncpy(ncp.ifname, ifname, sizeof ncp.ifname); in main()
256 if (ioctl(s, SPPPGETNCPCFG, &ncp) == -1) in main()
273 ncp.ncp_flags); in main()
316 if (ioctl(s, SPPPGETNCPCFG, &ncp) == -1) in main()
319 ncp.ncp_flags |= set_ncpflags; in main()
320 ncp.ncp_flags &= ~clr_ncpflags; in main()
322 if (ioctl(s, SPPPSETNCPCFG, &ncp) == -1) in main()
373 ncp.ncp_flags); in main()
/netbsd-src/external/bsd/less/dist/
H A Dcmdbuf.c380 char *ncp; in cmd_right() local
388 ncp = cp; in cmd_right()
389 pr = cmd_step_right(&ncp, &width, NULL); in cmd_right()
394 cp = ncp; in cmd_right()
399 pr = cmd_step_right(&ncp, &width, NULL); in cmd_right()
403 cp = ncp; in cmd_right()
413 char *ncp; in cmd_left() local
422 ncp = cp; in cmd_left()
423 while (ncp > cmdbuf) in cmd_left()
425 cmd_step_left(&ncp, &width, &bswidth); in cmd_left()
[all …]
/netbsd-src/external/gpl2/gmake/dist/tests/scripts/targets/
H A DINTERMEDIATE39 $answer = "cp foo.f foo.e\ncp foo.e foo.d\nrm foo.e\n";
54 $answer = "cp foo.f foo.e\ncp foo.e foo.d\nrm foo.e\n";
60 $answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\nrm bar.e foo.e\n";
75 $answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\nrm bar.e foo.e\n";
/netbsd-src/usr.sbin/sysinst/
H A Drun.c419 char *cp, *ncp; in launch_subwin()
579 for (ncp = cp; (ncp = strstr(ncp, "\r\n")); ncp += 2) { in launch_subwin()
580 ncp[0] = '\n'; in launch_subwin()
581 ncp[1] = '\r'; in launch_subwin()
420 char *cp, *ncp; launch_subwin() local
/netbsd-src/external/gpl3/binutils/dist/binutils/
H A Drclex.c189 rc_uint_type ncp; in cpp_line() local
192 ncp = (rc_uint_type) strtol (fn + 2, NULL, 16); in cpp_line()
194 ncp = (rc_uint_type) strtol (fn, NULL, 10); in cpp_line()
195 if (ncp == CP_UTF16 || ! unicode_is_valid_codepage (ncp)) in cpp_line()
197 wind_current_codepage = ncp; in cpp_line()
/netbsd-src/external/gpl3/binutils.old/dist/binutils/
H A Drclex.c189 rc_uint_type ncp; in cpp_line() local
192 ncp = (rc_uint_type) strtol (fn + 2, NULL, 16); in cpp_line()
194 ncp = (rc_uint_type) strtol (fn, NULL, 10); in cpp_line()
195 if (ncp == CP_UTF16 || ! unicode_is_valid_codepage (ncp)) in cpp_line()
197 wind_current_codepage = ncp; in cpp_line()
H A Dwindres.c838 rc_uint_type ncp; in main() local
841 ncp = (rc_uint_type) strtol (optarg + 2, NULL, 16); in main()
843 ncp = (rc_uint_type) strtol (optarg, NULL, 10); in main()
844 if (ncp == CP_UTF16 || ! unicode_is_valid_codepage (ncp)) in main()
846 wind_default_codepage = wind_current_codepage = ncp; in main()
/netbsd-src/usr.sbin/btconfig/
H A Dbtconfig.c1085 hci_remote_name_req_cp ncp; in print_result() local
1097 memset(&ncp, 0, sizeof(ncp)); in print_result()
1098 bdaddr_copy(&ncp.bdaddr, &r->bdaddr); in print_result()
1099 ncp.page_scan_rep_mode = r->pscan_rep_mode; in print_result()
1100 ncp.clock_offset = r->clock_offset; in print_result()
1104 &ncp, sizeof(ncp), in print_result()
/netbsd-src/libexec/telnetd/
H A Dstate.c1533 if (ep > ncp) \ in send_status()
1534 *ncp++ = c; \ in send_status()
1545 unsigned char *ncp; in send_status()
1548 ncp = statusbuf; in send_status()
1625 writenet(statusbuf, ncp - statusbuf); in send_status()
1629 {printsub('>', statusbuf, ncp - statusbuf); netflush();}); in send_status()
1543 unsigned char *ncp; send_status() local
/netbsd-src/external/gpl2/gmake/dist/tests/scripts/misc/
H A Dgeneral419 … '', "mkdir -p dir/subdir\ntouch dir/subdir/file.b\ncp dir/subdir/file.b dir/subdir/file.a\n");
81 …'', "mkdir -p dir/subdir\ntouch dir/subdir/file.\$b\ncp dir/subdir/file.\$b dir/subdir/file.\$a\n"…
/netbsd-src/external/gpl3/gdb/dist/readline/readline/
H A Dsearch.c114 noninc_search_from_pos (char *string, int pos, int dir, int flags, int *ncp) in noninc_search_from_pos() argument
146 if (ncp) in noninc_search_from_pos()
147 *ncp = ret; /* caller will catch -1 to indicate no-op */ in noninc_search_from_pos()

123