#
1.20 |
|
22-Feb-2022 |
deraadt |
MAXCOMLEN is no longer needed in these programs, so remove the annotation from sys/param.h include lines, or remove the include lines entirely if it this was the least requirement. ok millert
|
#
1.19 |
|
07-Dec-2021 |
deraadt |
sys/signal.h (or some master include) must happen before sys/proc.h, which is not standalone. This problem is being hidden by a sys/param.h which cannot be deleted yet.
|
#
1.18 |
|
07-Dec-2021 |
deraadt |
Use PATH_MAX (the standard name) rather than MAXPATHLEN (from BSD sys/param.h)
|
Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.17 |
|
08-Apr-2020 |
nicm |
Restore pane_current_path format from portable tmux, it is no longer used by default and is very useful.
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.16 |
|
10-Oct-2016 |
nicm |
Loads more static, except for cmd-*.c and window-*.c.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.15 |
|
19-Jan-2016 |
nicm |
I no longer use my SourceForge address so replace it.
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.14 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.13 |
|
04-Jul-2014 |
guenther |
Track whether a process is a zombie or not yet fully built via flags PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads.
tweaks kettenis@ feedback and ok matthew@
|
#
1.12 |
|
16-Apr-2014 |
nicm |
Memory leak in error path and unnecessary assignment, from clang.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.11 |
|
10-Oct-2013 |
nicm |
Remove the KERN_PROC_CWD the proc_current_path format (which is the only thing that uses it now).
|
Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.10 |
|
18-Dec-2012 |
millert |
We no longer use struct eproc for kinfo_proc in sysctl.h so there is no direct need for sys/proc.h or sys/resource.h. Some consumers of kinfo_proc need these for the proc flags and rlimit defines like RLIM_INF so add the appropriate includes to them. OK deraadt@ sthen@
|
#
1.9 |
|
24-Sep-2012 |
nicm |
Use pgrp of pty fd not pid of immediate child when recovering current working directory (like current process). From Marcel Partap.
|
Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
|
#
1.8 |
|
09-Dec-2011 |
nicm |
Change the way the working directory for new processes is discovered. If default-path isn't empty, it is used. Otherwise:
1) If tmux neww is run from the command line, the working directory of the client is used.
2) Otherwise sysctl KERN_PROC_CWD is used to retrieve the current working directory of the process in the active pane.
3) If that fails, the directory where the session was created is used.
Support code by Romain Francois, OpenBSD specific bits by me.
Note this requires a recent userland and kernel with KERN_PROC_CWD.
|
Revision tags: OPENBSD_5_0_BASE
|
#
1.7 |
|
10-Apr-2011 |
guenther |
Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now that we've got name we want for the API we want
"ZAP!" deraadt@
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.6 |
|
24-Dec-2009 |
guenther |
Use sysctl() KERN_PROC2 instead of KERN_PROC, as the latter's ABI is sensitive to changes in struct proc.
fixes for warnings and ok nicm@
|
#
1.5 |
|
09-Aug-2009 |
nicm |
Nuke a dead variable found with clang and an unused declaration with lint.
|
#
1.4 |
|
03-Aug-2009 |
nicm |
Split the comparison into a function to make this code smaller and more understandable.
|
#
1.3 |
|
26-Jul-2009 |
nicm |
Go to the next if the current best process is replaced, don't keep comparing it with itself. Also fix process name comparison.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.2 |
|
26-Jun-2009 |
nicm |
Also #ifndef nitems here, caught by Thomas Jeunet.
|
#
1.1 |
|
01-Jun-2009 |
nicm |
Import tmux, a terminal multiplexor allowing (among other things) a single terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another.
ok deraadt pirofti
|
#
1.19 |
|
07-Dec-2021 |
deraadt |
sys/signal.h (or some master include) must happen before sys/proc.h, which is not standalone. This problem is being hidden by a sys/param.h which cannot be deleted yet.
|
#
1.18 |
|
07-Dec-2021 |
deraadt |
Use PATH_MAX (the standard name) rather than MAXPATHLEN (from BSD sys/param.h)
|
Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.17 |
|
08-Apr-2020 |
nicm |
Restore pane_current_path format from portable tmux, it is no longer used by default and is very useful.
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.16 |
|
10-Oct-2016 |
nicm |
Loads more static, except for cmd-*.c and window-*.c.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.15 |
|
19-Jan-2016 |
nicm |
I no longer use my SourceForge address so replace it.
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.14 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.13 |
|
04-Jul-2014 |
guenther |
Track whether a process is a zombie or not yet fully built via flags PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads.
tweaks kettenis@ feedback and ok matthew@
|
#
1.12 |
|
16-Apr-2014 |
nicm |
Memory leak in error path and unnecessary assignment, from clang.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.11 |
|
10-Oct-2013 |
nicm |
Remove the KERN_PROC_CWD the proc_current_path format (which is the only thing that uses it now).
|
Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.10 |
|
18-Dec-2012 |
millert |
We no longer use struct eproc for kinfo_proc in sysctl.h so there is no direct need for sys/proc.h or sys/resource.h. Some consumers of kinfo_proc need these for the proc flags and rlimit defines like RLIM_INF so add the appropriate includes to them. OK deraadt@ sthen@
|
#
1.9 |
|
24-Sep-2012 |
nicm |
Use pgrp of pty fd not pid of immediate child when recovering current working directory (like current process). From Marcel Partap.
|
Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
|
#
1.8 |
|
09-Dec-2011 |
nicm |
Change the way the working directory for new processes is discovered. If default-path isn't empty, it is used. Otherwise:
1) If tmux neww is run from the command line, the working directory of the client is used.
2) Otherwise sysctl KERN_PROC_CWD is used to retrieve the current working directory of the process in the active pane.
3) If that fails, the directory where the session was created is used.
Support code by Romain Francois, OpenBSD specific bits by me.
Note this requires a recent userland and kernel with KERN_PROC_CWD.
|
Revision tags: OPENBSD_5_0_BASE
|
#
1.7 |
|
10-Apr-2011 |
guenther |
Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now that we've got name we want for the API we want
"ZAP!" deraadt@
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.6 |
|
24-Dec-2009 |
guenther |
Use sysctl() KERN_PROC2 instead of KERN_PROC, as the latter's ABI is sensitive to changes in struct proc.
fixes for warnings and ok nicm@
|
#
1.5 |
|
09-Aug-2009 |
nicm |
Nuke a dead variable found with clang and an unused declaration with lint.
|
#
1.4 |
|
03-Aug-2009 |
nicm |
Split the comparison into a function to make this code smaller and more understandable.
|
#
1.3 |
|
26-Jul-2009 |
nicm |
Go to the next if the current best process is replaced, don't keep comparing it with itself. Also fix process name comparison.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.2 |
|
26-Jun-2009 |
nicm |
Also #ifndef nitems here, caught by Thomas Jeunet.
|
#
1.1 |
|
01-Jun-2009 |
nicm |
Import tmux, a terminal multiplexor allowing (among other things) a single terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another.
ok deraadt pirofti
|
#
1.17 |
|
08-Apr-2020 |
nicm |
Restore pane_current_path format from portable tmux, it is no longer used by default and is very useful.
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.16 |
|
10-Oct-2016 |
nicm |
Loads more static, except for cmd-*.c and window-*.c.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.15 |
|
19-Jan-2016 |
nicm |
I no longer use my SourceForge address so replace it.
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.14 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.13 |
|
04-Jul-2014 |
guenther |
Track whether a process is a zombie or not yet fully built via flags PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads.
tweaks kettenis@ feedback and ok matthew@
|
#
1.12 |
|
16-Apr-2014 |
nicm |
Memory leak in error path and unnecessary assignment, from clang.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.11 |
|
10-Oct-2013 |
nicm |
Remove the KERN_PROC_CWD the proc_current_path format (which is the only thing that uses it now).
|
Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.10 |
|
18-Dec-2012 |
millert |
We no longer use struct eproc for kinfo_proc in sysctl.h so there is no direct need for sys/proc.h or sys/resource.h. Some consumers of kinfo_proc need these for the proc flags and rlimit defines like RLIM_INF so add the appropriate includes to them. OK deraadt@ sthen@
|
#
1.9 |
|
24-Sep-2012 |
nicm |
Use pgrp of pty fd not pid of immediate child when recovering current working directory (like current process). From Marcel Partap.
|
Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
|
#
1.8 |
|
09-Dec-2011 |
nicm |
Change the way the working directory for new processes is discovered. If default-path isn't empty, it is used. Otherwise:
1) If tmux neww is run from the command line, the working directory of the client is used.
2) Otherwise sysctl KERN_PROC_CWD is used to retrieve the current working directory of the process in the active pane.
3) If that fails, the directory where the session was created is used.
Support code by Romain Francois, OpenBSD specific bits by me.
Note this requires a recent userland and kernel with KERN_PROC_CWD.
|
Revision tags: OPENBSD_5_0_BASE
|
#
1.7 |
|
10-Apr-2011 |
guenther |
Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now that we've got name we want for the API we want
"ZAP!" deraadt@
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.6 |
|
24-Dec-2009 |
guenther |
Use sysctl() KERN_PROC2 instead of KERN_PROC, as the latter's ABI is sensitive to changes in struct proc.
fixes for warnings and ok nicm@
|
#
1.5 |
|
09-Aug-2009 |
nicm |
Nuke a dead variable found with clang and an unused declaration with lint.
|
#
1.4 |
|
03-Aug-2009 |
nicm |
Split the comparison into a function to make this code smaller and more understandable.
|
#
1.3 |
|
26-Jul-2009 |
nicm |
Go to the next if the current best process is replaced, don't keep comparing it with itself. Also fix process name comparison.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.2 |
|
26-Jun-2009 |
nicm |
Also #ifndef nitems here, caught by Thomas Jeunet.
|
#
1.1 |
|
01-Jun-2009 |
nicm |
Import tmux, a terminal multiplexor allowing (among other things) a single terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another.
ok deraadt pirofti
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.16 |
|
10-Oct-2016 |
nicm |
Loads more static, except for cmd-*.c and window-*.c.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.15 |
|
19-Jan-2016 |
nicm |
I no longer use my SourceForge address so replace it.
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.14 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.13 |
|
04-Jul-2014 |
guenther |
Track whether a process is a zombie or not yet fully built via flags PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads.
tweaks kettenis@ feedback and ok matthew@
|
#
1.12 |
|
16-Apr-2014 |
nicm |
Memory leak in error path and unnecessary assignment, from clang.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.11 |
|
10-Oct-2013 |
nicm |
Remove the KERN_PROC_CWD the proc_current_path format (which is the only thing that uses it now).
|
Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.10 |
|
18-Dec-2012 |
millert |
We no longer use struct eproc for kinfo_proc in sysctl.h so there is no direct need for sys/proc.h or sys/resource.h. Some consumers of kinfo_proc need these for the proc flags and rlimit defines like RLIM_INF so add the appropriate includes to them. OK deraadt@ sthen@
|
#
1.9 |
|
24-Sep-2012 |
nicm |
Use pgrp of pty fd not pid of immediate child when recovering current working directory (like current process). From Marcel Partap.
|
Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
|
#
1.8 |
|
09-Dec-2011 |
nicm |
Change the way the working directory for new processes is discovered. If default-path isn't empty, it is used. Otherwise:
1) If tmux neww is run from the command line, the working directory of the client is used.
2) Otherwise sysctl KERN_PROC_CWD is used to retrieve the current working directory of the process in the active pane.
3) If that fails, the directory where the session was created is used.
Support code by Romain Francois, OpenBSD specific bits by me.
Note this requires a recent userland and kernel with KERN_PROC_CWD.
|
Revision tags: OPENBSD_5_0_BASE
|
#
1.7 |
|
10-Apr-2011 |
guenther |
Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now that we've got name we want for the API we want
"ZAP!" deraadt@
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.6 |
|
24-Dec-2009 |
guenther |
Use sysctl() KERN_PROC2 instead of KERN_PROC, as the latter's ABI is sensitive to changes in struct proc.
fixes for warnings and ok nicm@
|
#
1.5 |
|
09-Aug-2009 |
nicm |
Nuke a dead variable found with clang and an unused declaration with lint.
|
#
1.4 |
|
03-Aug-2009 |
nicm |
Split the comparison into a function to make this code smaller and more understandable.
|
#
1.3 |
|
26-Jul-2009 |
nicm |
Go to the next if the current best process is replaced, don't keep comparing it with itself. Also fix process name comparison.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.2 |
|
26-Jun-2009 |
nicm |
Also #ifndef nitems here, caught by Thomas Jeunet.
|
#
1.1 |
|
01-Jun-2009 |
nicm |
Import tmux, a terminal multiplexor allowing (among other things) a single terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another.
ok deraadt pirofti
|