Re: [Toybox] ps and top (and Android)

2016-04-24 Thread Isaac Dunham
untu > install, no one cares". (not foolproof, because what's useful on a > developer's workstation and what's useful on Android aren't > necessarily the same, but it's a reasonable place to start.) > When I bothered with things like that (for example, to give Firefox a faster cold start, back when I still thought Firefox worth using), I just cheated and did cat ... >/dev/null. What I've heard gave me the impression that readahead is most relevant for perfomance on hard drives (spinning rust), but it *might* pertain to slow solid state things like SD cards. Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] non-GPLv3 mtools?

2016-03-14 Thread Isaac Dunham
u need before you put things on the > roadmap, but afaik there's no non-GPLv3 alternative here, which seems > like a good niche for someone to fill... > I know Rob's mentioned wanting to do that... Ah, here: https://www.mail-archive.com/toybox@lists.landley

Re: [Toybox] [PATCH] ls new option : b

2016-03-09 Thread Isaac Dunham
Hello, I see a few problems, which can be summed up as follows: -the help is clunky and misplaced -the patch introduces a format-string vulnerability -the feature is not actually implemented; it skips rather than escaping On Wed, Mar 09, 2016 at 02:51:26PM +0530, Sameer Pradhan wrote: ---

Re: [Toybox] [PATCH] Distinguish 32- and 64-bit variants in file(1) for x32.

2016-02-28 Thread Isaac Dunham
chive old archive directory {char,block} special empty cannot open HTH, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

[Toybox] [PATCH 1/2] pending/file: add cpio, tar, zip formats.

2016-02-28 Thread Isaac Dunham
int magic needs to be declared at the top level, so the cpio branch can use it. It would be possible to rename it and use the same variable for this, chunk_length (png), and ver (zip). --- toys/pending/file.c | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-)

Re: [Toybox] [PATCH] Distinguish 32- and 64-bit variants in file(1) for x32.

2016-02-21 Thread Isaac Dunham
> > Elliott was suggesting that the elf-em.h constants might be good enough, > > but that says 386 not 80386, and PPC instead of Powerpc... > > > > Seriously, standards would be nice! > > Yes, wouldn't they? :) Speaking of those, I've spotted a number of finer details

[Toybox] [PATCH] hexedit: document keys to use it.

2016-02-18 Thread Isaac Dunham
Yes, they seem obvious...unless you don't know them. --- toys/other/hexedit.c | 8 1 file changed, 8 insertions(+) diff --git a/toys/other/hexedit.c b/toys/other/hexedit.c index ff13b51..f6d5723 100644 --- a/toys/other/hexedit.c +++ b/toys/other/hexedit.c @@ -15,6 +15,14 @@ config

Re: [Toybox] testing a single command?

2016-02-18 Thread Isaac Dunham
On Thu, Feb 18, 2016 at 08:09:08PM -0800, enh wrote: > On Thu, Feb 18, 2016 at 8:06 PM, Isaac Dunham <ibid...@gmail.com> wrote: > > On Wed, Feb 17, 2016 at 10:43:37PM -0800, enh wrote: > >> what's the easiest way to test a single command? i always end up > > > &g

Re: [Toybox] testing a single command?

2016-02-18 Thread Isaac Dunham
ake help" once you've told me :-) As far as I know, there's no interface to use it from make at present. HTH, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

[Toybox] [PATCH 2/2] pending/file: add cpio, tar, zip formats.

2016-02-17 Thread Isaac Dunham
--- toys/pending/file.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/toys/pending/file.c b/toys/pending/file.c index 1d09471..4d5d14c 100644 --- a/toys/pending/file.c +++ b/toys/pending/file.c @@ -166,9 +166,32 @@ static void

Re: [Toybox] [PATCH] Implement file(1).

2016-02-13 Thread Isaac Dunham
bin/perl -w' Tar magic is at offset 257: 'ustar\0' - "POSIX tar archive" 'ustar\040\040\0' - "GNU tar archive" AFAICT, zip usually starts with 'PK\003\004', 'PK\005\006' (empty), or 'PK\007\008' (spanned archive). HTH, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] id vs whoami opinions sought

2015-12-04 Thread Isaac Dunham
POSIX, and generally available. 'logname' is the POSIX equivalent to 'whoami', but it's not widely available. whoami, logname, and id -un are all equivalent in output: the plain username of the current user, as per /etc/passwd. HTH, Isaac ___ Toybox mailin

Re: [Toybox] ps -t is cheating.

2015-10-19 Thread Isaac Dunham
BE CLEVER IN WAYS YOU DON'T EXPLAIN TO > YOUR USERS IN THE MAN PAGE. Right special case "-t number" to be pts/ > instead of tty, accept pts/ to _not_ mean implicit tty prefix... accept the following: * filenames relative to /dev * filenames relative to /dev/pts * fallback to "/de

Re: [Toybox] pull: fix modprobe, login, switch_root, improve init, reboot

2015-10-02 Thread Isaac Dunham
On Fri, Oct 02, 2015 at 06:26:09AM -0500, Rob Landley wrote: > On 10/01/2015 10:22 PM, Rich Felker wrote: > > On Thu, Oct 01, 2015 at 07:34:25PM -0700, Isaac Dunham wrote: > >> Maybe (1) try to fork(); (2) if we succeed, xexec() modprobe; (3) do the > >> whole mknod/c

Re: [Toybox] pull: fix modprobe, login, switch_root, improve init, reboot

2015-10-01 Thread Isaac Dunham
On Thu, Oct 01, 2015 at 04:42:34AM -0500, Rob Landley wrote: > Still going through old posts, I'm up to: > > On 08/09/2015 12:24 AM, Isaac Dunham wrote: > >>> > > If hard-coding "modprobe -bq $MODALIAS" int mdev is desireable, I can > >>> > >

Re: [Toybox] init patch a month or two back?

2015-09-30 Thread Isaac Dunham
On Wed, Sep 30, 2015 at 04:12:00AM -0500, Rob Landley wrote: > I'm going through my todo heap and trying to make sure I got all the > patches from the previous couple months, and I hit: > > commit 991b570a02ce8754bba921e46d953858ed28268c > Author: Isaac Dunham <ibid...@gmail.

[Toybox] [PATCH] reboot, init: use SIGTERM instead of SIGINT

2015-08-19 Thread Isaac Dunham
I discovered that the reason SIGINT causes a reboot on sysvinit is that it's how the kernel signals that ctrl-alt-delete has been pressed; thus, setting it as the signal for reboot prevents ctrlaltdel scripts from working. SIGTERM is what Busybox uses, so we might as well be compatible. ---

Re: [Toybox] [PATCH] Another Android roadmap update.

2015-08-16 Thread Isaac Dunham
packages have been fixed to work properly with musl since then. LFS 6.8 is basically a snapshot of Linux as it was before musl became useful, back when Android support was frequently missing...you get the picture. HTH, Isaac Dunham ___ Toybox mailing list

Re: [Toybox] pull: fix modprobe, login, switch_root, improve init, reboot

2015-08-08 Thread Isaac Dunham
On Sat, Aug 08, 2015 at 05:44:07PM -0500, Rob Landley wrote: On 08/06/2015 12:04 AM, Isaac Dunham wrote: On Wed, Aug 05, 2015 at 08:03:01PM -0700, Isaac Dunham wrote: The following changes since commit ea75e752f930df7b740a773294b997f46927c716: Factor out xconnect(), plus some other

Re: [Toybox] reboot: signal init, add -f to bypass

2015-08-05 Thread Isaac Dunham
On Wed, Aug 05, 2015 at 11:25:45PM -0500, Rob Landley wrote: On 08/05/2015 10:16 PM, Isaac Dunham wrote: On Fri, Jul 31, 2015 at 01:14:55PM -0700, Isaac Dunham wrote: On Sat, Mar 28, 2015 at 08:02:04PM +, Isaac Dunham wrote: reboot: signal init, add -f option to call reboot(); init

[Toybox] pull: fix modprobe, login, switch_root, improve init, reboot

2015-08-05 Thread Isaac Dunham
to 991b570a02ce8754bba921e46d953858ed28268c: Increase compatability of reboot and init (2015-08-05 18:04:34 -0700) Alistair Strachan (1): Fix switch_root implementation. Isaac Dunham (6): login: execl() requires a path, not a file

Re: [Toybox] pull: fix modprobe, login, switch_root, improve init, reboot

2015-08-05 Thread Isaac Dunham
On Wed, Aug 05, 2015 at 08:03:01PM -0700, Isaac Dunham wrote: The following changes since commit ea75e752f930df7b740a773294b997f46927c716: Factor out xconnect(), plus some other small cleanups to telnet.c. (2015-08-03 14:34:01 -0500) are available in the git repository at: git

Re: [Toybox] reboot: signal init, add -f to bypass

2015-07-31 Thread Isaac Dunham
On Sat, Mar 28, 2015 at 08:02:04PM +, Isaac Dunham wrote: reboot: signal init, add -f option to call reboot(); init: use SIGINT, use xsignal() Now that oneit supports the same signals as our sysv-init for shutdown, make reboot et al. signal pid 1 with the appropriate signal

[Toybox] [PATCH] mdev: properly translate path to devnode, cleanup

2015-07-30 Thread Isaac Dunham
'!' replaces '/' in the sysfs paths of older drivers, so properly reverse that to get correct paths. While we're here, reduce the duplication of initialization. While this is enough for some drivers, it won't get 'input/' stuff in the right folder. --- It may seem hard to test this, but you just

Re: [Toybox] Apache TLS implementation?

2015-07-20 Thread Isaac Dunham
On Sun, Jul 19, 2015 at 11:47:40PM -0500, Rob Landley wrote: On 07/19/2015 07:13 PM, Isaac Dunham wrote: On Sun, Jul 19, 2015 at 06:52:36PM -0500, Rob Landley wrote: I haven't had a chance to follow up on Isaac's wget yet, but has anybody poked at https://lwn.net/Articles/649764/ yet

Re: [Toybox] Apache TLS implementation?

2015-07-20 Thread Isaac Dunham
. Further googling found http://www.freshports.org/security/axTLS/ which claims it's 3BSD, but I can't say my impression of the project was easy to use, well supported by an exisiting community... The original site stated that it was 3-clause BSD also. Said original site is dead. Thanks, Isaac Dunham

Re: [Toybox] Working on a [currently lame] downloader

2015-07-14 Thread Isaac Dunham
On Tue, Jul 14, 2015 at 12:21:28AM -0500, Rob Landley wrote: On 07/13/2015 01:18 AM, Isaac Dunham wrote: Hello, I've been working on an HTTP(S) downloader (what wget does, but currently completely incompatible with everything) for toybox. Currently it works to some degree, so I thought

[Toybox] Working on a [currently lame] downloader

2015-07-13 Thread Isaac Dunham
. Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] [Nommu] Week ending June 27ish.

2015-06-29 Thread Isaac Dunham
pdksh in Aboriginal might be sensible; but before that, it's too big a project for a temporary gain. Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] Is't there any problem?

2015-06-23 Thread Isaac Dunham
the term also applies to a hole full of gravel). But I live on the other side of the country (Northern California). Thanks, Isaac ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

[Toybox] Comment on the 'Error: TTY could not be found'

2015-06-07 Thread Isaac Dunham
, followed by the tty 'ime'. To specify multiple fields with the procps version of ps, you need to either separate them with commas (ps -o c,time) or quote them (ps -o 'c time'). Of course, by now Rob's probably figured all that out. Thanks, Isaac Dunham

Re: [Toybox] [PATCH] Fix switch_root implementation.

2015-05-06 Thread Isaac Dunham
On Tue, May 05, 2015 at 03:15:38PM -0700, Alistair Strachan wrote: Add the MS_MOVE of cwd to / and chroot into it. We don't need to chdir after the chroot because xchroot already does this for us. It seems there was nothing updating the root filesystem at all. I have some comments and

Re: [Toybox] make menuconfig

2015-05-02 Thread Isaac Dunham
), mmap(2)) fail with the error EBADF. Curiously, fstat() has *recently* (Linux 3.6) been added to the list of allowed syscalls accepting such an FD. (Yes, the xattr stuff seems to be utterly nuts.) Thanks, Isaac Dunham ___ Toybox mailing list

Re: [Toybox] default SIGPIPE handler that calls _exit(0)?

2015-04-27 Thread Isaac Dunham
tempfiles on exit) - xexit() is the recommended path for toybox. Using a fixed return value is wrong; for an example, grep returns 0 for line matched, 1 for no match, and 1 for errors. Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net

[Toybox] [PATCH] mdev: implement basic hotplug support (and probe for partitions).

2015-04-18 Thread Isaac Dunham
structured to be cumbersome and hideous. Even if it were license compatible (which it isn't), I wouldn't want to copy it. Thanks, Isaac Dunham From 39baa24fb84a03e76f3c278108e002deec495d7d Mon Sep 17 00:00:00 2001 From: Isaac Dunham ibid...@gmail.com Date: Sat, 18 Apr 2015 18:25:06 + Subject

Re: [Toybox] [PATCH] setenforce takes exactly one argument

2015-04-09 Thread Isaac Dunham
git rm as my configuration tool, but i assume that would be far more painful on your end!). I know the Linux kernel lets you use multiple defconfigs; I wonder if it would work to save .config as scripts/android.config and then load that. HTH, Isaac Dunham

Re: [Toybox] Fix paths to avoid confusing update-alternatives

2015-04-04 Thread Isaac Dunham
On Sat, Apr 04, 2015 at 07:08:47PM +, Isaac Dunham wrote: Looking over landley.net/hg/toybox, I noticed this commit: changeset 1775:57f2a26fa92c To ensure that toybox can be installed alongside busybox without confusing update-alternatives, the paths of the links installed by toybox

[Toybox] reboot: signal init, add -f to bypass

2015-03-28 Thread Isaac Dunham
to not use SIGPWR for new code. Thanks, Isaac Dunham diff --git a/toys/other/reboot.c b/toys/other/reboot.c index 8baa4d8..8c1052a 100644 --- a/toys/other/reboot.c +++ b/toys/other/reboot.c @@ -2,7 +2,7 @@ * * Copyright 2013 Elie De Brauwer eliedebrau...@gmail.com -USE_REBOOT(NEWTOY(reboot, n

Re: [Toybox] [PATCH 3/3] Add support for -o x-mount.mkdir[=0755]

2015-03-28 Thread Isaac Dunham
On Sat, Mar 28, 2015 at 08:38:14PM +, Isaac Dunham wrote: Add support for -o x-mount.mkdir[=0755] This is a feature of recent versions of util-linux, which allows creating a missing directory on mount. Probably it should actually be integrated into mount_filesystem() and made to check

[Toybox] [PATCH 3/3] Add support for -o x-mount.mkdir[=0755]

2015-03-28 Thread Isaac Dunham
Add support for -o x-mount.mkdir[=0755] This is a feature of recent versions of util-linux, which allows creating a missing directory on mount. Probably it should actually be integrated into mount_filesystem() and made to check the existence/type of the source and mountpoint. Creating a chmod

[Toybox] [PATCH 2/3] mount: ignore -o x-*

2015-03-28 Thread Isaac Dunham
mount: ignore -o x-* According to the manpage for util-linux mount, this is a per-device comment for programs that handle fstab; leaving it in causes failed mounts. util-linux mount also supports x-mount.mkdir[=mode], which allows creating the mountpoint at mount (a possibly useful construction

[Toybox] notes on mdev (avoiding code duplication in hotplug/-s/-i)

2015-03-21 Thread Isaac Dunham
simplify replacing getenv, and avoid a lot of bloat. HTH, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] [PATCH] head -X

2015-03-17 Thread Isaac Dunham
On Mon, Mar 16, 2015 at 09:16:00PM -0700, enh wrote: Allow head -X as well as head -n X. diff --git a/toys/posix/head.c b/toys/posix/head.c index e8517d4..608b93a 100644 --- a/toys/posix/head.c +++ b/toys/posix/head.c @@ -4,7 +4,7 @@ * * See

Re: [Toybox] I aten't dead.

2015-02-26 Thread Isaac Dunham
On Thu, Feb 26, 2015 at 06:26:19AM -0600, Rob Landley wrote: On 02/25/2015 10:27 AM, Isaac Dunham wrote: On Wed, Feb 25, 2015 at 03:19:23AM -0600, Rob Landley wrote: There's a marvelous book called the unix philosophy by mike gancarz that talks about output intended for humans vs output

Re: [Toybox] I aten't dead.

2015-02-26 Thread Isaac Dunham
On Thu, Feb 26, 2015 at 03:19:28PM -0600, Rob Landley wrote: On 02/26/2015 12:01 PM, Isaac Dunham wrote: On Thu, Feb 26, 2015 at 06:26:19AM -0600, Rob Landley wrote: On 02/25/2015 10:27 AM, Isaac Dunham wrote: On Wed, Feb 25, 2015 at 03:19:23AM -0600, Rob Landley wrote: There's

Re: [Toybox] I aten't dead.

2015-02-25 Thread Isaac Dunham
=ext2 I'm trying to parse this so I can get links in /dev/disk/by-label/ that match what udev produces; this is needed for mount by label to work. And the ID_FS_LABEL_ENC field of -o udev matches what I'm looking for exactly. Thanks, Isaac Dunham

Re: [Toybox] [PATCH] unshare: add -r option to map euid/egid to 0/0

2015-02-14 Thread Isaac Dunham
will generate a bunch of warnings since FLAG_* get defined twice (to the same values): #define FOR_nsenter #define FOR_unshare However, I'm not certain how else to do this cleanly. Thanks, Isaac Dunham diff --git a/toys/other/nsenter.c b/toys/other/nsenter.c index 8f548bf..4e8e739 100644 --- a/toys

Re: [Toybox] Regarding bash2.05...

2015-02-05 Thread Isaac Dunham
On Thu, Feb 05, 2015 at 01:25:41AM -0600, Rob Landley wrote: On 02/03/2015 06:09 PM, Isaac Dunham wrote: Hello, I noticed a comment in landley.net/notes.html about missing stuff in bash 2.05b (set -o pipefail, jobs). My local build of bash 2.05b, configured with ./configure --disable

Re: [Toybox] su patch

2015-02-03 Thread Isaac Dunham
. Is there a reason for assuming that md5crypt is worse? bcrypt if the system supports it and otherwise sha256, sha512, or the enhanced des support some systems have. These could be tried as sequential fallbacks. That sounds like it would be ideal. Thanks, Isaac Dunham

[Toybox] Networking stuff...

2015-01-25 Thread Isaac Dunham
(3.13), the guys who originlly did *tables came out with nftables; nftables unifies all the *tables stuff into one codebase. HTH, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] make

2015-01-23 Thread Isaac Dunham
; zmake and rmake are remote build tools. HTH, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] service

2015-01-02 Thread Isaac Dunham
(sysv-ish/openrc) init scripts, # service sshd start is equal to: # /etc/init.d/sshd start In other words, a basic implementation that wouldn't work with upstart/systemd is as follows: #!/bin/sh /etc/init.d/$1 $2 No. It's toys/other/oneit.c (in the toybox tree). HTH, Isaac Dunham

Re: [Toybox] service

2015-01-02 Thread Isaac Dunham
On Fri, Jan 02, 2015 at 01:20:11PM +1000, David Seikel wrote: On Thu, 1 Jan 2015 10:22:46 -0800 Isaac Dunham ibid...@gmail.com wrote: On Thu, Jan 01, 2015 at 09:35:31AM -0500, stephen Turner wrote: while doing some searches on scripting i was reminded about service and noticed

Re: [Toybox] service

2015-01-01 Thread Isaac Dunham
, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] [PATCH] fix newline on stdin for

2014-12-30 Thread Isaac Dunham
for a chance to contribute. Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] [PATCH] add -r to unshare

2014-12-30 Thread Isaac Dunham
On Tue, Dec 30, 2014 at 03:20:50PM -0800, Andy Lutomirski wrote: On Mon, Dec 29, 2014 at 11:07 PM, Isaac Dunham ibid...@gmail.com wrote: unshare -r runs a command in a new PID namespace where the user is root. unshare -r COMMAND ... will run COMMAND ... in a new PID namespace that makes

[Toybox] [PATCH] unshare: add -r option to map euid/egid to 0/0

2014-12-30 Thread Isaac Dunham
unshare -r runs a command in a new PID namespace where the user is root. (In other words, uid:gid 0:0) geteuid()/getegid() will return (short)-1 if called after unshare(), notwithstanding the documentation. This is useful for making an archive that purports to belong to root, fooling programs

[Toybox] [PATCH] mix: fix help and loop

2014-12-29 Thread Isaac Dunham
In the channel selection loop, if (TT.chan) had been combined with a strcmp; the else conditionals were premised on if (TT.chan) alone. The help text had been only partially updated for a couple option changes. --- toys/other/mix.c | 12 +++- 1 file changed, 7 insertions(+), 5

Re: [Toybox] [PATCH] fix newline on stdin for

2014-12-29 Thread Isaac Dunham
://www.cs.princeton.edu/~bwk/btl.mirror/ And OpenBSD uses a patched version of it, which can be found on the usual dozen+ mirrors (under src/usr.bin/awk). Locally, I generally use github.com/iguleder/lok, which is OpenBSD awk ported to Linux. HTH, Isaac Dunham ___ Toybox

[Toybox] [PATCH] add -r to unshare

2014-12-29 Thread Isaac Dunham
strace. Thanks, Isaac Dunham diff --git a/toys/other/unshare.c b/toys/other/unshare.c index 68c1ebd..cce614b 100644 --- a/toys/other/unshare.c +++ b/toys/other/unshare.c @@ -2,14 +2,14 @@ * * Copyright 2011 Rob Landley r...@landley.net -USE_UNSHARE(NEWTOY(unshare, 1^imnpuU, TOYFLAG_USR

Re: [Toybox] [cleanup] mix.c

2014-12-27 Thread Isaac Dunham
: for c in `mix`; do mix -c $c; done (That corresponds to the default behavior of some command-line mixers.) Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] The ongoing sed saga...

2014-12-22 Thread Isaac Dunham
well.) Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] archivers, read-write loops

2014-12-17 Thread Isaac Dunham
On Tue, Dec 16, 2014 at 04:34:47PM -0600, Rob Landley wrote: On 12/15/2014 10:28 PM, Isaac Dunham wrote: These have subtle variations in what they do: cpio archive creation: write garbage and continue on short read Corrupts one file, but allows to continue: among other things

Re: [Toybox] why does blkid imply fstype?

2014-12-17 Thread Isaac Dunham
developer, and the base of the code was his clone of that command. I think fstype is automatically enabled because it barely makes a difference in size. Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net

Re: [Toybox] archivers, read-write loops

2014-12-17 Thread Isaac Dunham
On Wed, Dec 17, 2014 at 01:45:19PM -0600, Rob Landley wrote: On 12/17/2014 02:20 AM, Isaac Dunham wrote: On Tue, Dec 16, 2014 at 04:34:47PM -0600, Rob Landley wrote: tar copy_in_out(): die on short read, try to avoid but ignore short write (calls writeall()) It's in pending

[Toybox] archivers, read-write loops

2014-12-15 Thread Isaac Dunham
than refactoring xsendfile(). -extract: die on short read (corrupt file), die on short write (out of space). So I guess the sensible course is to write xcopyall() and make all the archivers use it where relevant. Thanks, Isaac Dunham ___ Toybox mailing

Re: [Toybox] Is binutils neccessary?

2014-12-11 Thread Isaac Dunham
a full-featured depmod, nm would be not much more work. A full POSIX ar (adequate for libraries) would also cover ranlib. strings is already done. size and strip are the main binutils tools in addition to those... HTH, Isaac Dunham ___ Toybox mailing

[Toybox] Working on nproc-do we check OMP_NUM_THREADS ?

2014-11-29 Thread Isaac Dunham
variable that OpenMP uses to check how many threads to start; it overrides a check for the number of CPUs in OpenMP-based software. Thanks, Isaac Dunham /* nproc.c - get number of cpus * * Written by Isaac Dunham, 2014 A.D. * * No standard. * Based on the behavior of GNU nproc, except

Re: [Toybox] Working on nproc-do we check OMP_NUM_THREADS ?

2014-11-29 Thread Isaac Dunham
On Sat, Nov 29, 2014 at 09:31:54PM -0600, Rob Landley wrote: On 11/29/14 19:52, Isaac Dunham wrote: Hello, I noticed that nproc was on the TODO list now and started writing it. I've gotten it *almost* ready, but there's one difference between current behavior and GNU nproc: GNU

Re: [Toybox] -h for human units?

2014-11-24 Thread Isaac Dunham
On Mon, Nov 24, 2014 at 08:57:39PM -0800, enh wrote: is anyone already working on -h (for dd, df, and so on)? du supports it (see human_readable()), and dd seems to use human units. df does not have -h, and I'd be surprised if someone were working on it. HTH, Isaac Dunham

Re: [Toybox] [PATCH] probe for utmpx, shadow/getspnam, forkpty

2014-10-31 Thread Isaac Dunham
On Fri, Oct 31, 2014 at 12:14:04AM -0700, Isaac Dunham wrote: Probe for utmpx support, shadow.h/getspnam(), and pty.h/forkpty(). Android does not provide any of these headers, so probe for them at compile time and select what to build based on presence. -- This addresses some

Re: [Toybox] [PATCH] probe for utmpx, shadow/getspnam, forkpty

2014-10-31 Thread Isaac Dunham
On Fri, Oct 31, 2014 at 12:06:14PM -0500, Rob Landley wrote: On 10/31/14 11:59, Isaac Dunham wrote: On Fri, Oct 31, 2014 at 12:14:04AM -0700, Isaac Dunham wrote: Probe for utmpx support, shadow.h/getspnam(), and pty.h/forkpty(). Android does not provide any of these headers, so probe

Re: [Toybox] big endian problems

2014-10-24 Thread Isaac Dunham
from? http://www.linux-mips.org/wiki/Highmem says it's basically that only 512MB are theoretically addresseable as lowmem, and some of that is reserved so only half can be used. HTH, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http

Re: [Toybox] ?from left field

2014-10-21 Thread Isaac Dunham
On Tue, Oct 21, 2014 at 09:06:03PM +1100, scsijon wrote: On 10/21/2014 02:52 PM, Isaac Dunham wrote: On Mon, Oct 20, 2014 at 11:47:32AM -0500, Rob Landley wrote: On 10/20/14 01:50, Isaac Dunham wrote: On Mon, Oct 20, 2014 at 01:17:44PM +1100, scsijon wrote: I was wondering if toybox 'could

Re: [Toybox] shell

2014-10-21 Thread Isaac Dunham
you have to compile in or is it also available (if available at all) in the binary 0.5? toysh is the shell; it's in toys/pending/sh.c, and can be invoked as toysh or sh. It is not built by default. It's *very* unfinished, but you can run commands in it. thanks Stephen Hope this helps, Isaac

Re: [Toybox] ?from left field

2014-10-20 Thread Isaac Dunham
On Mon, Oct 20, 2014 at 01:17:44PM +1100, scsijon wrote: I was wondering if toybox 'could / would be able to' have an auto tool built into it. I'm not a coder, so can't do it, but Along the line of: -- If toybox had the command 'siliswap' built into it, but it's inbuilt siliswap was a

Re: [Toybox] Question about ping.

2014-10-12 Thread Isaac Dunham
one later, so there's no rush on deciding... I'd suggest doing the new one, then adding optional support for the old one if requested. Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox

Re: [Toybox] [PATCH] acpi: change when to recurse

2014-10-06 Thread Isaac Dunham
On Mon, Oct 06, 2014 at 12:36:08AM -0500, Rob Landley wrote: On 10/05/14 23:13, Isaac Dunham wrote: On Sun, Oct 05, 2014 at 04:28:21PM -0500, Rob Landley wrote: On 10/04/14 15:52, Isaac Dunham wrote: acpi: never follow symlinks, always recurse in dirs. /sys/class contains several

Re: [Toybox] [PATCH] acpi: change when to recurse

2014-10-05 Thread Isaac Dunham
On Sun, Oct 05, 2014 at 04:28:21PM -0500, Rob Landley wrote: On 10/04/14 15:52, Isaac Dunham wrote: acpi: never follow symlinks, always recurse in dirs. /sys/class contains several directories, each containing symlinks to devices of a given type. The symlinks are where we want to end

[Toybox] [PATCH] acpi: change when to recurse

2014-10-04 Thread Isaac Dunham
/sda |grep Temperature # or (Hitachi-only, but no spin-up) hdparm -H /dev/sda Then also Thinkpads have multiple sensors, which are apparently named (in sysfs) temp*_input The official acpi misses both the Thinkpad sensors and HDD sensors. Thanks, Isaac Dunham diff --git a/toys/other/acpi.c b

Re: [Toybox] [Aboriginal] aboriginal linux

2014-09-28 Thread Isaac Dunham
workaround in single.sh? Anyhow, an alternate proposal for how to handle rm -rf: Try deleting files, and handle errors by the chmod path if errno == EPERM. Is there a reason not to do this? Thanks, Isaac Dunham ___ Toybox mailing list Toybox

Re: [Toybox] rm -rf doesn't chmod high enough

2014-09-23 Thread Isaac Dunham
On Mon, Sep 22, 2014 at 08:19:21AM -0500, Rob Landley wrote: On 09/20/14 08:22, Felix Janda wrote: Isaac Dunham wrote: [..] A trickier bug is that rm -r dir will skip dir, saying rm: dir: is a directory I guess the fix involves rm -r calling rmdir instead of unlink. unlinkat

[Toybox] question re:crontab, possible modprobe bug

2014-08-25 Thread Isaac Dunham
someone working on crontab already, or may I write one? Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

[Toybox] [PATCH] getty should disable CLOEXEC

2014-08-22 Thread Isaac Dunham
getty needs fd 0 to stay open. The O_CLOEXEC reversal resulted in login failing. Thanks, Isaac Dunham diff --git a/toys/pending/getty.c b/toys/pending/getty.c index 0cfd750..c737628 100644 --- a/toys/pending/getty.c +++ b/toys/pending/getty.c @@ -128,7 +128,7 @@ static void open_tty(void

Re: [Toybox] New toy: simple mixer

2014-08-02 Thread Isaac Dunham
android kernels, though it would be possible to enable it. (3: what is this for, anyhow?: testing sound on Aboriginal builds. 4: why on earth is it using OSS3?: I think it's because using the ALSA kernel interface sucketh...) HTH, Isaac Dunham ___ Toybox

[Toybox] new gcc screwing up single-toy builds

2014-07-23 Thread Isaac Dunham
before entering command_main(). Regular builds with at least two commands enabled do not display this issue. I have not tested enabling one command and TOYBOX_CONTAINER. Thank you, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http

Re: [Toybox] [toybox] Add nbd-client. (8525d78)

2014-07-17 Thread Isaac Dunham
, since there is still the daemon() function in libc... Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] [toybox] Add nbd-client. (8525d78)

2014-07-17 Thread Isaac Dunham
On Thu, Jul 17, 2014 at 10:56:25PM -0500, Rob Landley wrote: On 07/18/14 13:45, Isaac Dunham wrote: On Thu, Jul 17, 2014 at 08:24:07AM -0500, Rob Landley wrote: On 07/17/14 08:12, Rob Landley wrote: On 07/17/14 00:58, technosaurus wrote: I think this is the same as daemonize

Re: [Toybox] [CLEANUP] mkpasswd.c

2014-06-26 Thread Isaac Dunham
On Thu, Jun 26, 2014 at 07:18:31AM -0500, Rob Landley wrote: On 06/26/14 00:20, Isaac Dunham wrote: On Wed, Jun 25, 2014 at 11:02:03PM -0500, Rob Landley wrote: We don't need -m help when we can put the list of supported types in the help text itself. (Unless this is used programmatically

Re: [Toybox] [CLEANUP] mkpasswd.c

2014-06-25 Thread Isaac Dunham
for a salt; traditionally it's terminated with a '$', but musl at least does not require this. Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] Patches for toybox-0.4.8

2014-06-24 Thread Isaac Dunham
On Tue, Jun 24, 2014 at 04:54:57PM +0200, luck...@vp.pl wrote: W dniu 23.06.2014 23:45, Isaac Dunham pisze: On Mon, Jun 23, 2014 at 05:35:55PM +0200, luck...@vp.pl wrote: I created own build system for small linux distributions. I had to write two patches for your toybox-0.4.8. First patch

[Toybox] [PATCH] pending/useradd: unbreak build

2014-06-10 Thread Isaac Dunham
When useradd started using xfork(), the conditional in else if (pid 0) became unnecessary, since else means pid is nonzero and xfork makes it non-negative. However, the if was not deleted. -- Thanks, Isaac Dunham diff --git a/toys/pending/useradd.c b/toys/pending/useradd.c index 99e2530

Re: [Toybox] compiling toybox

2014-06-09 Thread Isaac Dunham
a signal (default: TERM) to all processes with the given n ^ HTH, Isaac ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] About 2/3 of mount checked in.

2014-06-03 Thread Isaac Dunham
cost.) Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] [PATCH] make partprobe use more toybox functions

2014-06-01 Thread Isaac Dunham
all tests for du or fail 3. The tests for link and du are attached. HTH, Isaac Dunham Rob Thanks, Isaac Dunham #!/bin/bash [ -f testing.sh ] . testing.sh #testing name command result infile stdin # we only test with -k since getting POSIX version is variable # POSIXLY_CORRECT

[Toybox] Patch queue...

2014-05-24 Thread Isaac Dunham
was fun: I'm thinking I'd like to write ar (tar would be another alternative, but ISTR Rob had said something about having a start on the design, etc.) Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net

Re: [Toybox] [New toy] partprobe

2014-05-23 Thread Isaac Dunham
On Fri, May 23, 2014 at 10:06:24AM -0700, Isaac Dunham wrote: On Fri, May 23, 2014 at 01:53:31PM +0200, Bertold Van den Bergh wrote: Hello, I have attached a patch adding a program that allows re-reading the partition table. This is often used on embedded systems booting from SD/USB

[Toybox] [PATCH] lspci: fix output of device info with new pci.ids

2014-05-22 Thread Isaac Dunham
(toybuf, 0, 4096); is needed because it initializes vname/devname to an empty state; removing that line would result in garbage text output/repetition of the wrong vendor and device information. HTH, Isaac Dunham diff --git a/toys/pending/lspci.c b/toys/pending/lspci.c index c61f582..f07f8d2

[Toybox] [PATCH] lspci -i (was Re: [CLEANUP] lspci first pass)

2014-05-20 Thread Isaac Dunham
. Surprisingly enough, emknUSE_LSPCI_TEXT(@i:) works without any mucking around. Thanks, Isaac Dunham diff --git a/toys/pending/lspci.c b/toys/pending/lspci.c index b557e45..c61f582 100644 --- a/toys/pending/lspci.c +++ b/toys/pending/lspci.c @@ -1,7 +1,7 @@ /* * lspci - written by Isaac Dunham

Re: [Toybox] [CLEANUP] lspci first pass

2014-05-19 Thread Isaac Dunham
-byte numbers, but some have 4...) Thanks, Isaac Dunham ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

  1   2   >