Home
last modified time | relevance | path

Searched refs:peek (Results 1 – 25 of 67) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMILexer.cpp44 char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } in peek() function in __anon2f5552ae0111::Cursor
86 while (isblank(C.peek())) in skipWhitespace()
95 if (C.peek() != ';') in skipComment()
97 while (!isNewlineChar(C.peek()) && !C.isEOF()) in skipComment()
105 if (C.peek() != '/' || C.peek(1) != '*') in skipMachineOperandComment()
108 while (C.peek() != '*' || C.peek(1) != '/') in skipMachineOperandComment()
133 char Char = C.peek(); in unescapeQuotedString()
135 if (C.peek(1) == '\\') { in unescapeQuotedString()
141 if (isxdigit(C.peek(1)) && isxdigit(C.peek(2))) { in unescapeQuotedString()
142 Str += hexDigitValue(C.peek(1)) * 16 + hexDigitValue(C.peek(2)); in unescapeQuotedString()
[all …]
/freebsd/contrib/tcp_wrappers/
H A Dtli-sequent.c57 struct strpeek peek; in tli_host() local
91 peek.ctlbuf.maxlen = tli_state_ptr->ti_ctlsize; in tli_host()
92 peek.ctlbuf.len = 0; in tli_host()
93 peek.ctlbuf.buf = tli_state_ptr->ti_ctlbuf; in tli_host()
95 peek.databuf.maxlen = -1; in tli_host()
96 peek.databuf.len = 0; in tli_host()
97 peek.databuf.buf = 0; in tli_host()
98 peek.flags = 0; in tli_host()
100 switch (ioctl(request->fd, I_PEEK, &peek)) { in tli_host()
113 if (peek.ctlbuf.len < sizeof(long)) { in tli_host()
[all …]
/freebsd/contrib/one-true-awk/
H A Dlex.c104 static int peek(void) in peek() function
232 if (peek() == '\n') { in yylex()
235 } else if (peek() == '\r') { in yylex()
243 if (peek() == '&') { in yylex()
248 if (peek() == '|') { in yylex()
253 if (peek() == '=') { in yylex()
255 } else if (peek() == '~') { in yylex()
263 if (peek() == '=') { in yylex()
269 if (peek() == '=') { in yylex()
275 if (peek() == '=') { in yylex()
[all …]
/freebsd/contrib/ncurses/ncurses/
H A Dfifo_defs.h47 #define peek sp->_fifopeek macro
78 (peek >= FIFO_SIZE-1) \
79 ? peek = 0 \
80 : peek++; \
83 #define cooked_key_in_fifo() ((head >= 0) && (peek != head))
84 #define raw_key_in_fifo() ((head >= 0) && (peek != tail))
/freebsd/contrib/llvm-project/libcxx/src/experimental/
H A Dtzdb.cpp65 while (chrono::__is_whitespace(__input.peek())) in __skip_optional_whitespace()
79 while (!chrono::__is_eol(__input.peek())) { in __skip_line()
86 if (std::tolower(__input.peek()) == __suffix) in __skip()
92 if (std::tolower(__input.peek()) == __c) in __skip()
140 if (__input.peek() < '0' || __input.peek() > '9') in __parse_integral()
285 bool __negative = __input.peek() == '-'; in __parse_year_value()
301 if (std::tolower(__input.peek()) != 'm') [[likely]] in __parse_year()
305 switch (std::tolower(__input.peek())) { in __parse_year()
329 if (std::tolower(__input.peek()) != 'o') in __parse_to()
351 if (std::isdigit(__input.peek())) in __parse_on()
[all …]
/freebsd/libexec/nuageinit/
H A Dyaml.lua246 Parser.peek = function (self, offset) function
268 error(msg .. context(self:peek()[1].input))
272 return self:accept("dedent") or (self:peek() == nil) or
273 error(msg .. context(self:peek()[2].input))
277 return self:peek(offset) and self:peek(offset)[1] == val
304 if self:peekType("string") and not self:peek().force_text then
305 local char = self:peek()[2][1]:sub(1,1)
307 ref = self:peek()[2][1]:sub(2)
311 ref = self:peek()[2][1]:sub(2)
319 token = self:peek()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDIExpressionOptimizer.cpp118 auto Op = Cursor.peek(); in canonicalizeDwarfOperations()
127 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in canonicalizeDwarfOperations()
134 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in canonicalizeDwarfOperations()
138 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in canonicalizeDwarfOperations()
153 auto Op1 = Cursor.peek(); in optimizeDwarfOperations()
161 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in optimizeDwarfOperations()
169 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in optimizeDwarfOperations()
178 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in optimizeDwarfOperations()
179 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in optimizeDwarfOperations()
183 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in optimizeDwarfOperations()
[all …]
/freebsd/contrib/ncurses/ncurses/base/
H A Dlib_getch.c210 int ch = (peek >= 0) ? sp->_fifo[peek] : ERR; in fifo_peek()
211 TR(TRACE_IEVENT, ("peeking at %d", peek)); in fifo_peek()
224 if (peek == head) { in fifo_pull()
226 peek = head; in fifo_pull()
356 head = peek = tail; in fifo_push()
373 tail = peek = 0; in fifo_clear()
734 peek = head; /* the keys stay uninterpreted */ in kgetch()
739 peek = head; /* the keys stay uninterpreted */ in kgetch()
751 peek = head; in kgetch()
770 if (peek == tail) { in kgetch()
[all …]
H A Dlib_ungetch.c55 T(("head = %d, tail = %d, peek = %d", head, tail, peek)); in NCURSES_EXPORT()
72 peek = tail; /* no raw keys */ in safe_ungetch()
/freebsd/tools/test/buf_ring/
H A Drun.sh14 run peek
15 run peek-clear
/freebsd/tests/sys/netinet/
H A Dudp_io.c99 ATF_TC_WITHOUT_HEAD(peek);
100 ATF_TC_BODY(peek, tc) in ATF_TC_BODY() argument
136 ATF_TP_ADD_TC(tp, peek); in ATF_TP_ADD_TCS()
/freebsd/usr.bin/dtc/
H A Dinput_buffer.cc744 switch (peek()) in parse_binary_expression()
765 switch (peek()) in parse_binary_expression()
787 if (peek() != '=') in parse_binary_expression()
795 if (peek() != '=') in parse_binary_expression()
804 if (peek() == '&') in parse_binary_expression()
814 if (peek() == '|') in parse_binary_expression()
1007 if (*self == '/' && peek() == '*') in next_token()
1025 if ((*self == '/' && peek() == '/')) in next_token()
1231 text_input_buffer::peek() in peek() function in dtc::text_input_buffer
/freebsd/lib/libthr/thread/
H A Dthr_join.c39 static int join_common(pthread_t, void **, const struct timespec *, bool peek);
85 const struct timespec *abstime, bool peek) in join_common() argument
114 if (peek) { in join_common()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpBuiltin.cpp68 INT_TYPE_SWITCH(T, R = Stk.peek<T>(Offset).toAPSInt()); in peekToAPSInt()
368 const Floating &Arg = S.Stk.peek<Floating>(); in interp__builtin_isnan()
378 const Floating &Arg = S.Stk.peek<Floating>(); in interp__builtin_issignaling()
387 const Floating &Arg = S.Stk.peek<Floating>(); in interp__builtin_isinf()
400 const Floating &Arg = S.Stk.peek<Floating>(); in interp__builtin_isfinite()
409 const Floating &Arg = S.Stk.peek<Floating>(); in interp__builtin_isnormal()
419 const Floating &Arg = S.Stk.peek<Floating>(); in interp__builtin_issubnormal()
428 const Floating &Arg = S.Stk.peek<Floating>(); in interp__builtin_iszero()
443 S.Stk.peek<Floating>(align(primSize(FPClassArgT) + primSize(PT_Float))); in interp__builtin_isfpclass()
457 const Floating &Val = S.Stk.peek<Floating>(); in interp__builtin_fpclassify()
[all …]
H A DInterp.h428 const Pointer &Result = S.Stk.peek<Pointer>(); in Mulc()
483 const Pointer &Result = S.Stk.peek<Pointer>(); in Divc()
1074 const Pointer &P = S.Stk.peek<Pointer>(); in CMP3()
1151 S.Stk.push<T>(S.Stk.peek<T>()); in Dup()
1212 const Pointer &Obj = S.Stk.peek<Pointer>(); in GetField()
1227 const Pointer &Obj = S.Stk.peek<Pointer>(); in SetField()
1334 const T Value = S.Stk.peek<T>(); in InitGlobalTemp()
1355 const Pointer &P = S.Stk.peek<Pointer>(); in InitGlobalTempComp()
1421 const Pointer &Field = S.Stk.peek<Pointer>().atField(I); in InitField()
1432 const Pointer &Field = S.Stk.peek<Pointer>().atField(F->Offset); in InitBitField()
[all …]
H A DInterpStack.h68 template <typename T> T &peek() const { in peek() function
76 template <typename T> T &peek(size_t Offset) const { in peek() function
/freebsd/contrib/llvm-project/lld/ELF/
H A DScriptParser.cpp228 while (!atEOF() && !errorCount() && peek() != "}") { in readVersionScriptCommand()
711 return StringSwitch<SortSectionPolicy>(peek()) in peekSortKind()
742 while (!errorCount() && peek() != ")") { in readInputSectionsList()
752 StringRef s = peek(); in readInputSectionsList()
886 StringRef value = peek(); in readSectionDirective()
922 if (readSectionDirective(cmd, peek())) in readSectionAddressType()
932 StringRef tok = peek(); in readSectionAddressType()
974 if (peek() != ":") in readOutputSectionDescription()
1009 if (peek() != "(") in readOutputSectionDescription()
1010 setError("( expected, but got " + peek()); in readOutputSectionDescription()
[all …]
H A DScriptLexer.h28 StringRef peek();
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DCommentParser.cpp72 char peek() const { in peek() function in clang::comments::TextTokenRetokenizer
96 const char C = peek(); in lexTemplate()
148 if (isWhitespace(peek())) in consumeWhitespace()
193 const char C = peek(); in lexType()
259 WordText.push_back(peek()); in lexParHeading()
294 const char C = peek(); in lexWord()
328 const char C = peek(); in lexDelimitedSeq()
337 C = peek(); in lexDelimitedSeq()
/freebsd/crypto/openssl/doc/man3/
H A DBIO_s_datagram.pod197 If B<num> is nonzero, enables peek mode; otherwise, disables peek mode. Where
198 peek mode is enabled, calls to L<BIO_read(3)> read datagrams from the underlying
199 network socket in peek mode, meaning that a future call to L<BIO_read(3)> will
200 yield the same datagram until peek mode is disabled.
/freebsd/tests/sys/netlink/
H A Dnetlink_socket.c146 ATF_TC_WITHOUT_HEAD(peek);
147 ATF_TC_BODY(peek, tc) in ATF_TC_BODY() argument
336 ATF_TP_ADD_TC(tp, peek); in ATF_TP_ADD_TCS()
/freebsd/sys/netlink/
H A Dnetlink_domain.c665 bool nonblock, trunc, peek; in nl_soreceive() local
682 peek = flags & MSG_PEEK; in nl_soreceive()
743 if (!peek) { in nl_soreceive()
750 if (peek) in nl_soreceive()
781 if (!peek) { in nl_soreceive()
800 if (!peek) in nl_soreceive()
/freebsd/crypto/openssl/ssl/record/
H A Drecord.h220 unsigned char *buf, size_t len, int peek,
240 unsigned char *buf, size_t len, int peek,
/freebsd/usr.bin/rpcgen/
H A Drpc_parse.c123 peek(&tok); in def_struct()
209 peek(&tok); in def_program()
466 peek(&tok); in get_prog_declaration()
590 peek(&tok); in unsigned_dec()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/Disassembler/
H A DX86Disassembler.cpp190 static bool peek(struct InternalInstruction *insn, uint8_t &byte) { in peek() function
239 if ((byte == 0xf2 || byte == 0xf3) && !peek(insn, nextByte)) { in readPrefixes()
266 if (peek(insn, nnextByte)) in readPrefixes()
279 if (peek(insn, nextByte)) in readPrefixes()
317 if (peek(insn, nextByte)) in readPrefixes()
345 if (peek(insn, byte2)) { in readPrefixes()
392 if (peek(insn, byte1)) { in readPrefixes()
423 if (peek(insn, byte1)) { in readPrefixes()
455 if (peek(insn, byte1)) { in readPrefixes()
494 if (peek(insn, byte1)) { in readPrefixes()
[all …]

123