just-containers / socklog Goto Github PK
View Code? Open in Web Editor NEWA fork of socklog that uses skalibs
License: Other
A fork of socklog that uses skalibs
License: Other
Most recent skalibs requires -DSUBGETOPT_SHORT=1 otherwise optind will reference the built-in libc getopt optind variable, NOT the redefined one.
As evidenced by gcc -E
while ((opt = sgetopt_r((argc), ((char const *const *)argv), ("rRUV"), &subgetopt_here)) != -1) {
switch(opt) {
case 'r': lograw =1; break;
case 'R': lograw =2; break;
case 'U': noumask =1; break;
case 'V':
err("$Id: socklog.c,v 1.18 2004/06/26 09:36:25 pape Exp $", 0, 0);
buffer_putsflush((&buffer_2_), "\n\n");
case '?': usage();
}
}
argv +=optind;
VS gcc -E -DSUBGETOPT_SHORT=1
while ((opt = sgetopt_r((argc), ((char const *const *)argv), ("rRUV"), &subgetopt_here)) != -1) {
switch(opt) {
case 'r': lograw =1; break;
case 'R': lograw =2; break;
case 'U': noumask =1; break;
case 'V':
err("$Id: socklog.c,v 1.18 2004/06/26 09:36:25 pape Exp $", 0, 0);
buffer_putsflush((&buffer_2_), "\n\n");
case '?': usage();
}
}
argv +=subgetopt_here.ind;
You can either define the define above, or instead of using optind, use subgetopt_here.ind directly...
As socklog is already forked to use skanet lib, an interesting feature would be adding s6 startup notification (-d fd
) so we can wait for socklog before starting dependent services. For now run
has to be patched to something like
#!/usr/bin/execlineb -P
fdmove -c 2 1
s6-notifyoncheck -c "s6-test -S /dev/log"
s6-envuidgid -D 32768:32768 nobody
socklog unix /dev/log
and create a /etc/services.d/socklog/notification-fd
file with the content 3
which is not optimal
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.