[hackers] [smdev][PATCH] Create USB nodes correctly

2021-06-03 Thread Platon Ryzhikov
Linux kernel creates USB devices with nodes like bus/usb/002/007 --- smdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smdev.c b/smdev.c index b774908..b9321df 100644 --- a/smdev.c +++ b/smdev.c @@ -185,7 +185,7 @@ parsepath(struct rule *rule, struct rulepath *rpath,

[hackers][slstatus][PATCH] Report average CPU frequency of cluster instead of single-core one

2020-11-11 Thread Platon Ryzhikov
This is especially useful for ARM SoCs with different cores --- components/cpu.c | 27 +-- config.def.h | 4 +++- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/components/cpu.c b/components/cpu.c index 9e28003..c326297 100644 --- a/components/cpu.c

Re: [hackers] [quark] Thoughts on CGI and authentication?

2020-10-25 Thread Platon Ryzhikov
ding HTTP server itself while all the logic is created separately and is performed using callbacks from library main loop. In that case one could attempt to handle dynamic (and static using proper callbacks) content within fixed number of threads. -- Platon Ryzhikov

Re: [hackers] [dmenu][PATCH] Replace dmenu_run shell with executed application

2019-02-10 Thread Platon Ryzhikov
How about the following then: #!/bin/sh ${SHELL:-"/bin/sh"} -c "$(dmenu_path | dmenu "$@") & exit" This doesn't keep shell in processes but at the same time allows to run scripts 10.02.2019, 14:40, "Hiltjo Posthuma" : > On Sun, Feb 10, 2019 at 11:40:06AM +0100, Leonardo Taccari wrote: >>  Hello

[hackers][smdev][PATCH] Process all uevents in /sys

2018-12-18 Thread Platon Ryzhikov
This patch allows smdev to process uevents which don't contain information about devices but may, for example, contain information about modules. Also smdev -s will scan whole /sys --- smdev.c | 127 1 file changed, 64 insertions(+), 63

[hackers][ubase][PATCH] Fix build errors on some ARM64 Linux systems

2018-08-27 Thread Platon Ryzhikov
These changes are required on Arch Linux ARM to build ubase. This does not affect x86 build. --- libutil/tty.c | 1 + mknod.c | 1 + mountpoint.c | 1 + stat.c| 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libutil/tty.c b/libutil/tty.c index

[hackers][sbase][PATCH] Fix build errors on some ARM64 Linux systems

2018-08-27 Thread Platon Ryzhikov
These changes are required on Arch Linux ARM to build sbase. This does not affect x86 build. --- ls.c | 1 + tar.c | 1 + 2 files changed, 2 insertions(+) diff --git a/ls.c b/ls.c index b716aba..9e79fcb 100644 --- a/ls.c +++ b/ls.c @@ -1,6 +1,7 @@ /* See LICENSE file for copyright and license

[hackers][ubase][PATCH] Fix segfault in killall5 without -o

2018-06-28 Thread Platon Ryzhikov
--- killall5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/killall5.c b/killall5.c index 14790b9..4d22b98 100644 --- a/killall5.c +++ b/killall5.c @@ -73,7 +73,7 @@ main(int argc, char *argv[]) SLIST_INIT(_head); - for (p = strtok(arg, ","); p; p =