Home
last modified time | relevance | path

Searched refs:libbuf (Results 1 – 8 of 8) sorted by relevance

/external/toybox/lib/
Dxwrap.c566 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 …]
Dnet.c105 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()
Dtty.c134 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()
Dlib.c154 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()
Ddirtree.c41 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()
Dpassword.c27 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/
Dmain.c31 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()
Dtoys.h119 extern char toybuf[4096], libbuf[4096];