Re: [Dng] Use/misuse of depends

2015-01-17 Thread karl
= 3.0-9), linux-sound-base (>= 1.0.15-1) --- > lsb-base (>= 3.0-9), linux-sound-base (>= 1.0.15-1), udev $ diff init* 7c7 < # Required-Start:$remote_fs --- > # Required-Start:$remote_fs udev And rebuilding the package, solved my direct needs. As I see it, that was an unnessesar

Re: [Dng] Purpose of all this complicated device management?

2015-01-17 Thread karl
you come up with in the end. So, what's all the fuss whith what name there is in /dev/, let each and every user *be able* to decide for themselves. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar S

Re: [Dng] What to do with udev? Some ideas...

2015-01-17 Thread karl
ck_return(buf, user, group); chmod(buf, devmode); } } fd = open(buf, O_RDWR, 0); drmMsg("drmOpenDevice: open result is %d, (%s)\n", fd, fd < 0 ? strerror(errno) : "OK"); if (fd >= 0) return fd; drmMsg("dr

Re: [Dng] What to do with udev? Some ideas...

2015-01-17 Thread karl
gt; > I tried following that page or a related one to set up X11 sans udev on > Debian, but never got keyboard input working. > (Wondering about configuration/if I need to recompile Mesa and X...). Since I for some reason got a very new graphics car, and no udev, I've made http://turk

Re: [Dng] Jessie without systemd

2015-01-17 Thread karl
tp://turkos.aspodata.se/computing/nonudev/ In case anyone else would need them. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng

Re: [Dng] Purpose of all this complicated device management?

2015-01-17 Thread karl
Gravis: > karl, what's with the hostility? Oh, maybe it come out to harsh, sorry for that. > vdev is by no means required and > nothing depends on it, so nobody is being forced to even install it. > also, since it is based on FUSE, it won't actually add/remove static >

Re: [Dng] Purpose of all this complicated device management?

2015-01-17 Thread karl
it will add/remove the > requisite device nodes. I'd be perfectly happy with that, and I think that is a nice feature. But for that to be "possible", I want to find some way to get rid of the dependancy on udev. /// So I think we kind of ha

[Dng] minimal init

2015-01-17 Thread karl
-gt 0 ] then echo timeout, use normal init exec /sbin/normal_init else echo Switching to init_$a exec /sbin/init_$a fi /// Basically, nothing hinders one to choose init's on the fly, or ? (Well yes, they need different /etc/inittab's, but that is solvable.) R

Re: [Dng] minimal init

2015-01-18 Thread karl
not the other way > around). True, busybox does a fork and runs /etc/rcS, seems I was daydreaming. > If you wanted to switch init after boot, you need to have that script > in /sbin/init and have all other inits at other paths. Hmm, would that be useful, probably e

Re: [Dng] Purpose of all this complicated device management?

2015-01-18 Thread karl
ilar commands written elsewhere. Ok, got it, scanning /sys in some ways. > But really, your requests are very close to the standard usage for mdev. > Substitute "modprobe -abq" for "resolve_modalias", and the command line > above is the

Re: [Dng] UEFI, GPT

2015-01-23 Thread karl
omputing/busybox_init.txt) ... and I mostly compiles the kernel myself, and I installed it from a 32bit debian system with debootstrap --arch=amd64 --foreign stable /sdb9 and moving the disks etc. Maybe a little unusual method. Regards, /Kar

Re: [Dng] libsysdev preview

2015-01-23 Thread karl
ou can use: PREFIX=/usr/local make PREFIX=/usr/local make install or similar to make it install in your preferred dir. > On debian, devuan, and related distros, you will need to install with: > make LIBDIR="/usr/lib/$TRIPLET" install > On non-pure64 64-bit installs of other di

Re: [Dng] libsysdev preview

2015-01-23 Thread karl
on going into .../device > > Or I could add an option to just get the DEVPATH. No need, just naively testing the stuff, pressing random buttons and see what happens. ... > > > On debian, devuan, and related d

Re: [Dng] LILO

2015-02-11 Thread karl
t then again I always have a small /boot partition first in the partition list. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___

Re: [Dng] John Goerzen asks, "Has modern Linux lost its way?"

2015-02-13 Thread karl
t al should be required or be mandatory. BTW, there is more than one way to set up (for the local admin) meaningful /dev-names. And if you don't want to bother with any /dev nane, you can (manually) check with "sg_mag -x -i" to see which device is which. Regards, /Karl Hammar -

Re: [Dng] John Goerzen asks, "Has modern Linux lost its way?"

2015-02-13 Thread karl
which device > > is which. Regards, /Karl Hammar > > Dear Karl, could you give us more details. Couldn't find any > "sg_mag" , neither in apt-file (Wheezy), nor in Google. > > Didier > Sorry, misspelled it: # sg_map -x -i /dev/sg0 0 0 0 0 0

Re: [Dng] John Goerzen asks, "Has modern Linux lost its way?"

2015-02-13 Thread karl
ata.se a écrit : > >>> BTW, there is more than one way to set up (for the local admin) > >>> meaningful /dev-names. And if you don't want to bother with any /dev > >>> nane, you can (manually) check with "sg_mag -x -i" to see which device >

Re: [Dng] Towards systemd-free packages

2015-02-14 Thread karl
l-linux, touching as less as possible > https://git.devuan.org/packages-base/util-linux/commit/a51bce5830336af3c5ec9da6de95af926c1b1609 Tell me, if you need help. ... > My guess now is that we'll have i386 and amd64 as

Re: [Dng] successfully manually removing systemd and libsystemd0 from debian and still maintaining a working desktop

2015-02-15 Thread karl
lename" and so on. ... > * disabling udev > * returning to manual keyboard and mouse configuration in Xorg > * adding a huge number of manual entries to /etc/modules I'm fine with that, and I compiles my own kernels. Regards, /Karl Hammar --

Re: [Dng] successfully manually removing systemd and libsystemd0 from debian and still maintaining a working desktop

2015-02-19 Thread karl
on, this really should > not be hard for them, either. No. /// At second thought, I'll first try to factor out udev completely -- or rather -- make the system to be *dev agnostic. Regards, /Karl Hammar --- Aspö

Re: [Dng] successfully manually removing systemd and libsystemd0 from debian and still maintaining a working desktop

2015-02-19 Thread karl
Luke Leighton: > karl please refresh and double-check the update for pulseaudio, I don't need pulseaudio, sorry. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 17

Re: [Dng] successfully manually removing systemd and libsystemd0 from debian and still maintaining a working desktop

2015-02-19 Thread karl
;devinfo" in libsysdev: > for d in /dev/input/*; do DEV="`devinfo $d`"; [ -e "$DEV/name" ] && { echo > $d; cat $DEV/name; } ; done Nice script, I saved that, thanks. Regards, /Karl Hammar -

Re: [Dng] successfully manually removing systemd and libsystemd0 from debian and still maintaining a working desktop

2015-02-19 Thread karl
zfs Then that would be a better starting place. Thoose two seems to be the relevant links: http://mirror.org.rs/trios/pool/non-systemd/ http://mirror.org.rs/trios/pool/non-systemd-testing/ Regards, /Karl Hammar --- Aspö Data L

Re: [Dng] successfully manually removing systemd and libsystemd0 from debian and still maintaining a working desktop

2015-02-19 Thread karl
Steve Litt: > On Thu, 19 Feb 2015 17:28:58 +0100 (CET) > k...@aspodata.se wrote: > > > At second thought, I'll first try to factor out udev completely -- or > > rather -- make the system to be *dev agnostic. > > Karl, please document your experiment so that

Re: [Dng] apt repository?

2015-03-05 Thread karl
es.devuan.org/devuan/dists/unstable/main/binary-i386/Packages Hash Sum mismatch maybe one should wait a little till some daemon fixes that... Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148

Re: [Dng] apt repository?

2015-03-06 Thread karl
Jaromil: > hi Karl, Gravis, Hi! > On Thu, 05 Mar 2015, k...@aspodata.se wrote: > > Gravis: > > > deb [arch=amd64,i386] http://packages.devuan.org/devuan/ unstable main ... > > W: Failed to fetch > > http://packages.devuan.org/devuan/dists/unstable/main/bin

Re: [DNG] Packages aren't the only path to alternate inits

2015-06-20 Thread karl
wxrwx 1 root root 12 Jun 20 11:30 /boot/init.sysvinit -> ../sbin/init # Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng mailing

Re: [DNG] Packages aren't the only path to alternate inits

2015-06-20 Thread karl
/alternatives/init -> ../../sbin/init.sysvinit lrwxrwxrwx 1 root root24 Jun 20 13:06 /sbin/init -> ../etc/alternatives/init -rwxr-xr-x 1 root root 35216 Jul 18 2013 /sbin/init.sysvinit # Regards, /Karl Hammar --

Re: [DNG] My experience with Devuan Alpha2

2015-07-04 Thread karl
ervers) start mult. x-servers, one per virtual terminal (and/or physical graphics card): 3334 tty9 Ss+ 166:17 /usr/bin/X :9 -layout 1600 vt9 -nolisten tcp -auth /tmp/serverauth.BqOG9iXqZQ 3726 tty7 Ss+6:59 X -nolisten tcp :1 -depth 16 vt7 -layout 800 and then run a wm/dm o

Re: [DNG] ideas for system startup (was: Init scripts in packages)

2015-08-08 Thread karl
ferently. ... busybox init also have /etc/inittab. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng mailing li

Re: [DNG] [arthur.ma...@internode.on.net: Re: Interesting comment from a kernel developer]

2015-08-17 Thread karl
t removal of libsystemd0:amd64: sane-utils depends on libsystemd0. dpkg: error processing package libsystemd0:amd64 (--purge): dependency problems - not removing Errors were encountered while processing: libsystemd0:amd64 Regards, /Karl Hammar --

Re: [DNG] Mirroring Devuan

2015-08-18 Thread karl
ually in bad connected places or you are doing lots of installations/testing) ? Mirroring ftp://packages.devuan.org/devuan/ and having a sources.conf like: debfile:/Net/debian jessie main non-free contrib debfile:/Net/ftp/packages.devuan.org/devuan/ stable main doesn'

[DNG] X without udev

2015-08-18 Thread karl
putDevice" Identifier "Generic Mouse" Driver "mouse" Option "SendCoreEvents""true" Option "Device""/dev/input/mice" Option "Proto

Re: [DNG] Mirroring Devuan

2015-08-19 Thread karl
years ago) och don't whish to download that again, but I'll take a look at it. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___

Re: [DNG] netman GIT project

2015-08-25 Thread karl
Escape */ sprintf(d, "\\x%02X", *s); d += 4; } Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng

Re: [DNG] netman GIT project

2015-08-25 Thread karl
Irrwahn: > On Tue, 25 Aug 2015 19:24:17 +0200 (CEST), Karl wrote: > > Tilt!: > >> i wonder if we ever get to see such SSIDs from iwlist anyway - > >> how is it supposed to print SSIDs that contain the zerobyte ... > > > > iwlib.c line 989..995: &

Re: [DNG] Mirroring Devuan

2015-08-25 Thread karl
, else use the debian one etc. That could be handled by using the right order in sources.list something in preferences. So if I have a copy of http://packages.devuan.org/devuan/ and a debian mirror, all I need is to prioritize them, am I right

Re: [DNG] Xorg dependency on libsystemd

2015-09-13 Thread karl
s? > > Is it hard to compile and get Xorg to work? > > Any comments would be most welcome I got xorg to work on a funtoo box and that without any udev nor libudev. I.e. there is no dependancy. Regards, /Karl Hammar -

Re: [DNG] Xorg dependency on libsystemd

2015-09-14 Thread karl
own xorg.conf (I think). I added flag below to make it work: Section "ServerFlags" ... Option "AutoAddDevices" "off" EndSection Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhamm

Re: [DNG] xf86-input-evdev

2015-09-14 Thread karl
ian packaging yet. ... You did some debian packaging earlier and I intended to test this, but real world issues got in the way. I'm willing to work on this, perhaps to make a *dev-agnostic version of the X11 packages. Regards, /Karl Hammar ---

Re: [DNG] xf86-input-evdev

2015-09-14 Thread karl
Hleb: > On 9/14/15, k...@aspodata.se wrote: > ... > > How do I get the sysdev branch ? > > git checkout remotes/origin/sysdev sysdev $ git checkout remotes/origin/sysdev sysdev error: pathspec 'sysdev' did not match any file(s) known to git. Didn&#x

Re: [DNG] xf86-input-evdev

2015-09-14 Thread karl
eckout sysdev ?? co sysdev worked, I'm clueless Thanks! Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng mailing list Dng@lists.d

Re: [DNG] Purpose of an OS: was network device naming (was: What can I do after netman?)

2015-10-03 Thread karl
lly pulled out /dev/sdc, and oops put it back before anyone noticed; should it show up again as /dev/sdc or should it be /dev/sdf ? Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Ös

Re: [DNG] Purpose of an OS: was network device naming (was: What can I do after netman?)

2015-10-04 Thread karl
ted or when you want to unmount it, after all, fstab and /dev/-names are just for the user space. The kernel mostly only cares about the maj/min numbers, or am I wrong? What happens when you unplug your root fs, wait a few seconds till the kernel gives up and then plug it in again ? Regards, /Karl

Re: [DNG] Purpose of an OS: was network device naming (was: What can I do after netman?)

2015-10-04 Thread karl
or even some connection die ? If you connect the disk again and the kernel sees that it is the same fs etc., why not silently make it available again, why should the system have to die ? Regards, /Karl Hammar -

Re: [DNG] Detailed technical treatise of systemd

2015-10-17 Thread karl
fore encountering this'. I have not a parser, but a string splitter in: http://turkos.aspodata.se/git/c/libaspoutil/parse.c http://turkos.aspodata.se/git/c/libaspoutil/parse.h It splits a string in what I belive shell style. What you do with the tokens that is your business. It coul

Re: [DNG] Dng Digest, Vol 13, Issue 53

2015-10-20 Thread karl
e (74) My point is that I can write LOG_IF(fd == -1, LOG_CRIT) return -1; // maybe I should use (fd < 0) instead of if(fd == -1) { //your logging thing return -1; } bonus points I get a copy the code (fd == -1), source file, line no, severety of the error, and

Re: [DNG] Office pack

2015-11-08 Thread karl
omeone at: http://tex.stackexchange.com/questions/1551/use-latex-to-produce-epub gave this formula: latexml --dest=$1.xml $1.tex latexmlpost -dest=$1.html $1.xml ebook-convert $1.html $1.epub --language en --no-default-epub-cover Rega

Re: [DNG] PXE boot files

2015-12-31 Thread karl
Richard: > Is there somewhere around an initrd.img and a vmlinuz to put on my PXE > boot server in order to be able to do a netinstall from PXE? apt-get install syslinux less /usr/share/doc/syslinux/pxelinux.txt.gz Regards, /Karl

Re: [DNG] FW: support for merged /usr in Debian

2016-01-02 Thread karl
th the ability to go initramfs-free, on my > simpler pure ext4 systems. I have used initramfs/initrd free system for years, and use md-raid without any problem. Have a look at Documentation/md.txt in your linux source dir. And yes, you have to build your own kernel. Regards, /Karl Hammar

Re: [DNG] FW: support for merged /usr in Debian

2016-01-02 Thread karl
ystem to their liking. So: . Debian without systemd . respect the local admin Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng mailing lis

Re: [DNG] FW: support for merged /usr in Debian

2016-01-02 Thread karl
hy, but can only give a guidance to how to do things today. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Re: [DNG] Giving Devuan sans-initramfs capabilities

2016-01-02 Thread karl
; custom kernel with ext4 and a few other drivers compiled in, and get > rid of initramfs altogether. Then, the usage that has been done of > initramfs in the last few years is just an overkill, IMHO. Ack. Regards, /Karl Hammar ---

Re: [DNG] FW: support for merged /usr in Debian

2016-01-02 Thread karl
/libc.so.6 (0xb75c) /lib/ld-linux.so.2 (0xb7742000) Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng mailing list Dn

Re: [DNG] Giving Devuan sans-initramfs capabilities

2016-01-02 Thread karl
3 -rw-r--r-- 1 root root 3458016 Aug 1 15:36 /boot/vmlinuz-3.12.8-rt11-i3 > How do you tell your kernel not to load an initramfs? Add noinitrd to your boot cmdline or don't compile in support for it, make menuconfig -> General setup about 75% down: Initial RAM filesystem and RAM disk

Re: [DNG] Giving Devuan sans-initramfs capabilities

2016-01-02 Thread karl
Adam Borowski: > On Sat, Jan 02, 2016 at 09:32:31PM +0100, Karl Hammar wrote: > > Adam Borowski: > > > On Sat, Jan 02, 2016 at 08:15:39PM +0100, k...@aspodata.se wrote: > > > > download your kernel from your favourite site, e.g. > > > > ftp:ftp.sunet.se/pu

Re: [DNG] Giving Devuan sans-initramfs capabilities

2016-01-04 Thread karl
rollers out there) and vfat in the kernel. Mount /boot in your initrd and go from there. /boot can always be mounted read-only unless when changing kernel and boot things. Files in /boot don't need user id's nor unix permissions so vfat is perfectly ok. Regards, /Karl Hammar ---

Re: [DNG] Giving Devuan sans-initramfs capabilities

2016-01-04 Thread karl
sdom. But then, /etc-less systems are thought about: http://0pointer.net/blog/projects/stateless.html Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 __

Re: [DNG] Giving Devuan sans-initramfs capabilities

2016-01-05 Thread karl
lso a > relatively old howto here: ... There is a new "howto": https://www.debian.org/doc/manuals/debian-handbook/sect.kernel-compilation.en.html basically, do (or some variation of): make menuconfig make deb-pkg Regards, /Karl Hammar --

Re: [DNG] PAM usage (Was: Giving Devuan sans-initramfs capabilities)

2016-01-05 Thread karl
Teodoro Santoni: > 2016-01-05 12:28 GMT+01:00, Karl Hammar : > > And what has "how to login" to do with "how to boot" ? > > It's easier to > * avoid hacks in the login process if your software controls > everything from the power button to the sess

Re: [DNG] Giving Devuan sans-initramfs capabilities

2016-01-05 Thread karl
l is easy, tools are provided (later kernels have a deb-pkg target), choosing configuration is the hard part. Would it be sensible for devuan to set up a user contrib site where one can upload kerlnels and or configs, together with reasons why that config is choosen ? Regards, /Karl Hammar ---

Re: [DNG] PAM usage

2016-01-05 Thread karl
ntal property of the system > which exists completely indepedently of someone's inability (or > unwillingness) to imagine of something this could be good for. ... It is important to respect that, trust the local root user, don't de

Re: [DNG] PAM usage (Was: Giving Devuan sans-initramfs capabilities)

2016-01-06 Thread karl
ure. > And was curious about your experience, hence the thread. Soo, any conclutions ? Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 _

Re: [DNG] Giving Devuan sans-initramfs capabilities

2016-01-06 Thread karl
ration is the hard part. > > > > Would it be sensible for devuan to set up a user contrib site where one > > can upload kerlnels and or configs, together with reasons why that > > config is choosen ? > > > Sure, how about talk.devuan.org kernel.devuan.org ? Tho

Re: [DNG] Giving Devuan sans-initramfs capabilities

2016-01-06 Thread karl
Aitor: > On 01/06/2016 10:10 AM, Daniel Reurich wrote: > > choosing configuration is the hard part. > You are right :) So then, it's there we should share our knowledge. Regards, /Karl Hammar --- Aspö Data Lil

Re: [DNG] PAM usage (Was: Giving Devuan sans-initramfs capabilities)

2016-01-06 Thread karl
se any of those, but without pam, a life > without systemd seem much easier. > Maybe I'm wrong. ... I wouldn't complain if pam goes, I currently don't care. Regards, /Karl Hammar --- Aspö Data Lilla Aspö

Re: [DNG] PAM usage

2016-01-07 Thread karl
Rainer Weikusat: ... > Patient: Doctor! Doctor! Whenever I do X, it hurts terribly! > Doctor: Don't do X. Not that I'm immune to it myself, but when I look att others, I do wonder why people continue to do X. Regar

Re: [DNG] Beware

2016-01-19 Thread karl
user and then gaining root powers. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng mailing list Dng@lists.dyne.org https://mailingl

Re: [DNG] Beware

2016-01-19 Thread karl
Ahh, the new kid on the block... ... > ..why did Debian kill ssh into localhost? > Is su or sudo safer than ssh nowadays? telnet or ssh localhost | tee log_file is useful for demonstrations. Test this open two or more xterms (or similar), same size term 1: ssh localhost | tail trac

Re: [DNG] lilo development has ended

2016-01-20 Thread karl
it so ? > That ext2 must be on a smaller than 2TB disk, unless you want to throw I have 3TB disks with gpt disklabel and lilo, no problem. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-7

Re: [DNG] lilo development has ended

2016-01-20 Thread karl
boot from the other one and it works. It worked for > Grub-0.9 as well. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng mai

Re: [DNG] "Common knowledge?"-question

2016-01-23 Thread karl
ot just use writev(2) and write it one system call ? Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng mailing list Dng@lists.dyne

Re: [DNG] "Common knowledge?"-question

2016-01-24 Thread karl
a SIGSEGV if you are useing sigaltstack(). Never tested it though and don't know it it is useful at all. ... > In this respect, there's no difference between alloca and static stack > allocations. ... Soo, the above is nearly the same as char buf[total]; p = buf; Why then

Re: [DNG] "Common knowledge?"-question

2016-01-24 Thread karl
e and writev may end up writing less data than requested and > the code for restarting a partially completed writev is more complicated > than the same for write. Both true. Regards, /Karl Hammar --- Aspö Data Lilla As

Re: [DNG] Icerbergs aren't small just because they're mostly underwater

2016-01-25 Thread karl
L) cmdline_pgm = argv[0]; else cmdline_pgm++; It worked and I moved on. Should I do it again, I'd consider Rainers code. /// As for Rainers original question, his code is pretty understandable for me except for the "&= 0x20", which forced me to think. Regards, /Karl Hammar ---

Re: [DNG] Bad UEFI: was Systemd at work: rm -rf EFI

2016-02-04 Thread karl
rather sooner than later. > Eg nearly any client of a physician, a lawyer... Yes, absolutely. If you don't know the field and don't check the advice you get, you are in for trouble. Regards, /Karl Hammar --- Asp

Re: [DNG] Making sense of C pointer syntax.

2016-03-28 Thread karl
value; says two things; a: it declares an "ix" such as when ix is used as "*ix" it will be an int b: ix = value Another example is: #include #include void (*log_vfunc)(int priority, const char *format, va_list ap

Re: [DNG] Making sense of C pointer syntax.

2016-03-28 Thread karl
oc() inside a function and free() outside it invites to memory leaks, don't do that to yourself. Something like void *mem = malloc(...); func_call(...); free(mem); is way more easy to debug. Yes, that doesn't map wery good to your example, but you might benefit from rethinking how you us

Re: [DNG] Making sense of C pointer syntax.

2016-03-28 Thread karl
y, I'd not consider int ii to be an array even though int *pp = &ii, -- but who cares. But there is a real differnce between int arr[10]; and int *pp = calloc(10, sizeof(int)); as pp can be assigned to, but not arr, i.e. pp = malloc() works but not arr = malloc(). Regard

Re: [DNG] Making sense of C pointer syntax.

2016-03-28 Thread karl
ion pointers don't > need to be dereferenced, they can be used just like functions. ... You need it in the declaration, but not in the use, but I didn't want to confuse the matter. Regards, /Karl Hammar --- Aspö Data Li

Re: [DNG] Making sense of C pointer syntax.

2016-03-28 Thread karl
;t exist ? It could be abort() but it could just as well be just a no-op, choose your pick. You can compare it to the array case for (ix = 0; ix < arr_max; ix++) { change_value(arr + ix); } If the array is empty, that would be a big no-op. Or would you choose an abort() when arr_max =

Re: [DNG] Making sense of C pointer syntax.

2016-03-28 Thread karl
te possibility is to pass down a string and parse it which is quite radable from the calling side :) Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 __

Re: [DNG] Making sense of C pointer syntax.

2016-03-31 Thread karl
int ** pointer2 = & pointer1; int *** pointer3 = & pointer2; int pointer4 = & pointer3; /* etc... */ return pointer4; } $ gcc -Wall a.c; ./a.out; echo $? 4 Regards, /Karl Hammar -

Re: [DNG] lilo

2016-05-30 Thread karl
new features and likely without having anything to do really? > its still good to have someone who knows the code of the package as a > reference for questions, CVEs and such. ... I also use lilo, perhaps we could gather a

Re: [DNG] Mini init script written in Perl boots.

2016-06-18 Thread karl
to replace them in TV sets in this way and no customer came back > complaining. ... Higher voltage ratings usually comes with a higher capacitance, so you get resistive losses when more charges gets pumped around, hence a hotter component in some kind of applications. There is also some

Re: [DNG] Mini init script written in Perl boots.

2016-06-18 Thread karl
xpdf ~/a.pdf & [3]+ Running xpdf ~/a.pdf & $ Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ Dng mailin

Re: [DNG] Mini init script written in Perl boots.

2016-06-18 Thread karl
rentice Hall https://en.wikipedia.org/wiki/The_Unix_Programming_Environment https://en.wikipedia.org/wiki/The_C_Programming_Language_%28book%29 Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Swe

Re: [DNG] Studying C as told. (For help)

2016-06-25 Thread karl
loop_end; loop_post(); loop_end: for a while loop, init and pre are empty for loop, pre is empty do-while, init and post are empty break is goto loop_end, continue is goto loop_start. Regards, /Karl Hammar --- Aspö Data Li

Re: [DNG] Studying C as told. (For help)

2016-06-25 Thread karl
RFID tag is > less than a tweet. I have examples in: http://turkos.aspodata.se/git/c/libaspoprotocol/ for anyone interested. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden

Re: [DNG] xserver-xorg-core in Debian unstable now requires libsystemd0

2016-07-01 Thread karl
ig icanon, eof and eol characters to their default values -cooked same as raw -- -raw same as cooked Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57

Re: [DNG] Studying C as told. (For help)

2016-07-10 Thread karl
Edward Bartolo: ... > I am attaching the source file for comments for all those who may want > to comment. If you want to compare, have a look: http://turkos.aspodata.se/git/c/libaspoutil/parse.h http://turkos.aspodata.se/git/c/libaspoutil/parse.c Regards, /Karl

Re: [DNG] lilo

2016-07-10 Thread karl
d/ directories. For instance, the integration with grub relies on /etc/kernel/postinst.d/zz-update-grub and /etc/kernel/postrm.d/zz-update-grub to call update-grub when kernels are installed or removed. so have a look into your /etc/kernel/ directories to find a way to disable automatic updating o

Re: [DNG] vdev - udev is a dead end

2016-08-14 Thread karl
e = readlink($file); next unless (defined($name)); $name =~ s|.*/||; print "mknod $name $type $maj $min\n"; } closedir $dh; } sub main() { run_dir($char, "c"); run_dir($block,

Re: [DNG] vdev - udev is a dead end

2016-08-14 Thread karl
if you use a initrd/initramd or your perl is on a /usr partition. Basically I would be against pulling in a big subsystem like perl in the booting process. And isn't mdev/vdev/static dev there for a thing like this. Hälsnin

Re: [DNG] vdev - udev is a dead end

2016-08-14 Thread karl
out udev or libudev depenancies. What you loose is implicit xorg.conf generation and something with different lang.layouts on keyboards (the thing that made xmodmap deprecated), and possible more things. Regards, /Karl Hammar

Re: [DNG] lilo development has ended

2016-08-16 Thread karl
ns are mirrored and have no problems with it, remove any disk, still boots. Lilo's only task is to load the kernel (initrd/initramfs). That task is easier if you use a small /boot at the beginning of the disk. Regards, /Karl Hammar -

Re: [DNG] lilo development has ended

2016-08-16 Thread karl
ootloaders. Next scenario is if you have the bootloader on a different media, say e.g. a floppy. Then, will lilo load the kernel from disk 2 when disk 1 fails (assuming mirrored /boot) ? Do grub handle that ? Regards, /Karl Hammar --

Re: [DNG] lilo development has ended

2016-08-17 Thread karl
a lilo installation? Isn't that what the chainloader is for ? Like when dualbooting MS-Windows and Linux. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___

Re: [DNG] recent debian-systemd-people gaffe

2016-11-28 Thread karl
g report as wontfix. > > > > But we all agree that this is just an enormous bunch of unnecessary > nonsense, right? Ack, I don't even need udev to mount /usr. Regards, /Karl Hammar -

Re: [DNG] DocSprint Devuan, December, BXL

2016-12-06 Thread karl
e the image of creating new "exciting" things from things (people, organisations) joining forces. Soo, someone is having fun with the language. And to summarize, the only thing of substance in the article is the statement that dyne.org will focus on devuan. Regards, /Karl Hammar --

  1   2   3   >