[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Was: /proc, will be: /sys
> I have therefore started (in fact I'm relatively far with that) a new
> pseudo-filesystem called "/sys" which has many features from the "/proc"
> filesystem used on Linux. Inside "/sys" there is a subdirectory (named
> after the process id) for each process in the system. This subdirectory
> contains all the information you want in form of human-readable files, for
> example
>
> bash-2.03$ cat /sys/123/cmdline | tr '\0' ' '
> find / -name *.tmp -print
> bash-2.03$ cat /sys/123/environ | tr '\0' '\n'
> USER=guido
> PWD=/home/guido
> TERM=tw52
> ...
>
> There are many more files than "cmdline" and "environ", you will be able
> to retrieve every information the kernel itself has about the process.
>
> If you are lucky (and if I find some more time) one of the next MiNT
> versions will feature this pseudo-filesystem.
This may be off topic, but keeping in mind the recent implementation of
SLBs (which formally behave like stopped processes), I would think about
either a /proc extension (to make possible to differentiate an SLB from a
real process after SIGSTOP) or /lib folder, though I don't quite like the
latest concept (since we are not for an active promotion of the SLB
concept... btw. do any SLBs exist in the MagiC world, which could work in
MiNT? any docs? F.e. EDITOBJC.SLB, or whatever it is called, relies on
MagiC AES so no real use...)
Anyways, after playing a bit with SLBs in MiNT and MagiC 6.0, I could say
(and this sounds like a sort of life's irony) that Gryfs implementation is
better than the original.
--
Konrad M.Kokoszkiewicz
|mail: draco@atari.org | Atari Falcon030 user |
|http://www.obta.uw.edu.pl/~draco/ | Moderator gregis LATINE |
|http://draco.atari.org | (loquentium) |
** Ea natura multitudinis est,
** aut servit humiliter, aut superbe dominatur (Liv. XXIV,25)
*************************************************************
** U pospolstwa normalne jest, ze albo sluzy ono unizenie,
** albo bezczelnie sie panoszy.