Searched refs:kp (Results 26 - 50 of 94) sorted by relevance

1234

/freebsd-9.3-release/sys/kern/
H A Dkern_kthread.c60 const struct kproc_desc *kp = udata; local
63 error = kproc_create((void (*)(void *))kp->func, NULL,
64 kp->global_procpp, 0, 0, "%s", kp->arg0);
66 panic("kproc_start: %s: error %d", kp->arg0, error);
230 const struct kthread_desc *kp = udata; local
233 error = kthread_add((void (*)(void *))kp->func, NULL,
234 NULL, kp->global_threadpp, 0, 0, "%s", kp->arg0);
236 panic("kthread_start: %s: error %d", kp
[all...]
/freebsd-9.3-release/contrib/nvi/common/
H A Dkey.c108 KEYLIST *kp; local
140 for (gp->max_special = 0, kp = keylist, cnt = nkeylist; cnt--; ++kp) {
141 if (gp->max_special < kp->value)
142 gp->max_special = kp->value;
143 if (kp->ch <= MAX_FAST_KEY)
144 gp->special_key[kp->ch] = kp->value;
174 KEYLIST *kp; local
185 for (kp
328 KEYLIST k, *kp; local
[all...]
/freebsd-9.3-release/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_swrun_tbl.c165 swrun_OS_get_proc_status(const struct kinfo_proc *kp) argument
168 assert(kp != NULL);
169 if(kp == NULL) {
177 switch (kp->ki_stat) {
195 syslog(LOG_ERR,"Unknown process state: %d", kp->ki_stat);
204 kinfo_proc_to_swrun_entry(const struct kinfo_proc *kp, argument
211 pname_len = strlen(kp->ki_comm) + 1;
214 strlcpy(entry->name, kp->ki_comm, pname_len);
220 argv = kvm_getargv(hr_kd, kp, SWR_PARAM_MLEN - 1);
269 entry->type = (int32_t)(IS_KERNPROC(kp)
327 struct kinfo_proc *plist, *kp; local
[all...]
H A Dhostres_snmp.h88 #define IS_KERNPROC(kp) (((kp)->ki_flag & P_KTHREAD) == P_KTHREAD)
/freebsd-9.3-release/contrib/nvi/vi/
H A Dvi.c135 vp->kp = &vikeys[':'];
173 if (F_ISSET(vp->kp, V_SECURE) && O_ISSET(sp, O_SECURE)) {
187 F_SET(vp, vp->kp->flags);
235 ex_continue: if (vp->kp->func(sp, vp))
463 VIKEYS const *kp; local
547 kp = &vikeys[vp->key = key];
560 if (kp->func == NULL && (kp = v_alias(sp, vp, kp)) == NULL)
565 kp
[all...]
H A Dvs_line.c50 CHAR_T *kp; local
426 for (kp = KEY_NAME(sp, ch) + offset_in_char; chlen--;)
427 *cbp++ = *kp++;
447 for (kp = KEY_NAME(sp, '$'); chlen--;)
448 *cbp++ = *kp++;
/freebsd-9.3-release/contrib/ncurses/form/
H A Dfty_enum.c64 char **kp = (char **)0; local
75 kp = argp->kwds;
76 while (kp && (*kp++))
/freebsd-9.3-release/contrib/one-true-awk/
H A Dlex.c437 int binsearch(char *w, Keyword *kp, int n) argument
445 if ((cond = strcmp(w, kp[mid].word)) < 0)
457 Keyword *kp; local
462 kp = keywords + n;
464 yylval.i = kp->sub;
465 switch (kp->type) { /* special handling */
467 if (kp->sub == FSYSTEM && safe)
469 RET(kp->type);
473 RET(kp->type);
477 RET(kp
[all...]
/freebsd-9.3-release/sys/powerpc/aim/
H A Dcopyinout.c141 const char *kp; local
153 kp = kaddr;
165 bcopy(kp, p, l);
168 kp += l;
183 char *kp, *p; local
194 kp = kaddr;
206 bcopy(p, kp, l);
209 kp += l;
224 char *kp; local
236 kp
[all...]
/freebsd-9.3-release/usr.bin/fstat/
H A Dfuser.c114 static void dofiles(struct procstat *procstat, struct kinfo_proc *kp,
284 dofiles(struct procstat *procstat, struct kinfo_proc *kp, argument
295 head = procstat_getfiles(procstat, kp, flags & MFLAG);
327 if (cons->pid == kp->ki_pid) {
343 cons->uid = kp->ki_uid;
344 cons->pid = kp->ki_pid;
/freebsd-9.3-release/bin/sh/
H A Doptions.c147 char *kp, *p; local
175 kp = p + 1;
176 while (*kp == ' ' || *kp == '\t')
177 kp++;
178 if (*kp == '#' || *kp == '\0')
/freebsd-9.3-release/crypto/heimdal/lib/hdb/
H A Dkeys.c254 char **ktypes, **kp; local
279 for(kp = ktypes; kp && *kp; kp++) {
285 p = *kp;
301 krb5_warn(context, ret, "bad value for default_keys `%s'", *kp);
/freebsd-9.3-release/bin/stty/
H A Dkey.c109 struct key *kp, tmp; local
119 if (!(kp = (struct key *)bsearch(&tmp, keys,
122 if (!(kp->flags & F_OFFOK) && ip->off) {
126 if (kp->flags & F_NEEDARG && !(ip->arg = *++*argvp)) {
130 kp->f(ip);
/freebsd-9.3-release/contrib/nvi/ex/
H A Dex_print.c229 CHAR_T ch, *kp; local
247 kp = KEY_NAME(sp, ch);
250 (void)ex_puts(sp, kp);
253 for (; tlen--; ++kp, ++col) {
259 "%c", repeatc ? repeatc : *kp);
/freebsd-9.3-release/bin/ps/
H A Dps.c175 struct kinfo_proc *kp; local
512 kp = kvm_getprocs(kd, what, flag, &nentries);
513 if ((kp == NULL && nentries > 0) || (kp != NULL && nentries < 0))
519 for (i = nentries; --i >= 0; ++kp) {
527 if (kp->ki_pid == pidlist.l.pids[elem])
536 if ((kp->ki_tdev == NODEV ||
537 (kp->ki_flag & P_CONTROLT) == 0))
544 if (kp->ki_rgid == gidlist.l.gids[elem])
549 if (kp
[all...]
/freebsd-9.3-release/sys/kgssapi/krb5/
H A Dkcrypto_arcfour.c60 void *kp = ks->ks_key; local
62 if (kp != in)
63 bcopy(in, kp, 16);
/freebsd-9.3-release/sys/powerpc/booke/
H A Dcopyinout.c131 char *kp; local
145 kp = kaddr;
154 if (!(*kp++ = c)) {
/freebsd-9.3-release/contrib/nvi/cl/
H A Dcl_term.c88 KEYLIST *kp; local
107 for (kp = keylist;; ++kp)
108 if (kp->value == tkp->value)
110 if (kp == NULL)
113 &kp->ch, 1, SEQ_INPUT, SEQ_NOOVERWRITE | SEQ_SCREEN))
/freebsd-9.3-release/sys/gnu/fs/xfs/
H A Dxfs_ialloc_btree.c75 xfs_inobt_key_t key; /* kp points here if block is level 0 */
76 xfs_inobt_key_t *kp = NULL; /* pointer to btree keys */ local
132 kp = XFS_INOBT_KEY_ADDR(block, 1, cur);
141 memmove(&kp[ptr - 1], &kp[ptr],
142 (numrecs - ptr) * sizeof(*kp));
144 (numrecs - ptr) * sizeof(*kp));
166 kp = &key;
219 if (ptr == 1 && (error = xfs_inobt_updkey(cur, kp, level + 1)))
542 xfs_inobt_key_t *kp local
779 xfs_inobt_key_t *kp; /* key pointer in btree block */ local
1194 xfs_inobt_key_t *kp; /* btree key pointer */ local
1640 xfs_inobt_key_t *kp; /* ptr to btree block keys */ local
[all...]
H A Dxfs_alloc_btree.c81 xfs_alloc_key_t key; /* kp points here if block is level 0 */
608 xfs_alloc_key_t *kp; /* pointer to btree keys */ local
669 kp = XFS_ALLOC_KEY_ADDR(block, ptr, cur);
670 xfs_btree_check_key(cur->bc_btnum, &key, kp);
739 kp = XFS_ALLOC_KEY_ADDR(block, 1, cur);
747 memmove(&kp[ptr], &kp[ptr - 1],
748 (be16_to_cpu(block->bb_numrecs) - ptr + 1) * sizeof(*kp));
758 kp[ptr - 1] = key;
765 xfs_btree_check_key(cur->bc_btnum, kp
867 xfs_alloc_key_t *kp; /* key pointer in btree block */ local
1407 xfs_alloc_key_t *kp; /* btree key pointer */ local
1754 xfs_alloc_key_t *kp; /* ptr to btree block keys */ local
[all...]
/freebsd-9.3-release/sbin/iscontrol/
H A Dlogin.c209 for(kp = keyMap; kp->name; kp++) {
210 if(strncmp(ptr, kp->name, kp->len) == 0 && ptr[kp->len] == '=')
211 mp->func(sess, ptr+kp->len+1, GET);
/freebsd-9.3-release/contrib/tcsh/
H A Ded.chared.c185 Char *cp, *kp = NULL; local
192 kp = UndoBuf; /* Set Up for VI undo command */
197 *kp++ = *cp; /* Save deleted chars into undobuf */
226 Char *cp, *kp = NULL; local
233 kp = UndoBuf; /* Set Up for VI undo command */
238 *kp++ = *cp;
889 Char *dp, *cp, *kp; local
936 kp = pos->buf;
938 *kp++ = *cp++;
939 *kp
2240 Char *kp, *cp; local
2276 Char *kp, *cp; local
2949 Char *cp, *kp; local
3727 Char *kp, *cp; local
[all...]
/freebsd-9.3-release/contrib/telnet/libtelnet/
H A Denc_des.c413 cfb64_keyid(int dir, unsigned char *kp, int *lenp) argument
415 return(fb64_keyid(dir, kp, lenp, &fb[CFB]));
419 ofb64_keyid(int dir, unsigned char *kp, int *lenp) argument
421 return(fb64_keyid(dir, kp, lenp, &fb[OFB]));
425 fb64_keyid(int dir, unsigned char *kp, int *lenp, struct fb *fbp) argument
429 if (*lenp != 1 || (*kp != '\0')) {
/freebsd-9.3-release/crypto/heimdal/appl/telnet/libtelnet/
H A Denc_des.c432 int cfb64_keyid(int dir, unsigned char *kp, int *lenp) argument
434 return(fb64_keyid(dir, kp, lenp, &fb[CFB]));
437 int ofb64_keyid(int dir, unsigned char *kp, int *lenp) argument
439 return(fb64_keyid(dir, kp, lenp, &fb[OFB]));
442 int fb64_keyid(int dir, unsigned char *kp, int *lenp, struct fb *fbp) argument
446 if (*lenp != 1 || (*kp != '\0')) {
/freebsd-9.3-release/lib/libedit/
H A Dcommon.c112 char *cp, *p, *kp; local
120 for (p = cp, kp = el->el_chared.c_kill.buf; p < el->el_line.cursor; p++)
121 *kp++ = *p;
122 el->el_chared.c_kill.last = kp;
187 char *kp, *cp; local
190 kp = el->el_chared.c_kill.buf;
192 *kp++ = *cp++; /* copy it */
193 el->el_chared.c_kill.last = kp;

Completed in 311 milliseconds

1234