Mercurial > hg > toybox
comparison lib/lib.h @ 1276:d48bdc1cb017 draft
Switch human_readable() to just outputing decimal kilo/mega/gigabytes, make du use it, move it from lib/pending.c to lib.c.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 06 May 2014 06:31:28 -0500 |
parents | 63db77909fc8 |
children | 114ec0ab161c |
comparison
equal
deleted
inserted
replaced
1275:6f18a0845db3 | 1276:d48bdc1cb017 |
---|---|
151 void delete_tempfile(int fdin, int fdout, char **tempname); | 151 void delete_tempfile(int fdin, int fdout, char **tempname); |
152 void replace_tempfile(int fdin, int fdout, char **tempname); | 152 void replace_tempfile(int fdin, int fdout, char **tempname); |
153 void crc_init(unsigned int *crc_table, int little_endian); | 153 void crc_init(unsigned int *crc_table, int little_endian); |
154 int terminal_size(unsigned *x, unsigned *y); | 154 int terminal_size(unsigned *x, unsigned *y); |
155 int yesno(char *prompt, int def); | 155 int yesno(char *prompt, int def); |
156 int human_readable(char *buf, unsigned long long num); | |
156 | 157 |
157 // net.c | 158 // net.c |
158 int xsocket(int domain, int type, int protocol); | 159 int xsocket(int domain, int type, int protocol); |
159 | 160 |
160 // getmountlist.c | 161 // getmountlist.c |