/openbsd/lib/libcurses/tinfo/ |
H A D | lib_tgoto.c | 79 size_t used = 0; in tgoto_internal() local 92 if ((used + need) > length) { in tgoto_internal() 93 length += (used + need); in tgoto_internal() 141 result[used++] = (char) *value++; in tgoto_internal() 144 result[used++] = *string; in tgoto_internal() 172 _nc_SPRINTF(result + used, _nc_SLIMIT(length - used) in tgoto_internal() 174 used += strlen(result + used); in tgoto_internal() 182 result[used++] = *string; in tgoto_internal() 188 _nc_STRCPY(result + used, BC, length - used); in tgoto_internal() 189 used += strlen(BC); in tgoto_internal() [all …]
|
/openbsd/usr.bin/dig/lib/isc/include/isc/ |
H A D | buffer.h | 156 unsigned int used; member 572 (_b)->used = 0; \ 582 (_b)->used = 0; \ 601 (_b)->used += (_n); \ 606 (_b)->used -= (_n); \ 615 (_b)->used = 0; \ 655 (_b)->used += (_length); \ 665 (_b)->used += (_length); \ 673 (_b)->used++; \ 682 (_b)->used += 2; \ [all …]
|
/openbsd/usr.bin/sndiod/ |
H A D | abuf.c | 38 log_putu(buf->used); in abuf_log() 49 buf->used = 0; in abuf_init() 57 if (buf->used > 0) { in abuf_done() 60 log_putu(buf->used); in abuf_done() 78 if (count > buf->used) in abuf_rgetblk() 79 count = buf->used; in abuf_rgetblk() 91 if (count < 0 || count > buf->used) { in abuf_rdiscard() 98 buf->used -= count; in abuf_rdiscard() 118 buf->used += count; in abuf_wcommit() 129 end = buf->start + buf->used; in abuf_wgetblk() [all …]
|
/openbsd/usr.bin/aucat/ |
H A D | abuf.c | 36 log_putu(buf->used); in abuf_log() 47 buf->used = 0; in abuf_init() 55 if (buf->used > 0) { in abuf_done() 58 log_putu(buf->used); in abuf_done() 76 if (count > buf->used) in abuf_rgetblk() 77 count = buf->used; in abuf_rgetblk() 89 if (count < 0 || count > buf->used) { in abuf_rdiscard() 96 buf->used -= count; in abuf_rdiscard() 116 buf->used += count; in abuf_wcommit() 127 end = buf->start + buf->used; in abuf_wgetblk() [all …]
|
/openbsd/sys/dev/ |
H A D | midivar.h | 40 unsigned start, used; member 44 #define MIDIBUF_END(buf) (((buf)->start + (buf)->used) & MIDIBUF_MASK) 45 #define MIDIBUF_USED(buf) ((buf)->used) 46 #define MIDIBUF_AVAIL(buf) (MIDIBUF_SIZE - (buf)->used) 47 #define MIDIBUF_ISFULL(buf) ((buf)->used >= MIDIBUF_SIZE) 48 #define MIDIBUF_ISEMPTY(buf) ((buf)->used == 0) 52 (buf)->used++; \ 58 (buf)->used--; \ 64 (buf)->used -= (count); \ 68 (buf)->start = (buf)->used = 0; \
|
/openbsd/gnu/usr.bin/perl/t/lib/warnings/ |
H A D | perl | 4 Name \"%s::%s\" used only once: possible typo 24 Name "main::z" used only once: possible typo at - line 5. 32 Name "main::x" used only once: possible typo at - line 3. 40 Name "main::x" used only once: possible typo at - line 3. 74 Name "main::z" used only once: possible typo at - line 6. 75 Name "main::x" used only once: possible typo at - line 4. 88 Name "main::x" used only once: possible typo at - line 3. 97 Name "main::y" used only once: possible typo at - line 6. 108 Name "main::ȥ" used only once: possible typo at - line 8. 118 Name "main::ᛪ" used only once: possible typo at - line 5. [all …]
|
/openbsd/lib/libc/gen/ |
H A D | setproctitle.c | 51 int used; in setproctitle() local 55 used = snprintf(buf, MAX_PROCTITLE, "%s: ", __progname); in setproctitle() 56 if (used >= MAX_PROCTITLE) in setproctitle() 57 used = MAX_PROCTITLE - 1; in setproctitle() 58 else if (used < 0) in setproctitle() 59 used = 0; in setproctitle() 60 (void)vsnprintf(buf + used, MAX_PROCTITLE - used, fmt, ap); in setproctitle()
|
/openbsd/gnu/gcc/gcc/config/score/ |
H A D | mul-div.S | 210 addi r0, -8 # pic used 211 .cpload r29 # pic used 245 .cprestore r0, 12 # pic used 246 addi r0, 8 # pic used 268 addi r0, -8 # pic used 269 .cpload r29 # pic used 281 .cprestore r0, 12 # pic used 282 addi r0, 8 # pic used 309 addi r0, -8 # pic used 310 .cpload r29 # pic used [all …]
|
/openbsd/bin/df/ |
H A D | df.c | 296 prthumanval(used * sfsp->f_bsize); in prthuman() 314 u_int64_t used, inodes; in prtstat() local 318 used = sfsp->f_blocks - sfsp->f_bfree; in prtstat() 319 availblks = sfsp->f_bavail + used; in prtstat() 321 prthuman(sfsp, used); in prtstat() 330 used = inodes - sfsp->f_ffree; in prtstat() 332 percent(used, inodes)); in prtstat() 376 percent(u_int64_t used, u_int64_t avail) in percent() argument 391 long long used, avail; in posixprint() local 407 used = sfsp->f_blocks - sfsp->f_bfree; in posixprint() [all …]
|
/openbsd/regress/usr.bin/openssl/options/ |
H A D | optionstest.c | 94 int used; member 186 .used = 4, 196 .used = 4, 206 .used = 5, 216 .used = 5, 226 .used = 4, 246 .used = 5, 266 .used = 5, 320 int used = 0; in do_options_test() local 358 if (ot->type == OPTIONS_TEST_ARGSUSED && used != ot->used) { in do_options_test() [all …]
|
/openbsd/usr.bin/dig/lib/isc/ |
H A D | buffer.c | 79 REQUIRE(b->used + n <= b->length); in isc__buffer_add() 90 REQUIRE(b->used >= n); in isc__buffer_subtract() 132 REQUIRE(b->current + n <= b->used); in isc__buffer_setactive() 152 REQUIRE(b->current + n <= b->used); in isc__buffer_forward() 177 b->used = length; in isc_buffer_compact() 200 REQUIRE(b->used + 1 <= b->length); in isc__buffer_putuint8() 227 REQUIRE(b->used + 2 <= b->length); in isc__buffer_putuint16() 256 REQUIRE(b->used + 4 <= b->length); in isc__buffer_putuint32() 266 REQUIRE(b->used + 6 <= b->length); in isc__buffer_putuint48() 299 b->used += l; in isc__buffer_putstr() [all …]
|
/openbsd/usr.bin/systat/ |
H A D | swap.c | 176 int d, used, xsize; in showswap() local 190 used = sep->se_inuse; in showswap() 193 print_fld_uint(FLD_SW_USED, used / d); in showswap() 194 print_fld_bar(FLD_SW_BAR, 100 * used / xsize); in showswap() 203 int d, i, avail, used, xsize, mfree; in showtotal() local 210 used = sep->se_inuse; in showtotal() 212 mfree += xsize - used; in showtotal() 214 used = avail - mfree; in showtotal() 218 print_fld_uint(FLD_SW_USED, used / d); in showtotal() 219 print_fld_bar(FLD_SW_BAR, 100 * used / avail); in showtotal()
|
/openbsd/regress/lib/libsndio/fd/ |
H A D | fd.c | 54 avail = BUF_LEN - buf->used; in buf_read() 72 buf->used += n; in buf_read() 85 while (buf->used) { in buf_write() 87 if (count > buf->used) in buf_write() 88 count = buf->used; in buf_write() 94 buf->used -= n; in buf_write() 134 buf->used += n; in buf_rec() 150 while (buf->used) { in buf_play() 152 if (count > buf->used) in buf_play() 153 count = buf->used; in buf_play() [all …]
|
/openbsd/lib/libedit/ |
H A D | chartype.c | 77 ssize_t used = 0; in ct_encode_string() local 88 used = conv->csize - (dst - conv->cbuff); in ct_encode_string() 89 if (used < 5) { in ct_encode_string() 90 used = dst - conv->cbuff; in ct_encode_string() 94 dst = conv->cbuff + used; in ct_encode_string() 96 used = ct_encode_char(dst, 5, *s); in ct_encode_string() 100 dst += used; in ct_encode_string() 211 ssize_t used = 0; in ct_visual_string() local 223 used = dst - buff; in ct_visual_string() 229 dst = buff + used; in ct_visual_string() [all …]
|
/openbsd/gnu/gcc/gcc/config/m32r/ |
H A D | initfini.c | 50 __attribute__ ((used, section (".ctors"))) 54 __attribute__ ((used, section (".dtors"))) 72 asm ("__do_global_dtors") __attribute__ ((used, section (".text"))); 126 __attribute__ ((used, section (".ctors"))) 130 __attribute__ ((used, section (".dtors"))) 137 asm ("__do_global_ctors") __attribute__ ((used, section (".text")));
|
/openbsd/lib/libcurses/base/ |
H A D | safe_sprintf.c | 85 int used = 0; in _nc_printf_length() local 146 used = 'i'; in _nc_printf_length() 154 used = 'f'; in _nc_printf_length() 158 used = 'i'; in _nc_printf_length() 172 used = 'p'; in _nc_printf_length() 176 used = 'p'; in _nc_printf_length() 180 used = 0; in _nc_printf_length() 189 used = 'p'; in _nc_printf_length() 193 switch (used) { in _nc_printf_length() 268 int used; in NCURSES_SP_NAME() [all …]
|
/openbsd/lib/libc/hash/ |
H A D | siphash.c | 76 size_t left, used; in SipHash_Update() local 81 used = ctx->bytes % sizeof(ctx->buf); in SipHash_Update() 84 if (used > 0) { in SipHash_Update() 85 left = sizeof(ctx->buf) - used; in SipHash_Update() 88 memcpy(&ctx->buf[used], ptr, left); in SipHash_Update() 93 memcpy(&ctx->buf[used], ptr, len); in SipHash_Update() 124 size_t left, used; in SipHash_End() local 126 used = ctx->bytes % sizeof(ctx->buf); in SipHash_End() 127 left = sizeof(ctx->buf) - used; in SipHash_End() 128 memset(&ctx->buf[used], 0, left - 1); in SipHash_End()
|
/openbsd/sys/crypto/ |
H A D | siphash.c | 75 size_t left, used; in SipHash_Update() local 80 used = ctx->bytes % sizeof(ctx->buf); in SipHash_Update() 83 if (used > 0) { in SipHash_Update() 84 left = sizeof(ctx->buf) - used; in SipHash_Update() 87 memcpy(&ctx->buf[used], ptr, left); in SipHash_Update() 92 memcpy(&ctx->buf[used], ptr, len); in SipHash_Update() 121 size_t left, used; in SipHash_End() local 123 used = ctx->bytes % sizeof(ctx->buf); in SipHash_End() 124 left = sizeof(ctx->buf) - used; in SipHash_End() 125 memset(&ctx->buf[used], 0, left - 1); in SipHash_End()
|
/openbsd/regress/sbin/pfctl/ |
H A D | pfail57.ok | 1 stdin:2: af-to cannot be used together with route-to, reply-to, dup-to 2 stdin:3: af-to cannot be used together with route-to, reply-to, dup-to 3 stdin:4: af-to cannot be used together with route-to, reply-to, dup-to 4 stdin:6: af-to cannot be used together with route-to, reply-to, dup-to 5 stdin:7: af-to cannot be used together with route-to, reply-to, dup-to 6 stdin:8: af-to cannot be used together with route-to, reply-to, dup-to
|
/openbsd/gnu/usr.bin/perl/dist/Devel-PPPort/parts/inc/ |
H A D | strlfuncs | 25 Size_t used, length, copy; 27 used = strlen(dst); 29 if (size > 0 && used < size - 1) { 30 copy = (length >= size - used) ? size - used - 1 : length; 31 memcpy(dst + used, src, copy); 32 dst[used + copy] = '\0'; 34 return used + length;
|
/openbsd/usr.bin/finger/ |
H A D | finger.c | 200 int dolocal, *used; in userlist() local 202 if (!(used = calloc((u_int)argc, (u_int)sizeof(int)))) in userlist() 215 used[i] = -1; in userlist() 233 if (used[i] >= 0 && (pw = getpwnam(argv[i]))) { in userlist() 235 used[i] = 1; in userlist() 239 if (used[i] >= 0 && in userlist() 243 used[i] = 1; in userlist() 249 if (!used[i]) in userlist() 259 free(used); in userlist()
|
/openbsd/lib/libz/ |
H A D | inftrees.c | 40 unsigned used; /* code entries in table used */ in inflate_table() local 198 used = 1U << root; /* use root table entries */ in inflate_table() 199 mask = used - 1; /* mask for comparing low */ in inflate_table() 202 if ((type == LENS && used > ENOUGH_LENS) || in inflate_table() 203 (type == DISTS && used > ENOUGH_DISTS)) in inflate_table() 270 used += 1U << curr; in inflate_table() 271 if ((type == LENS && used > ENOUGH_LENS) || in inflate_table() 272 (type == DISTS && used > ENOUGH_DISTS)) in inflate_table() 294 *table += used; in inflate_table()
|
/openbsd/sys/lib/libz/ |
H A D | inftrees.c | 40 unsigned used; /* code entries in table used */ in inflate_table() local 198 used = 1U << root; /* use root table entries */ in inflate_table() 199 mask = used - 1; /* mask for comparing low */ in inflate_table() 202 if ((type == LENS && used > ENOUGH_LENS) || in inflate_table() 203 (type == DISTS && used > ENOUGH_DISTS)) in inflate_table() 270 used += 1U << curr; in inflate_table() 271 if ((type == LENS && used > ENOUGH_LENS) || in inflate_table() 272 (type == DISTS && used > ENOUGH_DISTS)) in inflate_table() 294 *table += used; in inflate_table()
|
/openbsd/gnu/usr.bin/perl/cpan/Compress-Raw-Zlib/zlib-src/ |
H A D | inftrees.c | 47 unsigned used; /* code entries in table used */ in inflate_table() local 205 used = 1U << root; /* use root table entries */ in inflate_table() 206 mask = used - 1; /* mask for comparing low */ in inflate_table() 209 if ((type == LENS && used > ENOUGH_LENS) || in inflate_table() 210 (type == DISTS && used > ENOUGH_DISTS)) in inflate_table() 277 used += 1U << curr; in inflate_table() 278 if ((type == LENS && used > ENOUGH_LENS) || in inflate_table() 279 (type == DISTS && used > ENOUGH_DISTS)) in inflate_table() 301 *table += used; in inflate_table()
|
/openbsd/gnu/usr.sbin/mkhybrid/src/ |
H A D | files.c | 39 int used; member 107 f->used = 0; in FDECL2() 128 f->used = 0; in FDECL2() 138 f->used = 0; in FDECL2() 269 *newpath = tmp->adds[tmp->used].path; in FDECL3() 270 tmp->used++; in FDECL3() 272 return (tmp->adds[tmp->used-1].name); in FDECL3() 308 if (tmp->used >= tmp->add_count) return; in FDECL2() 310 *newpath = tmp->adds[tmp->used].path; in FDECL2() 311 tmp->used++; in FDECL2() [all …]
|