mcde_sys_cpu_times: one McdeSysCpu (user, nice, system, idle, other ticks since boot) per processor. mcde_sys_memory: bytes, total = free + cached + used (cached is what the system gives back when asked), and swap. mcde_sys_signal: TERM, KILL, STOP, CONT, HUP or INT to a process above pid 1 -- never init, a group or "all my processes" (kill(2) with 0 or a negative number is refused before it is asked); EPERM for another user's process, ENOENT for one that is gone. Backends, read in the tree before they were written: - NetBSD: kern.cp_time given room for every CPU (hw.ncpu x CPUSTATES x 8 bytes) returns each CPU's counters in CP_ order (sys/kern/init_sysctl.c, sysctl_kern_cptime: "alternately, you can pass an additional mib number and get cp_time for that particular processor"; a buffer of one CPU's size gets the SUM); memory from vm.uvmexp2 (struct uvmexp_sysctl, pages; top(1) reads it too, external/bsd/top/dist/machine/m_netbsd.c). Cross-compiled with x86_64--netbsd-gcc -Wall -Wextra: no diagnostic. NEVER RUN on NetBSD. - Linux: /proc/stat (cpuN lines, "other" = iowait + irq + softirq + steal), /proc/meminfo (cached = MemAvailable - MemFree, else Buffers + Cached). test_sysload (make check, 7 of 7): the memory adds up and agrees with sysconf(_SC_PHYS_PAGES) within 5 per cent; the CPU counters never go down and 0.4 s of work of the test's own shows as at least 5 ticks; children are stopped (state T in mcde_sys_processes), continued and ended by TERM, KILL, HUP and INT (the exit status says which signal); pid 1, 0, -1, a group and a bad signal are refused; a waited-for child is "gone"; another user's process answers EPERM (to SIGCONT only, and only when the test is not run by root). Mutants: memory without the x1024 fails 2 checks, a parser that loses the busy ticks fails 1. Not checkable on a busy host: that user, nice, system and idle are not swapped (the shares depend on the load); the NetBSD backends are not run. Not done of t0091: mcde_sys_disk_io and mcde_sys_net_io (the Disk Activity and Network tabs), and the program itself. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
CDE - The Common Destop Environment
In 2012, CDE was opensourced under the terms of the LGPL V2 license by the Open Group.
You may reuse and redistribute this code under the terms of this license. See the COPYING file for details.
Downloading
Downloading this release:
CDE may be downloaded in source form from the Common Desktop Environment website:
http://sourceforge.net/projects/cdesktopenv/
Or via git:
git clone git://git.code.sf.net/p/cdesktopenv/code CDE
The git repository will always be more up to date than the downloadable tarballs we make available, so if you have problems, please try the latest version from git master.
Note also that the master branch may be unstable, so your milage may vary.
Compiling
Complete build and installation instructions can be found on the CDE wiki:
http://sourceforge.net/p/cdesktopenv/wiki/Home/
Please go there and read the appropriate section(s) for your OS (Linux or FreeBSD/OpenBSD/NetBSD currently) prior to attmpting to build it.
There are a variety of dependencies that must be met, as well as specific set up steps required to build, especially relating to localization and locales.
Do not expect to just type 'make' and have it actually work without meeting the prerequisites and following the correct steps as spelled out on the wiki.
There are also a lot of other documents and information there that you might find useful.
Assuming you've met all of the requirements regarding packages needed for the build, you can follow the standard autoconf method:
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
NOTE: BSD users must currently install and use gmake to compile, as well as specify the location of the TCL libraries and headers. So the instructions for them would looke like:
$ ./autogen.sh
$ ./configure --with-tcl=/usr/local/lib/tcl8.6 MAKE="gmake"
$ gmake
$ sudo gmake install
Of course change to location of your TCL directory as needed for your system.
Support
Mailing list
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
IRC
There is a CDE IRC channel on irc.libera.chat, channel #cde
Patches welcome
Please see
https://sourceforge.net/p/cdesktopenv/wiki/Contributing%20to%20CDE/
for information on how to contribute.