Searched refs:libbuf (Results 1 – 8 of 8) sorted by relevance
/external/toybox/lib/ |
D | xwrap.c | 566 len = readlinkat(dirfd, new->str, libbuf, sizeof(libbuf)); in xabspath() 590 libbuf[len] = 0; in xabspath() 591 if (*libbuf == '/') { in xabspath() 600 tail = splitpath(libbuf, &new); in xabspath() 810 if (bytes<0 || len>sizeof(libbuf)) len = sizeof(libbuf); in sendfile_len() 812 len = xread(in, libbuf, len); in sendfile_len() 814 xwrite(out, libbuf, len); in sendfile_len() 837 memset(libbuf, 0, sizeof(libbuf)); in xsendfile_pad() 839 int i = len>sizeof(libbuf) ? sizeof(libbuf) : len; in xsendfile_pad() 841 xwrite(out, libbuf, i); in xsendfile_pad() [all …]
|
D | net.c | 105 int len = read(pollfds[i].fd, libbuf, sizeof(libbuf)); in pollinate() 107 else xwrite(i ? out2 : out1, libbuf, len); in pollinate() 131 inet_ntop(sa->sa_family, addr, libbuf, sizeof(libbuf)); in ntop() 133 return libbuf; in ntop()
|
D | tty.c | 134 sprintf(libbuf, "/proc/self/fd/%d", fd); in xset_terminal() 135 libbuf[readlink0(libbuf, libbuf, sizeof(libbuf))] = 0; in xset_terminal() 136 perror_exit("tcsetattr %s", libbuf); in xset_terminal()
|
D | lib.c | 154 int try = offset>sizeof(libbuf) ? sizeof(libbuf) : offset, or; in lskip() 156 or = readall(fd, libbuf, try); in lskip() 1094 sprintf(libbuf, "/proc/%u/comm", u); in names_to_pid() 1095 len = sizeof(libbuf); in names_to_pid() 1096 if (!(comm = readfileat(AT_FDCWD, libbuf, libbuf, &len)) || !len) in names_to_pid() 1098 if (libbuf[len-1] == '\n') libbuf[--len] = 0; in names_to_pid() 1122 sprintf(cmd = libbuf+16, "/proc/%u/cmdline", u); in names_to_pid() 1123 len = sizeof(libbuf)-17; in names_to_pid() 1197 char *out = libbuf; in show_uuid() 1203 return libbuf; in show_uuid()
|
D | dirtree.c | 41 if (0>(linklen = readlinkat(fd, name, libbuf, 4095))) goto error; in dirtree_add_node() 42 libbuf[linklen++]=0; in dirtree_add_node() 52 if (linklen) dt->symlink = memcpy(len+(char *)dt, libbuf, linklen); in dirtree_add_node()
|
D | password.c | 27 xgetrandom(libbuf, ((len*6)+7)/8, 0); in get_salt() 33 bits = ((libbuf[i]+(libbuf[i+1]<<8)) >> (bitpos&7)) & 0x3f; in get_salt()
|
/external/toybox/ |
D | main.c | 31 char toybuf[4096], libbuf[4096]; variable 191 if (0<readlink(toys.argv[1], libbuf, sizeof(libbuf))) in toybox_main() 192 toy_exec_which(toy_find(basename(libbuf)), toys.argv); in toybox_main()
|
D | toys.h | 119 extern char toybuf[4096], libbuf[4096];
|