Re: [Toybox] Does anybody use ipcmk?

2018-07-02 Thread enh
On Mon, Jul 2, 2018 at 12:37 PM Rob Landley  wrote:
>
> On 07/02/2018 10:37 AM, enh wrote:
> > (sysv ipc is disabled in multiple ways on Android. you can't pass CTS
> > with a kernel that supports it.)
>
> Indeed, but the CLONE_NEWIPC container namespace implies it'll probably be 
> back
> someday. And it's still in posix. And the pending/ code was contributed by 
> some
> nice Koreans who are presumably still using it. And I'm halfway through 
> cleaning
> it up already. :)

oh, i wasn't trying to say it's not useful to _anyone_... just that it
isn't useful to Android. (it's usually pretty safe to assume that
proviso to everything i say.)

> Rob
___
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net


Re: [Toybox] Does anybody use ipcmk?

2018-07-02 Thread Rob Landley
On 07/02/2018 10:37 AM, enh wrote:
> (sysv ipc is disabled in multiple ways on Android. you can't pass CTS
> with a kernel that supports it.)

Indeed, but the CLONE_NEWIPC container namespace implies it'll probably be back
someday. And it's still in posix. And the pending/ code was contributed by some
nice Koreans who are presumably still using it. And I'm halfway through cleaning
it up already. :)

Rob
___
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net


Re: [Toybox] Does anybody use ipcmk?

2018-07-02 Thread enh
(sysv ipc is disabled in multiple ways on Android. you can't pass CTS
with a kernel that supports it.)
On Sun, Jul 1, 2018 at 7:32 PM Rob Landley  wrote:
>
> toys/pending/ipcs.c and toys/pending/iprm.c will list and delete sysv
> inter-process communication resources (shared memory, message queue, and
> semaphore). But there's no equivalent way to create them, which makes tests 
> hard
> to do.
>
> Ubuntu's command line has an ipcmk command from util-linux, but it's not in
> posix (or in busybox).
>
> Has anybody used this stuff much? (For shared memory segments I've just opened
> /dev/shm files and deleted them when done, and that way I can lsof them to see
> who's using what. I've installed packages that needed message queues and sysv
> semaphores, but that was mostly in the context of "I need to enable this 
> kernel
> symbol or this thing won't work". )
>
> I want to cleanup and promote these commands, but kinda need to be able to 
> test
> the results. I suspect I should do an ipcmk too, but since I'm not an existing
> user of the command it's hard to be confident I've done it right...
>
> Rob
> ___
> Toybox mailing list
> Toybox@lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
___
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net