Home
last modified time | relevance | path

Searched refs:inp (Results 1 – 25 of 81) sorted by relevance

1234

/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass2.c52 struct inoinfo **inpp, *inp; in pass2() local
125 inp = getinoinfo(UFSROOTINO); in pass2()
126 if (inp != NULL && inp->i_dotdot != 0) in pass2()
127 inp->i_dotdot = 0; in pass2()
144 inp = *inpp; in pass2()
146 if (inp->i_isize == 0) in pass2()
150 if (((statemap[inp->i_number] & STMASK) != DSTATE) || in pass2()
151 ((statemap[inp->i_number] & INCLEAR) == INCLEAR)) in pass2()
154 if (inp->i_isize < (offset_t)MINDIRSIZE) { in pass2()
155 direrror(inp->i_number, "DIRECTORY TOO SHORT"); in pass2()
[all …]
H A Dpass3.c50 struct inoinfo **inpp, *inp; in pass3a() local
61 inp = *inpp; in pass3a()
62 state = statemap[inp->i_number]; in pass3a()
63 if (inp->i_number == UFSROOTINO || in pass3a()
64 (inp->i_parent != 0 && !S_IS_DUNFOUND(state))) in pass3a()
75 if (inp->i_dotdot >= UFSROOTINO) { in pass3a()
76 LINK_RANGE(flow, lncntp[inp->i_dotdot], 1); in pass3a()
78 dp = ginode(inp->i_dotdot); in pass3a()
79 LINK_CLEAR(flow, inp->i_dotdot, in pass3a()
81 if (statemap[inp->i_dotdot] == USTATE) in pass3a()
[all …]
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dinode.c55 register struct fileinfo *inp; local
59 for (inp = *inpp; inp; inp = inp->fe_nexthash) {
60 if (inp->fe_block == feblock)
63 if (!inp) {
74 inp = inpnext++;
75 inp->fe_block = feblock;
76 inp->fe_len = (uint16_t)len;
77 inp->fe_lseen = 1;
78 inp->fe_nexthash = *inpp;
79 *inpp = inp;
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dinet_ntop.c267 __inet_pton(int af, char *inp, void *outp, int compat) in __inet_pton() argument
275 if (str2inet_addr(inp, (ipaddr_t *)outp) != 0) { in __inet_pton()
292 if (strchr_w(inp, '.') != NULL) { in __inet_pton()
296 if (strncmp(inp, "::ffff:", 7) == 0) { in __inet_pton()
301 ret = str2inet_addr(inp + 7, in __inet_pton()
303 } else if (strncmp(inp, "::", 2) == 0) { in __inet_pton()
306 ret = str2inet_addr(inp + 2, in __inet_pton()
323 if ((error = ddi_strtol(inp, &end, 16, &byte)) != 0) { in __inet_pton()
337 inp = end; in __inet_pton()
340 if (inp == end) { /* not a number must be */ in __inet_pton()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfvscanf.c63 int inp; /* last input character read */ member
72 #define SCinit(sc,ds) ((sc)->inp = (sc)->error = -1, (sc)->f = f, \
76 #define SCend(sc,ds) (inp = (sc)->inp, f = (sc)->f, \
98 { sc->inp = -1;
113 { sc->inp = -1;
119 return (sc->inp = (int)(*sc->d++));
308 reg int inp, shift, base, width; local
361 n_assign = n_input = 0; inp = -1;
381 { if(SFgetc(f,inp) < 0 || inp == fmt)
383 else if(!isspace(inp))
[all …]
/illumos-gate/usr/src/common/util/
H A Dsscanf.c109 vsscanf(const char *inp, char const *fmt0, va_list ap) in vsscanf() argument
131 inr = strlen(inp); in vsscanf()
143 while (inr > 0 && isspace(*inp)) in vsscanf()
144 nread++, inr--, inp++; in vsscanf()
161 if (*inp != c) in vsscanf()
163 inr--, inp++; in vsscanf()
259 while (isspace(*inp)) { in vsscanf()
262 inp++; in vsscanf()
288 inp += n; in vsscanf()
294 inp += width; in vsscanf()
[all …]
/illumos-gate/usr/src/boot/include/netinet/
H A Din_pcb.h432 #define INP_LOCK_INIT(inp, d, t) \ argument
433 rw_init_flags(&(inp)->inp_lock, (t), RW_RECURSE | RW_DUPOK)
434 #define INP_LOCK_DESTROY(inp) rw_destroy(&(inp)->inp_lock) argument
435 #define INP_RLOCK(inp) rw_rlock(&(inp)->inp_lock) argument
436 #define INP_WLOCK(inp) rw_wlock(&(inp)->inp_lock) argument
437 #define INP_TRY_RLOCK(inp) rw_try_rlock(&(inp)->inp_lock) argument
438 #define INP_TRY_WLOCK(inp) rw_try_wlock(&(inp)->inp_lock) argument
439 #define INP_RUNLOCK(inp) rw_runlock(&(inp)->inp_lock) argument
440 #define INP_WUNLOCK(inp) rw_wunlock(&(inp)->inp_lock) argument
441 #define INP_TRY_UPGRADE(inp) rw_try_upgrade(&(inp)->inp_lock) argument
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dwgetch.c58 int inp; in wgetch() local
90 inp = (int)tgetch((int)(win->_use_keypad ? 1 + win->_notimeout : 0)); in wgetch()
93 if (SP->fl_echoit && (inp < 0200) && (inp >= 0) && !(win->_flags & in wgetch()
95 (void) wechochar(win, (chtype) inp); in wgetch()
102 if (inp == '\r' && !SP->fl_nonl) in wgetch()
103 inp = '\n'; in wgetch()
108 return (inp); in wgetch()
H A Dtgetch.c68 chtype inp; in tgetch() local
87 inp = -inputQ[0]; in tgetch()
93 inp = _readchar(); in tgetch()
95 inp = (chtype) _pk(); in tgetch()
96 if ((int)inp == ERR) { in tgetch()
108 inp = inputQ[0]; in tgetch()
112 fprintf(outf, "TGETCH read '%s'\n", unctrl(inp)); in tgetch()
116 if (interpret && cur_term->funckeystarter[inp]) in tgetch()
117 collapse = _getkey(interpret - 1, &inp); in tgetch()
127 return (inp); in tgetch()
[all …]
/illumos-gate/usr/src/common/crypto/arcfour/amd64/
H A Darcfour-x86_64.pl98 my ($code, $dat, $inp, $out, $len, $idx, $ido, $i, @XX, @TX, $YY, $TY);
118 $inp="%rsi"; # arg2
201 xor ($inp),%rax
202 add \$8,$inp
236 xorb ($inp),$TY#b
237 inc $inp
262 $inp="%rsi"; # arg2
288 lea ($inp,$len),$inp
313 add ($inp,$len,1),$idx#b
/illumos-gate/usr/src/cmd/exstr/
H A Dexstr.c244 char *inp; in replace() local
250 inp = linebuf; in replace()
333 while (*inp != '\0') in replace()
334 *outp++ = *inp++; in replace()
340 inp = linebuf; in replace()
355 *outp++ = *inp++; in replace()
358 if (*inp != '"') { in replace()
365 while (inp[strlen(inp)-2] == '\\' && in replace()
366 inp[strlen(inp)-1] == '\n') { in replace()
386 inp = cp; in replace()
[all …]
/illumos-gate/usr/src/cmd/refer/
H A Dglue4.c26 char *inp, inb[500]; in grepcall() local
32 strcpy(inp = inb, in); in grepcall()
35 for (cv[nv++] = "fgrep"; c = *inp; inp++) { in grepcall()
37 c = *inp = 0; in grepcall()
39 *inp = tolower(c); in grepcall()
42 cv[nv++] = inp; in grepcall()
44 *inp = 0; in grepcall()
H A Dglue5.c28 char inp; member
69 q->inp = 0; q->out = 0; q->nst = 0; q->link = 0; q->fail = 0; in fgrep()
169 if (c->inp == ch) { in execute()
179 if (c->inp == ch) { in execute()
279 if (s->inp == c) { in cgotofn()
283 if (s->inp == 0) goto enter; in cgotofn()
297 s->inp = c; in cgotofn()
350 if ((s->inp) != 0) { in cfail()
364 if ((c = s->inp) != 0) { in cfail()
376 if (state->inp == c) { in cfail()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dupap.c332 u_char *inp; local
340 inp = inpacket;
345 GETCHAR(code, inp);
346 GETCHAR(id, inp);
347 GETSHORT(len, inp);
360 upap_rauthreq(u, inp, id, len);
364 upap_rauthack(u, inp, id, len);
368 upap_rauthnak(u, inp, id, len);
382 upap_rauthreq(u, inp, id, len) in upap_rauthreq() argument
384 u_char *inp;
[all …]
H A Dfsm.c329 u_char *inp; local
337 inp = inpacket;
343 GETCHAR(code, inp);
344 GETCHAR(id, inp);
345 GETSHORT(len, inp);
369 fsm_rconfreq(f, id, inp, len);
373 fsm_rconfack(f, id, inp, len);
378 fsm_rconfnakrej(f, code, id, inp, len);
382 fsm_rtermreq(f, id, inp, len);
390 fsm_rcoderej(f, inp, len);
[all …]
H A Dchap.c364 u_char *inp; local
372 inp = inpacket;
378 GETCHAR(code, inp);
379 GETCHAR(id, inp);
380 GETSHORT(len, inp);
393 ChapReceiveChallenge(cstate, inp, id, len);
397 ChapReceiveResponse(cstate, inp, id, len);
401 ChapReceiveFailure(cstate, inp, id, len);
405 ChapReceiveSuccess(cstate, inp, id, len);
420 ChapReceiveChallenge(cstate, inp, id, len) in ChapReceiveChallenge() argument
[all …]
/illumos-gate/usr/src/ucblib/libcurses/
H A Dgetch.c32 char inp; in wgetch() local
45 inp = getchar(); in wgetch()
47 fprintf(outf, "WGETCH got '%s'\n", unctrl(inp)); in wgetch()
51 win->_curx + win->_begx, inp); in wgetch()
52 (void) waddch(win, inp); in wgetch()
56 return ((int)inp); in wgetch()
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dses_ses.c173 #define sget8(inp, idx, lval) lval = (((uchar_t *)(inp))[idx++]) argument
174 #define gget8(inp, idx, lval) lval = (((uchar_t *)(inp))[idx]) argument
176 #define sget16(inp, idx, lval) \ argument
177 lval = gbyte((((uchar_t *)(inp))[idx]), 1) | \
178 (((uchar_t *)(inp))[idx+1]), idx += 2
180 #define gget16(inp, idx, lval) \ argument
181 lval = gbyte((((uchar_t *)(inp))[idx]), 1) | \
182 (((uchar_t *)(inp))[idx+1])
184 #define sget24(inp, idx, lval) \ argument
185 lval = gbyte((((uchar_t *)(inp))[idx]), 2) | \
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_conv.c128 M_16_SWAP(h->inp[i]);
172 M_16_SWAP(h->inp[i]);
179 M_16_SWAP(h->inp[i]);
195 M_16_SWAP(h->inp[i]);
201 M_16_SWAP(h->inp[i]);
220 M_16_SWAP(h->inp[i]);
226 M_16_SWAP(h->inp[i]);
233 M_16_SWAP(h->inp[i]);
/illumos-gate/usr/src/cmd/unpack/
H A Dunpack.c65 static char *inp; variable
125 inp = &inbuff[2]; in getdict()
128 origsize = origsize*256 + ((*inp++) & 0377); in getdict()
129 maxlev = *inp++ & 0377; in getdict()
136 intnodes[i] = *inp++ & 0377; in getdict()
142 *eof++ = *inp++; in getdict()
145 *eof++ = *inp++; in getdict()
147 inleft -= inp - &inbuff[0]; in getdict()
179 inleft = read(infile, inp = &inbuff[0], BUFSIZ); in decode()
194 c = *inp++; in decode()
[all …]
/illumos-gate/usr/src/lib/libdisasm/common/
H A Ddis_sparc.c226 const inst_t *inp = NULL; in dis_sparc_disassemble() local
254 inp = &tp->tbl_inp[idx]; in dis_sparc_disassemble()
256 inp = dis_get_overlay(dhp, tp, idx); in dis_sparc_disassemble()
258 if ((inp->in_type == INST_NONE) || in dis_sparc_disassemble()
259 ((inp->in_arch & dhp->dh_flags) == 0)) in dis_sparc_disassemble()
262 if (inp->in_type == INST_TBL) { in dis_sparc_disassemble()
263 tp = inp->in_data.in_tbl; in dis_sparc_disassemble()
270 if (tp->tbl_fmt(dhp, instr, inp, idx) == 0) in dis_sparc_disassemble()
H A Ddis_sparc_fmt.c699 fmt_call(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) in fmt_call() argument
716 prt_name(dhp, inp->in_data.in_def.in_name, 1); in fmt_call()
735 fmt_sethi(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) in fmt_sethi() argument
749 prt_name(dhp, inp->in_data.in_def.in_name, 1); in fmt_sethi()
761 prt_name(dhp, inp->in_data.in_def.in_name, 1); in fmt_sethi()
774 fmt_branch(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) in fmt_branch() argument
777 const char *name = inp->in_data.in_def.in_name; in fmt_branch()
788 uint32_t flags = inp->in_data.in_def.in_flags; in fmt_branch()
1004 fmt_ls(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) in fmt_ls() argument
1011 const char *iname = inp->in_data.in_def.in_name; in fmt_ls()
[all …]
/illumos-gate/usr/src/lib/brand/solaris10/s10_support/
H A Ds10_support.c152 char *inp; in read_pkg_data() local
162 inp = start; in read_pkg_data()
163 while ((p = fgets(inp, PKGINFO_RD_LEN, fp)) != NULL) { in read_pkg_data()
166 len = strlen(inp); in read_pkg_data()
167 if (inp[len - 1] == '\n' && in read_pkg_data()
168 (len == 1 || inp[len - 2] != '\\')) { in read_pkg_data()
173 if (inp[len - 1] == '\n' && inp[len - 2] == '\\') in read_pkg_data()
184 inp = start + char_cnt; in read_pkg_data()
/illumos-gate/usr/src/common/crypto/sha1/amd64/
H A Dsha1-x86_64.pl50 my ($code, $ctx, $inp, $num, $xi, $t0, $t1, $i, @V, $A, $B, $C, $D, $E, $T);
61 $inp="%rsi"; # 2nd arg
66 $inp="%r9";
94 mov %rsi,$inp # reassigned argument
123 mov `4*$i`($inp),$xi
130 mov `4*$j`($inp),$xi
268 lea `16*4`($inp),$inp
/illumos-gate/usr/src/common/crypto/sha2/amd64/
H A Dsha512-x86_64.pl67 $ctx, $round, $inp, $Tbl, $_ctx, $_inp, $_end, $_rsp, $framesz);
111 $inp="%rsi"; # 2nd arg
236 lea ($inp,%rdx,$SZ),%rdx # inp+num*16*$SZ
240 mov $inp,$_inp # save inp, 2nd arg
269 $code.=" mov $SZ*$i($inp),$T1\n";
289 lea 16*$SZ($inp),$inp
300 cmp $_end,$inp

1234