Searched defs:buf (Results 1 - 25 of 4640) sorted by relevance

1234567891011>>

/freebsd-head/crypto/heimdal/lib/roken/
H A Dxfree.c39 rk_xfree (void *buf) argument
41 free(buf);
H A Dlstat.c39 lstat(const char *path, struct stat *buf) argument
41 return stat(path, buf);
/freebsd-head/contrib/sendmail/libsm/
H A Dstrerror.c50 static char buf[64]; local
56 (void) sm_snprintf(buf, sizeof(buf), "Error %d", err);
57 return buf;
H A Dt-strio.c21 char buf[20]; local
26 (void) memset(buf, '.', 20);
27 sm_strio_init(&f, buf, 10);
31 SM_TEST(strcmp(buf, r) == 0);
H A Derrstring.c279 static char buf[30]; local
281 (void) sm_snprintf(buf, sizeof buf, "Error %d", errnum);
282 return buf;
/freebsd-head/crypto/openssh/regress/unittests/conversion/
H A Dtests.c26 char buf[1024]; local
43 snprintf(buf, sizeof buf, "%llu", (unsigned long long)LONG_MAX + 1);
44 ASSERT_LONG_EQ(convtime(buf), -1);
47 snprintf(buf, sizeof buf, "%lluM", (unsigned long long)LONG_MAX/60 + 1);
48 ASSERT_LONG_EQ(convtime(buf), -1);
/freebsd-head/contrib/mandoc/
H A Dtest-strlcat.c6 char buf[3] = "a"; local
7 return ! (strlcat(buf, "b", sizeof(buf)) == 2 &&
8 buf[0] == 'a' && buf[1] == 'b' && buf[2] == '\0');
H A Dtest-strlcpy.c6 char buf[2] = ""; local
7 return ! (strlcpy(buf, "a", sizeof(buf)) == 1 &&
8 buf[0] == 'a' && buf[1] == '\0');
/freebsd-head/contrib/gcclibs/libiberty/
H A Dasprintf.c47 asprintf (char **buf, const char *fmt, ...) argument
51 VA_FIXEDARG (ap, char **, buf);
53 status = vasprintf (buf, fmt, ap);
/freebsd-head/contrib/dtc/libfdt/
H A Dfdt_empty_tree.c58 int fdt_create_empty_tree(void *buf, int bufsize) argument
62 err = fdt_create(buf, bufsize);
66 err = fdt_finish_reservemap(buf);
70 err = fdt_begin_node(buf, "");
74 err = fdt_end_node(buf);
78 err = fdt_finish(buf);
82 return fdt_open_into(buf, buf, bufsize);
/freebsd-head/contrib/binutils/libiberty/
H A Dasprintf.c47 asprintf (char **buf, const char *fmt, ...) argument
51 VA_FIXEDARG (ap, char **, buf);
53 status = vasprintf (buf, fmt, ap);
/freebsd-head/crypto/heimdal/appl/rcp/
H A Dextern.h39 char *buf; member in struct:__anon4423
/freebsd-head/lib/libmd/
H A Drmddriver.c29 char buf[2*20 + 1]; local
32 string, RIPEMD160_Data(string, strlen(string), buf));
/freebsd-head/tools/regression/ccd/layout/
H A Da.c4 static uint32_t buf[512/4]; variable
10 buf[0] = u++;
12 if (512 != write(1, buf, sizeof buf))
H A Db.c6 static uint32_t buf[512/4]; variable
13 if (512 != read(0, buf, sizeof buf))
16 printf("%u %u\n", u++, buf[0]);
/freebsd-head/contrib/ldns/compat/
H A Dctime_r.c9 char *ctime_r(const time_t *timep, char *buf) argument
13 if(buf && result)
14 strcpy(buf, result);
/freebsd-head/contrib/opie/libopie/
H A Drandomchallenge.c42 char buf[OPIE_SEED_MAX+1]; local
44 buf[0] = 0;
45 if (opienewseed(buf))
46 strcpy(buf, "ke4452");
49 (rand() % 499) + 1, buf);
/freebsd-head/contrib/sendmail/libsmutil/
H A Dsnprintf.c38 static char buf[MAXSHORTSTR + 1]; local
49 (void) sm_strlcpy(buf, s, m + 1);
50 return buf;
52 (void) sm_strlcpy(buf, s, m - 2);
53 (void) sm_strlcat(buf, "...", sizeof buf);
54 return buf;
57 (void) sm_strlcpy(buf, s, m + 1);
58 (void) sm_strlcat2(buf, "...", s + l - m, sizeof buf);
[all...]
/freebsd-head/sys/libkern/
H A Dexplicit_bzero.c19 __explicit_bzero_hook(void *buf, size_t len) argument
24 explicit_bzero(void *buf, size_t len) argument
26 memset(buf, 0, len);
27 __explicit_bzero_hook(buf, len);
H A Dinet_ntoa.c39 inet_ntoa_r(struct in_addr ina, char *buf) argument
43 sprintf(buf, "%d.%d.%d.%d",
48 return buf;
/freebsd-head/lib/libc/sys/
H A Dread.c45 read(int fd, void *buf, size_t nbytes) argument
49 __libc_interposing[INTERPOS_read])(fd, buf, nbytes));
H A Dwrite.c45 write(int fd, const void *buf, size_t nbytes) argument
49 __libc_interposing[INTERPOS_write])(fd, buf, nbytes));
/freebsd-head/contrib/ntp/libntp/
H A Drefnumtoa.c17 char *buf; local
23 LIB_GETBUF(buf);
28 snprintf(buf, LIB_BUFLENGTH, "%s(%lu)",
31 snprintf(buf, LIB_BUFLENGTH, "REFCLK(%lu,%lu)",
35 return buf;
/freebsd-head/lib/libc/tests/locale/
H A Dmblen_test.c49 char buf[MB_LEN_MAX + 1]; local
61 memset(buf, 0xcc, sizeof(buf));
62 buf[0] = '\0';
63 ATF_REQUIRE(mblen(buf, 1) == 0);
66 buf[0] = 'A';
67 ATF_REQUIRE(mblen(buf, 1) == 1);
70 buf[0] = '\0';
71 ATF_REQUIRE(mblen(buf, 0) == -1);
85 memset(buf,
[all...]
/freebsd-head/contrib/tcpdump/
H A Dmachdep.c66 static int buf[2] = { SSIN_UACPROC, UAC_SIGBUS }; local
68 if (setsysinfo(SSI_NVPAIRS, (caddr_t)buf, 1, 0, 0) < 0) {

Completed in 228 milliseconds

1234567891011>>