The ability is still there in portable tmux.
On Sat, Oct 26, 2013 at 11:33:41AM +0200, Jan Stary wrote: > On Sep 05 14:19:48, h...@stare.cz wrote: > > Being a happy user of tmux on many other systems (thank you!) > > I tried to compile tmux on this MacOSX 10.4.11, and have failed. > > > > The problem is that osdep-darwin.c does not compile on 10.4.11 > > - it uses libproc which (people tell me) has only been introduced > > in MacOSX 10.5 (Darwin 9) with DTrace. > > > > Looking at the history of osdep-darwin.c, e.g. > > http://sourceforge.net/p/tmux/tmux-code/ci/7360ff4496bfd159ac5935a18de675f067c375db/ > > http://sourceforge.net/p/tmux/tmux-code/ci/ad2cc63412d563f31b33df3204bb2070cb12f320/ > > I see that the "lowlevel" sysctl()'s have been > > gradually replaced by libproc features. > > This breaks osdep-darwin.c on older Macs > > (such as my 10.4.11) > > > > Temporarily, I have reverted to an older version of osdep-darwin.c > > http://sourceforge.net/mailarchive/forum.php?thread_name=51A035A8.6090504%40gmail.com&forum_name=tmux-users > > and live without the cwd functionality. > > > > I tried to rewrite osdep_get_name() and osdep_get_cwd() > > in the sysctl(CTL_KERN, KERN_PROC, ...) way > > but I don't know the Darwin internals much; > > I also tried to mimic osdep-openbsd.c > > but Darwin lacks things such as KERN_PROC_CWD, > > the daysaver of osdep-openbsd's osdep_get_cwd(). > > > > I am no expert on the nuanced differences between > > the internals of various BSD-derived systems, > > but I do believe that getting the cwd and comm > > of a running process is something very fundamental > > on all of them; not something that would require > > DTrace's libproc. > > > > So, before I start on a path I don't really know, > > is there a way to change osdep-darwin to do it > > the old primitive way, without proc_bsdshortinfo > > and proc_vnodepathinfo and proc_pidinfo etc? > > In the version of tmux that comes with > current OpenBSD snapshots, the CWD functionality > when opening new windows has been removed. > Is osdep_get_cwd() used for something else? > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users