/misc/ |
A D | tst-fd_to_filename.c | 72 char buf[16]; in check_open() local 73 TEST_COMPARE_BLOB ("1", 1, buf, read (pipes[0], buf, sizeof (buf))); in check_open() 76 TEST_COMPARE_BLOB ("2", 1, buf, read (read_alias, buf, sizeof (buf))); in check_open() 79 TEST_COMPARE_BLOB ("3", 1, buf, read (read_alias, buf, sizeof (buf))); in check_open() 82 TEST_COMPARE_BLOB ("4", 1, buf, read (pipes[0], buf, sizeof (buf))); in check_open()
|
A D | efgcvt_r-template.c | 38 char *buf, size_t len) in __FCVT_R() argument 44 if (buf == NULL) in __FCVT_R() 87 while (i < n && isdigit (buf[i])) in __FCVT_R() 99 while (i < n && !isdigit (buf[i])); in __FCVT_R() 106 while (i < n && buf[i] == '0') in __FCVT_R() 113 memmove (&buf[MAX (*decpt, 0)], &buf[i], n - i); in __FCVT_R() 123 buf[n++] = '0'; in __FCVT_R() 124 buf[n] = '\0'; in __FCVT_R() 133 char *buf, size_t len) in __ECVT_R() argument 187 buf[0] = '\0'; in __ECVT_R() [all …]
|
A D | tst-error1.c | 15 char buf[20000]; in do_test() local 18 memcpy (&buf[i * (sizeof (str) - 1)], str, sizeof (str)); in do_test() 27 error (0, 0, buf); in do_test() 28 error (0, 0, buf); in do_test()
|
A D | getpass.c | 51 static char *buf; in getpass() local 96 nread = __getline (&buf, &bufsize, in); in getpass() 97 if (buf != NULL) in getpass() 100 buf[0] = '\0'; in getpass() 101 else if (buf[nread - 1] == '\n') in getpass() 104 buf[nread - 1] = '\0'; in getpass() 123 return buf; in getpass()
|
A D | tst-preadvwritev2-common.c | 48 char buf[256]; in do_test_with_invalid_fd() local 49 struct iovec iov = { buf, sizeof buf }; in do_test_with_invalid_fd() 72 char buf[256]; in do_test_with_invalid_iov() local 75 iov.iov_base = buf; in do_test_with_invalid_iov() 110 char buf[32]; in do_test_with_invalid_flags() local 111 const struct iovec vec = { .iov_base = buf, .iov_len = sizeof (buf) }; in do_test_with_invalid_flags()
|
A D | tst-mntent.c | 37 char buf[1024]; in do_test() local 46 if (fgets (buf, sizeof (buf), fp) == NULL) in do_test() 52 if (strcmp (buf, "/dev/hda1 /some\\040dir ext2 defaults 1 2\n") != 0) in do_test()
|
A D | syslog.c | 80 void *buf; member 92 free (clarg->buf); in cancel_handler() 146 char *buf = 0; in __vsyslog_internal() local 163 clarg.buf = NULL; in __vsyslog_internal() 177 f = __open_memstream (&buf, &bufsize); in __vsyslog_internal() 196 buf = failbuf; in __vsyslog_internal() 236 clarg.buf = buf; in __vsyslog_internal() 244 v->iov_base = buf + msgoff; in __vsyslog_internal() 247 if (buf[bufsize - 1] != '\n') in __vsyslog_internal() 301 if (buf != failbuf) in __vsyslog_internal() [all …]
|
A D | tst-mntent-escape.c | 55 char buf[128]; in do_test() local 57 FILE *fp = fmemopen (buf, sizeof (buf), "w+"); in do_test() 78 TEST_COMPARE_STRING (buf, tests[i].expected); in do_test()
|
A D | efgcvt-template.c | 71 __GCVT (FLOAT_TYPE value, int ndigit, char *buf) in __GCVT() argument 73 SPRINTF (buf, "%.*" FLOAT_FMT_FLAG "g", MIN (ndigit, NDIGIT_MAX), value); in __GCVT() 74 return buf; in __GCVT()
|
A D | tst-efgcvt-template.c | 168 char buf [1024]; in test_r() local 174 buf, sizeof (buf)); in test_r() 178 || strcmp (buf, tests[no].result) != 0) in test_r() 182 buf, decpt, sign, res); in test_r() 192 char buf [1024]; in special() local 208 res = ECVT_R (123.456, 10, &decpt, &sign, buf, 1); in special() 214 res = FCVT_R (123.456, 10, &decpt, &sign, buf, 1); in special()
|
A D | mntent_r.c | 73 decode_name (char *buf) in weak_alias() 75 char *rp = buf; in weak_alias() 76 char *wp = buf; in weak_alias() 113 return buf; in weak_alias()
|
A D | tst-syscalls.c | 150 char buf[2]; in do_test() local 151 array.ptr = buf; in do_test()
|