Searched refs:siz (Results 1 - 25 of 61) sorted by relevance

123

/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/
H A Dnew.C8 void * operator new (size_t siz) throw (std::bad_alloc) { argument
10 s = siz;
12 s = (s != siz);
13 return malloc (siz);
/openbsd-current/lib/libc/string/
H A Dstrdup.c41 size_t siz; local
44 siz = strlen(str) + 1;
45 if ((copy = malloc(siz)) == NULL)
47 (void)memcpy(copy, str, siz);
/openbsd-current/gnu/llvm/llvm/lib/Support/
H A Dregstrlcpy.c24 * Copy src to string dst of size siz. At most siz-1 characters
25 * will be copied. Always NUL terminates (unless siz == 0).
26 * Returns strlen(src); if retval >= siz, truncation occurred.
29 llvm_strlcpy(char *dst, const char *src, size_t siz) argument
33 size_t n = siz;
45 if (siz != 0)
H A Dregex_impl.h102 size_t llvm_strlcpy(char *dst, const char *src, size_t siz);
/openbsd-current/lib/libc/stdlib/
H A Decvt.c35 size_t siz; local
47 siz = -ndigit + 1;
49 siz = ndigit + 1;
56 if ((rve = s = malloc(siz)) == NULL)
73 siz += *decpt;
74 if ((s = malloc(siz)) == NULL) {
78 (void) strlcpy(s, p, siz);
85 siz -= rve - s;
86 while (--siz)
/openbsd-current/regress/sys/uvm/vnode/
H A Dvnode.c106 ssize_t siz = sizeof(buf); local
109 n = snprintf(p, siz, "[%d] ", getpid());
110 if (n < 0 || n >= siz)
113 siz -= n;
116 n = vsnprintf(p, siz, fmt, ap);
118 if (n < 0 || n >= siz)
121 siz -= n;
/openbsd-current/bin/ps/
H A Dnlist.c76 size_t siz; local
104 siz = sizeof (fscale);
107 if (sysctl(mib, 2, &fscale, &siz, NULL, 0) == -1) {
111 siz = sizeof (physmem);
114 if (sysctl(mib, 2, &physmem, &siz, NULL, 0) == -1) {
120 siz = sizeof (ccpu);
123 if (sysctl(mib, 2, &ccpu, &siz, NULL, 0) == -1) {
127 siz = sizeof (maxslp);
130 if (sysctl(mib, 2, &maxslp, &siz, NULL, 0) == -1) {
/openbsd-current/gnu/llvm/llvm/tools/llvm-c-test/
H A Ddisassemble.c38 unsigned char *buf, int siz) {
50 while (pos < siz) {
51 size_t l = LLVMDisasmInstruction(D, buf + pos, siz - pos, 0, outline,
37 do_disassemble(const char *triple, const char *features, unsigned char *buf, int siz) argument
/openbsd-current/sys/ufs/ffs/
H A Dffs_subr.c100 int siz, pos; local
104 for (siz = 1; siz < fs->fs_frag; siz++) {
105 if ((inblk & (1 << (siz + (fs->fs_frag % NBBY)))) == 0)
107 field = around[siz];
108 subfield = inside[siz];
109 for (pos = siz; pos <= fs->fs_frag; pos++) {
111 fraglist[siz] += cnt;
112 pos += siz;
113 field <<= siz; local
114 subfield <<= siz; local
[all...]
/openbsd-current/regress/lib/libc/sys/
H A Dt_listen.c54 static const size_t siz = sizeof(struct sockaddr_in); local
79 ATF_REQUIRE(bind(fda, (struct sockaddr *)&sina, siz) == 0);
86 ATF_REQUIRE(connect(fdb, (struct sockaddr *)&sinb, siz) == 0);
93 (struct sockaddr *)&sinb, siz) == -1);
/openbsd-current/libexec/ld.so/
H A Dutil.h61 size_t _dl_strlcat(char *dst, const char *src, size_t siz);
113 _dl_strlcpy(char *dst, const char *src, size_t siz) argument
117 size_t n = siz;
129 if (siz != 0)
/openbsd-current/usr.bin/systat/
H A Dmalloc.c241 size_t siz; local
247 siz = sizeof(buf);
250 if (sysctl(mib, 3, buf, &siz, NULL, 0) == -1) {
257 siz = sizeof(struct kmembuckets);
268 if (sysctl(mib, 4, &buckets[num_buckets], &siz,
285 size_t siz; local
289 siz = sizeof(struct kmemstats);
303 if (sysctl(mib, 4, &ti->stats, &siz, NULL, 0) == -1)
/openbsd-current/bin/csh/
H A Dstr.c145 Strlcpy(Char *dst, const Char *src, size_t siz) argument
149 size_t n = siz;
161 if (siz != 0)
171 Strlcat(Char *dst, const Char *src, size_t siz) argument
175 size_t n = siz;
182 n = siz - dlen;
/openbsd-current/sys/kern/
H A Dkern_malloc.c596 int i, siz; local
608 for (siz = 0, i = MINBUCKET; i < MINBUCKET + 16; i++) {
609 snprintf(buckstring + siz,
610 sizeof buckstring - siz,
612 siz += strlen(buckstring + siz);
615 if (siz)
616 buckstring[siz - 1] = '\0';
653 for (siz = 0, i = 0; i < M_LAST; i++) {
654 snprintf(memall + siz,
[all...]
/openbsd-current/sys/nfs/
H A Dnfs_syscalls.c219 int siz; local
247 siz = NFS_MAXPACKET + sizeof (u_long);
249 siz = NFS_MAXPACKET;
251 error = soreserve(so, siz, siz);
325 int siz; local
427 siz = 0;
429 siz += m->m_len;
433 if (siz <= 0 || siz > NFS_MAXPACKE
[all...]
/openbsd-current/gnu/llvm/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_sync_test.cpp26 CHECK_EQ(mb->siz, 1 * sizeof(u64));
42 CHECK_EQ(mb1->siz, 1 * sizeof(u64));
44 CHECK_EQ(mb2->siz, 3 * sizeof(u64));
95 CHECK_EQ(mb1->siz, 3 * sizeof(u64));
98 CHECK_EQ(mb2->siz, 1 * sizeof(u64));
/openbsd-current/usr.bin/vmstat/
H A Dvmstat.c658 size_t siz; local
670 siz = sizeof(nintr);
671 if (sysctl(mib, 3, &nintr, &siz, NULL, 0) == -1) {
688 siz = sizeof(name);
689 if (sysctl(mib, 4, name, &siz, NULL, 0) == -1) {
698 siz = sizeof(vector);
699 if (sysctl(mib, 4, &vector, &siz, NULL, 0) == -1) {
710 siz = sizeof(cnt);
711 if (sysctl(mib, 4, &cnt, &siz, NULL, 0) == -1) {
741 size_t siz; local
[all...]
/openbsd-current/usr.sbin/radiusd/
H A Dradiusd_module.c299 int ret = 0, off = 0, len, siz; local
309 siz = MAX_IMSGSIZE - sizeof(ans);
310 if (len - off <= siz) {
312 siz = len - off;
316 if (siz > 0) {
318 iov[1].iov_len = siz;
321 (siz > 0)? 2 : 1);
324 off += siz;
/openbsd-current/gnu/usr.bin/perl/ext/SDBM_File/
H A Dpair.c216 seepair(char *pag, int n, const char *key, int siz) argument
223 if (siz == off - ino[i] &&
224 memEQ(key, pag + ino[i], siz))
/openbsd-current/lib/libc/gen/
H A Dvis.c177 * Strnvis will write no more than siz-1 bytes (and will NULL terminate).
197 strnvis(char *dst, const char *src, size_t siz, int flag) argument
206 for (start = dst, end = start + siz - 1; (c = *src) && dst < end; ) {
231 if (siz > 0)
/openbsd-current/sys/ddb/
H A Ddb_examine.c297 db_strlcpy(char *dst, const char *src, size_t siz) argument
301 size_t n = siz;
313 if (siz != 0)
/openbsd-current/sys/arch/amd64/stand/efiboot/
H A Defidev.c741 uint64_t siz; local
749 siz = (ed->blkio->Media->LastBlock + 1) *
751 siz /= 1024 * 1024;
752 if (siz < 10000)
755 siz /= 1024;
763 ed->blkio->Media->IoAlign, (unsigned)siz, sizu,
/openbsd-current/sys/net/
H A Dpf_ruleset.c61 #define rs_free(x, siz) free(x, M_PF, siz)
77 #define rs_free(x, siz) freezero(x, siz)
/openbsd-current/sbin/unwind/libunbound/
H A Dconfig.h1255 size_t strlcat(char *dst, const char *src, size_t siz);
1261 size_t strlcpy(char *dst, const char *src, size_t siz);
1363 size_t strlcpy(char *dst, const char *src, size_t siz);
1366 size_t strlcat(char *dst, const char *src, size_t siz);
/openbsd-current/usr.bin/top/
H A Dmachine.c357 static size_t siz = 1023; local
360 if (!s && !(s = malloc(siz)))
368 size_t space = siz;
373 siz *= 2;
374 if ((s = realloc(s, siz)) == NULL)

Completed in 345 milliseconds

123