/openbsd/sys/lib/libsa/ |
H A D | snprintf.c | 45 static char *sbuf, *sbuf_end; variable 50 if (sbuf < sbuf_end) in sputchar() 51 *sbuf = c; in sputchar() 52 sbuf++; in sputchar() 60 sbuf = buf; in snprintf() 61 sbuf_end = sbuf + len; in snprintf() 66 if (sbuf < sbuf_end) in snprintf() 67 *sbuf = '\0'; in snprintf() 71 return sbuf - buf; in snprintf()
|
/openbsd/sys/dev/pci/drm/ |
H A D | drm_format_helper.c | 55 const void *sbuf; in __drm_fb_xfrm() local 76 sbuf = vaddr; in __drm_fb_xfrm() 100 const void *sbuf; in __drm_fb_xfrm_toio() local 120 sbuf = vaddr; in __drm_fb_xfrm_toio() 212 const u16 *sbuf16 = sbuf; in drm_fb_swab16_line() 222 const u32 *sbuf32 = sbuf; in drm_fb_swab32_line() 278 const __le32 *sbuf32 = sbuf; in drm_fb_xrgb8888_to_rgb332_line() 326 const __le32 *sbuf32 = sbuf; in drm_fb_xrgb8888_to_rgb565_line() 345 const __le32 *sbuf32 = sbuf; in drm_fb_xrgb8888_to_rgb565_swab_line() 402 const __le32 *sbuf32 = sbuf; in drm_fb_xrgb8888_to_xrgb1555_line() [all …]
|
/openbsd/games/phantasia/ |
H A D | gamesupport.c | 556 struct scoreboard sbuf; /* for reading entries */ in scorelist() local 562 sbuf.sb_name, sbuf.sb_login, sbuf.sb_level, sbuf.sb_type); in scorelist() 710 if ((!found) || Player.p_level > sbuf.sb_level) in enterscore() 713 strlcpy(sbuf.sb_login, Player.p_login, in enterscore() 714 sizeof sbuf.sb_login); in enterscore() 715 strlcpy(sbuf.sb_name, Player.p_name, in enterscore() 716 sizeof sbuf.sb_name); in enterscore() 717 sbuf.sb_level = Player.p_level; in enterscore() 718 strlcpy(sbuf.sb_type, descrtype(&Player, TRUE), in enterscore() 719 sizeof sbuf.sb_type); in enterscore() [all …]
|
/openbsd/games/sail/ |
H A D | lo_main.c | 56 char sbuf[20+LOGIN_NAME_MAX]; in lo_main() local 79 (void) snprintf(sbuf, sizeof sbuf, "%10.10s (%s)", in lo_main() 82 (void) snprintf(sbuf, sizeof sbuf, "%20.20s", log.l_name); in lo_main() 85 title[n++], sbuf, ship->shipname, log.l_netpoints, in lo_main()
|
/openbsd/sys/dev/pci/ |
H A D | if_ipw.c | 516 m_freem(sbuf->m); in ipw_dma_alloc() 540 sbd->priv = sbuf; in ipw_dma_alloc() 886 m = sbuf->m; in ipw_data_intr() 887 sbuf->m = mnew; in ipw_data_intr() 947 sbuf = sbd->priv; in ipw_rx_intr() 1003 sbuf = sbd->priv; in ipw_release_sbd() 1007 m_freem(sbuf->m); in ipw_release_sbd() 1246 sbuf->m = m; in ipw_tx_start() 1247 sbuf->ni = ni; in ipw_tx_start() 1257 sbd->priv = sbuf; in ipw_tx_start() [all …]
|
/openbsd/usr.bin/calendar/ |
H A D | calendar.c | 153 struct stat sbuf; in main() local 176 if (stat(calendarFile, &sbuf) != 0) { in main() 183 if (stat(calendarNoMail, &sbuf) == 0 || in main() 184 stat(calendarFile, &sbuf) != 0) in main() 201 stat(calendarFile, &sbuf) != 0 || in main() 203 stat(calendarNoMail, &sbuf) == 0 || in main() 204 stat(calendarFile, &sbuf) != 0) in main()
|
/openbsd/usr.sbin/radiusd/ |
H A D | util.c | 84 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; in addrport_tostring() local 87 if (getnameinfo(sa, salen, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), in addrport_tostring() 93 ret = snprintf(buf, lbuf, "[%s]:%s", hbuf, sbuf); in addrport_tostring() 97 ret = snprintf(buf, lbuf, "%s:%s", hbuf, sbuf); in addrport_tostring()
|
/openbsd/usr.sbin/kvm_mkdb/ |
H A D | nlist.c | 69 Elf_Sym sbuf; in __elf_knlist() local 173 if (fread((char *)&sbuf, sizeof(sbuf), 1, fp) != 1) { in __elf_knlist() 181 if (!sbuf.st_name) in __elf_knlist() 184 nbuf.n_value = sbuf.st_value; in __elf_knlist() 187 switch(ELF_ST_TYPE(sbuf.st_info)) { in __elf_knlist() 189 switch (sbuf.st_shndx) { in __elf_knlist() 214 if (ELF_ST_BIND(sbuf.st_info) == STB_LOCAL) in __elf_knlist() 218 strlcpy(buf + 1, strtab + sbuf.st_name, sizeof buf - 1); in __elf_knlist()
|
/openbsd/usr.bin/which/ |
H A D | which.c | 99 struct stat sbuf; in findprog() local 104 if ((stat(prog, &sbuf) == 0) && S_ISREG(sbuf.st_mode) && in findprog() 132 if ((stat(filename, &sbuf) == 0) && S_ISREG(sbuf.st_mode) && in findprog()
|
/openbsd/usr.bin/rdist/ |
H A D | common.c | 674 char sbuf[BUFSIZ], buf[BUFSIZ]; in runcommand() local 698 s = sbuf; in runcommand() 705 if (s < (char *) &sbuf[sizeof(sbuf)-1]) in runcommand() 712 if (s == &sbuf[2]) { in runcommand() 717 (void) xwrite(rem_w, sbuf, s - sbuf); in runcommand() 720 message(MT_INFO, "%s", sbuf+1); in runcommand() 722 s = &sbuf[1]; in runcommand() 725 if (s > (char *) &sbuf[1]) { in runcommand() 728 (void) xwrite(rem_w, sbuf, s - sbuf); in runcommand() 731 message(MT_INFO, "%s", sbuf+1); in runcommand()
|
/openbsd/bin/ed/ |
H A D | io.c | 72 static char *sbuf; /* file i/o buffer */ variable 91 if (put_sbuf_line(sbuf) == NULL) { in read_stream() 129 REALLOC(sbuf, sbufsz, i + 1, ERR); in get_stream_line() 130 if (!(sbuf[i++] = c)) in get_stream_line() 133 REALLOC(sbuf, sbufsz, i + 2, ERR); in get_stream_line() 135 sbuf[i++] = c; in get_stream_line() 141 sbuf[i++] = '\n'; in get_stream_line() 144 sbuf[i] = '\0'; in get_stream_line()
|
/openbsd/usr.bin/dig/lib/dns/rdata/generic/ |
H A D | loc_29.c | 39 char sbuf[sizeof("90000000m")]; in totext_loc() local 61 snprintf(sbuf, sizeof(sbuf), in totext_loc() 64 snprintf(sbuf, sizeof(sbuf), in totext_loc() 138 sbuf, hbuf, vbuf); in totext_loc()
|
/openbsd/usr.sbin/npppd/common/ |
H A D | net_utils.c | 145 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; in addrport_tostring() local 147 if (getnameinfo(sa, salen, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), in addrport_tostring() 156 strlcat(buf, sbuf, lbuf); in addrport_tostring() 161 strlcat(buf, sbuf, lbuf); in addrport_tostring()
|
/openbsd/usr.bin/nm/ |
H A D | elf.c | 428 Elf_Sym sbuf; in elf_symloadx() local 459 *pnrawnames = symsize / sizeof(sbuf); in elf_symloadx() 478 if (fread(&sbuf, 1, sizeof(sbuf), in elf_symloadx() 479 fp) != sizeof(sbuf)) { in elf_symloadx() 491 elf_fix_sym(eh, &sbuf); in elf_symloadx() 493 if (!sbuf.st_name || in elf_symloadx() 494 sbuf.st_name > *pstabsize) in elf_symloadx() 497 elf2nlist(&sbuf, eh, shdr, shstr, np); in elf_symloadx() 498 np->nl.n_value = sbuf.st_value; in elf_symloadx() 499 np->nl.n_un.n_strx = sbuf.st_name; in elf_symloadx() [all …]
|
/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/ext/ |
H A D | stdio_filebuf_2.cc | 42 stdio_filebuf<char> sbuf(file, ios_base::out, 1); in test01() local 43 sbuf.sputc('T'); in test01() 44 sbuf.sputc('S'); in test01()
|
/openbsd/lib/libkeynote/ |
H A D | signature.c | 870 if (sbuf == NULL) in keynote_sign_assertion() 878 free(sbuf); in keynote_sign_assertion() 892 if (sbuf == NULL) in keynote_sign_assertion() 899 sbuf, &slen, rsa) <= 0) in keynote_sign_assertion() 901 free(sbuf); in keynote_sign_assertion() 934 if (sbuf == NULL) in keynote_sign_assertion() 947 free(sbuf); in keynote_sign_assertion() 966 free(sbuf); in keynote_sign_assertion() 976 free(sbuf); in keynote_sign_assertion() 981 free(sbuf); in keynote_sign_assertion() [all …]
|
/openbsd/gnu/llvm/lldb/packages/Python/lldbsuite/test/ |
H A D | lldbtest.py | 542 print(*args, file=sbuf, **kwargs) 967 file=sbuf) 1010 file=sbuf) 1051 with recording(self, False) as sbuf: 1054 print("ERROR", file=sbuf) 1059 with recording(self, False) as sbuf: 1067 with recording(self, False) as sbuf: 1070 print("FAIL", file=sbuf) 1084 file=sbuf) 1107 file=sbuf) [all …]
|
/openbsd/games/hangman/ |
H A D | setup.c | 48 static struct stat sbuf; in setup() local 79 fstat(fileno(Dict), &sbuf); in setup() 80 Dict_size = sbuf.st_size; in setup()
|
/openbsd/usr.sbin/unbound/dnstap/ |
H A D | dnstap.c | 70 ProtobufCBufferSimple sbuf; in dt_pack() local 72 memset(&sbuf, 0, sizeof(sbuf)); in dt_pack() 73 sbuf.base.append = protobuf_c_buffer_simple_append; in dt_pack() 74 sbuf.len = 0; in dt_pack() 75 sbuf.alloced = DNSTAP_INITIAL_BUF_SIZE; in dt_pack() 76 sbuf.data = malloc(sbuf.alloced); in dt_pack() 77 if (sbuf.data == NULL) in dt_pack() 79 sbuf.must_free_data = 1; in dt_pack() 81 *sz = dnstap__dnstap__pack_to_buffer(d, (ProtobufCBuffer *) &sbuf); in dt_pack() 82 if (sbuf.data == NULL) in dt_pack() [all …]
|
/openbsd/lib/libc/net/ |
H A D | ruserok.c | 87 struct stat sbuf; in iruserok_sa() local 134 if (lstat(pbuf, &sbuf) == -1) in iruserok_sa() 136 else if (!S_ISREG(sbuf.st_mode)) in iruserok_sa() 138 else if (fstat(fileno(hostf), &sbuf) == -1) in iruserok_sa() 140 else if (sbuf.st_uid && sbuf.st_uid != pwd->pw_uid) in iruserok_sa() 142 else if (sbuf.st_mode & (S_IWGRP|S_IWOTH)) in iruserok_sa()
|
/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/27_io/istream_extractor_arith/ |
H A D | 03.cc | 48 std::stringbuf sbuf; in test03() local 49 std::istream istr(&sbuf); in test03() 50 std::ostream ostr(&sbuf); in test03()
|
/openbsd/gnu/usr.bin/gcc/gcc/ |
H A D | gmon.c | 64 static char *sbuf; variable 117 sbuf = buffer; 164 fprintf( stderr , "[mcleanup] sbuf 0x%x ssiz %d\n" , sbuf , ssiz ); in _mcleanup() 166 write( fd , sbuf , ssiz ); in _mcleanup() 317 profil(sbuf + sizeof(struct phdr), ssiz - sizeof(struct phdr),
|
/openbsd/gnu/gcc/gcc/config/i386/ |
H A D | gmon-sol2.c | 113 static char *sbuf; variable 167 sbuf = buffer; in monstartup() 215 fprintf( stderr , "[mcleanup] sbuf 0x%x ssiz %d\n" , sbuf , ssiz ); in _mcleanup() 218 write( fd , sbuf , ssiz ); in _mcleanup() 390 profil((unsigned short *)(sbuf + sizeof(struct phdr)), in moncontrol()
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_libc_test.cpp | 236 void test_internal_strlcpy(char *dbuf, const char *sbuf) { in test_internal_strlcpy() argument 238 retval = internal_strlcpy(dbuf, sbuf, kStrlcpyBufSize); in test_internal_strlcpy() 239 EXPECT_EQ(internal_strncmp(dbuf, sbuf, kStrlcpyBufSize - 1), 0); in test_internal_strlcpy() 241 std::min(internal_strlen(sbuf), (uptr)(kStrlcpyBufSize - 1))); in test_internal_strlcpy() 242 EXPECT_EQ(retval, internal_strlen(sbuf)); in test_internal_strlcpy() 246 if (internal_strlen(sbuf) > maxlen) { in test_internal_strlcpy() 247 retval = internal_strlcpy(dbuf, sbuf, maxlen); in test_internal_strlcpy() 248 EXPECT_EQ(internal_strncmp(dbuf, sbuf, maxlen - 1), 0); in test_internal_strlcpy()
|
/openbsd/lib/libc/gen/ |
H A D | fstab.c | 184 struct stat sbuf; in setfsent() local 191 if (stat(_PATH_FSTAB, &sbuf) != 0) in setfsent() 193 if ((sbuf.st_size == 0) || ((sbuf.st_mode & S_IFMT) != S_IFREG)) { in setfsent()
|