Searched refs:jid (Results 1 - 25 of 59) sorted by relevance

123

/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/
H A Dtst.jid.d26 * collect jid at every fbt probe and at every firing of a
32 @a[jid] = count();
37 @a[jid] = count();
/freebsd-current/lib/libjail/
H A Djail_getid.c49 int jid; local
52 jid = strtoul(name, &ep, 10);
55 * jid == 0 is a special case; it will not appear in the
61 if (jid == 0)
62 return jid;
63 jiov[0].iov_base = __DECONST(char *, "jid");
64 jiov[0].iov_len = sizeof("jid");
65 jiov[1].iov_base = &jid;
66 jiov[1].iov_len = sizeof(jid);
79 jid
90 jail_getname(int jid) argument
[all...]
H A Djail.h53 extern char *jail_getname(int jid);
H A Djail.c79 int njp, jid; local
96 jid = jailparam_set(jp, njp, flags);
98 return (jid);
117 int njp, i, jid; local
139 } else if (!strcmp(jp[njp].jp_name, "jid")) {
166 jid = jailparam_get(jp, njp, flags);
167 if (jid < 0)
187 return (jid);
492 int i, jid, bool0; local
517 jid
569 int i, ai, ki, jid, arrays, sanity; local
[all...]
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dport-irix.c55 jid_t jid = 0; local
57 int jid = 0; local
61 jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive");
62 if (jid == -1)
68 if (jid == 0 && newarraysess() != 0)
/freebsd-current/sbin/bectl/
H A Dbectl_jail.c51 static int bectl_jail_cleanup(char *mountpoint, int jid);
208 bectl_jail_cleanup(char *mountpoint, int jid) argument
213 if (jid >= 0 && jail_remove(jid) != 0) {
239 int i, jid, mntflags, opt, ret; local
363 * only jail_remove if the jid is >= 0.
365 jid = bectl_locate_jail(bootenv);
366 bectl_jail_cleanup(mountpoint, jid);
376 int jid; local
383 while ((jid
406 int jid; local
447 int jid; local
[all...]
/freebsd-current/lib/flua/libjail/
H A Dlua_jail.c67 int jid; member in struct:l_jail_iter
77 * starts from. We'll always add jid and name, so just silently remove
81 strcmp(param_name, "jid") != 0 &&
98 if (jailparam_import_raw(&jp[0], &iter->jid, sizeof(iter->jid))) {
107 iter->jid = jailparam_get(jp, iter->params_count, 0);
108 if (iter->jid == -1) {
183 * lastjid, jid, name + length of the table. This may be too much if
200 if (jailparam_init(&iter->params[1], "jid") == -1) {
220 iter->jid
261 int jid; local
278 int jid; local
379 int flags, jid, type; local
466 int flags, jid, type; local
576 int jid, type; local
607 int jid, type; local
[all...]
/freebsd-current/tools/tools/vimage/
H A Dvimage.c56 int jid; member in struct:vimage_status
97 int jid, i, s, namelen; local
158 jid = 0;
159 while ((jid = getjail(&vst[vst_last], jid, verbose)) > 0) {
204 printf(" JID: %d\n", vst[i].jid);
216 if ((jid = jail_getid(argv[0])) < 0)
218 ifreq.ifr_jid = jid;
231 if (jail_attach(jid) < 0)
289 if ((jid
[all...]
/freebsd-current/usr.sbin/jail/
H A Djail.c428 if (!j->jid)
439 j->flags = j->jid < 0
443 if (j->jid < 0 && !(j->flags & JF_CLEANUP)) {
455 j->flags = j->jid < 0 ? JF_START : rdtun_params(j, 0)
464 if (j->jid > 0 &&
473 if (j->jid > 0)
495 if (j->jid < 0 && !(j->flags & JF_DEPEND)) {
519 j->comparam = j->jid < 0
521 } else if (j->jid < 0) {
533 } else if ((j->flags & JF_FAILED) && j->jid >
717 int jid; local
744 int ns, jid; local
856 int jid; local
901 int jid; local
[all...]
H A Dstate.c219 (rev ? dj->jid < 0 : dj->jid > 0)))
306 int jid; local
335 jiov[1].iov_base = &jid;
336 jiov[1].iov_len = sizeof(jid);
337 jiov[2].iov_base = __DECONST(char *, "jid");
338 jiov[2].iov_len = sizeof("jid");
339 jiov[3].iov_base = &jid;
340 jiov[3].iov_len = sizeof(jid);
345 for (jid
462 int jid, ret, len; local
[all...]
/freebsd-current/bin/pkill/tests/
H A Dpkill-j_test.sh6 jls -j "$check_name" -s | tr ' ' '\n' | grep jid= | sed -e 's/.*=//g'
21 name="pkill -j <jid>"
34 jid="${jid1},${jid2}"
35 case "$jid" in
40 echo "Did not match: '${jid}'" >&2
47 if pkill -f -j "$jid" $sleep && sleep 0.5 &&
97 # test 4 is like test 1 except with jname instead of jid.
H A Dpgrep-j_test.sh6 jls -j "$check_name" -s | tr ' ' '\n' | grep jid= | sed -e 's/.*=//g'
21 name="pgrep -j <jid>"
33 jid="${jid1},${jid2}"
34 case "$jid" in
43 pid1="$(pgrep -f -x -j "$jid" "$sleep $sleep_amount" | sort)"
92 # test 4 is like test 1 except with jname instead of jid.
/freebsd-current/usr.sbin/jexec/
H A Djexec.c59 int jid; local
100 jid = jail_getid(argv[0]);
101 if (jid < 0)
103 if (jail_attach(jid) == -1)
104 err(1, "jail_attach(%d)", jid);
/freebsd-current/lib/libc/tests/sys/
H A Dcpuset_test.c463 int jid; local
474 if ((jid = jail_set(iov, 2, JAIL_CREATE | JAIL_ATTACH)) < 0)
478 write(fd, &jid, sizeof(jid));
489 int error, jid, maxfd; local
500 /* Wait for jid to be written. */
517 ATF_REQUIRE_EQ(sizeof(jid), recv(fd, &jid, sizeof(jid), 0));
519 return (jid);
523 try_attach_child(int jid, cpuset_t *expected_mask) argument
550 try_attach(int jid, cpuset_t *expected_mask) argument
590 int fcpu, jid, pfd, sock, scpu; local
[all...]
/freebsd-current/usr.bin/top/
H A Dmachine.h72 int jid; /* only this jid (unless jid == -1) */ member in struct:process_select
/freebsd-current/usr.sbin/jls/
H A Djls.c88 int c, i, jflags, jid, lastjid, pflags, spc; local
96 pflags = jflags = jid = 0;
104 jid = strtoul(optarg, &ep, 10);
105 if (!jid || *ep) {
106 jid = 0;
148 add_param("jid", NULL, (size_t)0, NULL, JP_USER);
170 add_param("jid", NULL, (size_t)0, NULL, JP_USER);
202 if (jid != 0)
203 add_param("jid", &jid, sizeo
384 int i, jid, spc; local
[all...]
/freebsd-current/share/examples/flua/
H A Dlibjail.lua38 -- Make sure we don't have a demo jail to start with; "jid" and "name" are
49 jid, err = jail.setparams(name, {persist = "true"}, jail.CREATE)
50 if not jid then
59 jid, res = jail.getparams(name, allparams)
60 if not jid then
81 jid, err = jail.setparams(name, {persist = "false"}, jail.UPDATE)
82 if not jid then
92 jid = jparams["jid"]
99 io.write("demo still exists, jid "
[all...]
/freebsd-current/tests/atf_python/
H A Dutils.py36 def jail_attach(self, jid: int) -> int:
37 if self._libc.jail_attach(jid) != 0:
/freebsd-current/crypto/heimdal/appl/telnet/telnetd/
H A Dsys_term.c1742 int jid; local
1745 while ((jid = waitjob(NULL)) != -1) {
1746 if (jid == 0) {
1750 jobend(jid, NULL, NULL);
1761 jid_getutid(jid)
1762 int jid;
1768 if ( (cur->ut_type != NULL) && (jid == cur->ut_jid) ) {
1826 jobend(jid, path, user)
1827 int jid;
1842 * "saved_jid != jid" cod
[all...]
/freebsd-current/tools/regression/ipfw/fwd/
H A Dvimage-fwd.sh352 for jid in ${rjid} ${mjid} ${ljid}; do
354 x=`jls -as -j ${jid} jid 2>/dev/null`
356 jid=*) echo "Waiting for jail ${jid} to stop." >&2
/freebsd-current/usr.bin/killall/
H A Dkillall.c125 int jid; local
157 jid = jail_getid(*av);
158 if (jid < 0)
160 if (jail_attach(jid) == -1)
161 err(1, "jail_attach(%d)", jid);
/freebsd-current/tests/atf_python/sys/net/
H A Dvnet.py208 self, vnet_alias: str, vnet_name: str, jid: int, ifaces: List[VnetInterface]
212 self.jid = jid
243 def attach_jid(jid: int):
244 error_code = libc.jail_attach(jid)
249 self.attach_jid(self.jid)
290 jid = 0
293 jid = int(jid_str)
307 return VnetInstance(vnet_alias, vnet_name, jid, ifaces)
/freebsd-current/usr.sbin/jail/tests/
H A Djail_basic_test.sh48 # Stop jail by jid
49 atf_check -s exit:0 -o ignore jail -r `jls -j basejail jid`
114 # exec.prestop by jid
117 jail -f $(atf_get_srcdir)/commands.jail.conf -qr `jls -j basejail jid`
/freebsd-current/cddl/usr.sbin/dtrace/tests/common/safety/
H A DMakefile22 tst.jid.d \
/freebsd-current/usr.sbin/sysrc/
H A Dsysrc138 "The jid or name of the jail to operate within (overrides"
554 jid=$( jls jid path |
565 if [ "$jid" -a "${jid%[$IFS]*}" != "$jid" ]; then
576 if [ "$jid" ]; then
584 /usr/sbin/jexec "$jid" /bin/sh

Completed in 294 milliseconds

123