3 ms·
Because a project should never have platform specific code. justin@t420:/tmp$ git clone https://github.com/tmux/tmux.git justin@t420:/tmp$ cd tmux justin
by justinsaccount 10y ago
Because a project should never have platform specific code.
justin@t420:/tmp$ git clone https://github.com/tmux/tmux.git
justin@t420:/tmp$ cd tmux
justin@t420:/tmp/tmux$ wc -l osdep*
95 osdep-aix.c
88 osdep-cygwin.c
80 osdep-darwin.c
133 osdep-dragonfly.c
202 osdep-freebsd.c
41 osdep-hpux.c
98 osdep-linux.c
137 osdep-netbsd.c
157 osdep-openbsd.c
101 osdep-sunos.c
41 osdep-unknown.c
1173 total
Apparently people have been trying to get tmux fixed for FIVE YEARS NOW
http://tmux-users.narkive.com/LXp72CHV/pam-support-in-tmux http://tmux-users.narkive.com/LXp72CHV/pam-support-in-tmux
- kinkdr 10y agoI am not sure I get your point. Systemd is not a platform. And not every Linux runs systemd.
- digi_owl 10y ago> Systemd is not a platform. And not every Linux runs systemd. For now...
- Scarbutt 10y agoDidn't know linux also means systemd.
- busterarm 10y agoCan't wait until osdep-linux-sysvinit.c osdep-linux-openrc.c osdep-linux-upstart.c osdep-linux-systemd.c osdep-linux-epoch.c osdep-linux-finit.c
- justinsaccount 10y agoSo it's fine to support FIVE different bsd systems (darwin, dragonfly, freebsd, netbsd, openbsd) but one needs to draw the line at better supporting the init system used by every major linux distribution. Okay.
- busterarm 10y agoThose BSDs are completely different kernels. Init system is userland. Linux is still one kernel, last I checked.
- Sanddancer 10y agoThe BSD systems have had 20+ years of divergence. There are areas where they'll borrow from each other when one of the others has a tool that works better than the status quo, but the kernels are vastly different animals. When a BSD does make a world-breaking change, like pledge(), it owns it, and will patch software itself to handle it, not pester upstream to stop what they were working on to implement their special snowflake code, which is what the systemd developers want to do.
- Gonzih 10y agoWelcome to the future
- deleted 10y ago[deleted]
- MaulingMonkey 10y agotmux is able to contain the platform specific code to a single file per kernel? How quaint. They must really care about reusing existing platform abstractions such as daemon() from glib instead of bloating their codebase pointlessly. Good on them.