summaryrefslogtreecommitdiff
path: root/lib/libc/gen/setproctitle.c
Commit message (Collapse)AuthorAgeFilesLines
* Make setproctitle(NULL) restore all of the original argumentsBrian Somers1999-11-171-17/+44
| | | | | | | (if it's able). Notes: svn path=/head/; revision=53297
* Introduce commandline caching in the kernel.Poul-Henning Kamp1999-11-161-0/+9
| | | | | | | | | | | | | | This fixes some nasty procfs problems for SMP, makes ps(1) run much faster, and makes ps(1) even less dependent on /proc which will aid chroot and jails alike. To disable this facility and revert to previous behaviour: sysctl -w kern.ps_arg_cache_limit=0 For full details see the current@FreeBSD.org mail-archives. Notes: svn path=/head/; revision=53239
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Adjust for kern.ps_strings and PS_STRINGS not being a pointer. This isBruce Evans1998-12-161-8/+7
| | | | | | | | | | | an unimprovement here. I thought it would be an improvement, as in libkvm, but here we can access the strings directly. Use sysctlbyname() instead of sysctl() and trust it to give a nonzero address if it succeeds. Notes: svn path=/head/; revision=41875
* Oops, revert part of a diff that wasn't supposed to have been committed.David Greenman1998-04-281-2/+2
| | | | Notes: svn path=/head/; revision=35491
* Cache the results of the ps_strings sysctl so that it doesn't have to beDavid Greenman1998-04-281-10/+12
| | | | | | | redone for every call of setproctitle(). Notes: svn path=/head/; revision=35490
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-121-2/+1
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* If the two recently added sysctl variables exist, use those rather thanPeter Wemm1996-02-241-10/+17
| | | | | | | | | | the statically compiled PS_STRINGS and USRSTACK variables. This prevents programs using setproctitle from coredumping if the kernel VM is increased, and stops libkvm users (w, ps, etc) from needing to be recompiled if only the VM layout changes. Notes: svn path=/head/; revision=14236
* Bring in an initial version of setproctitle().. This is intended toPeter Wemm1995-12-261-0/+119
replace the dozen other various hacks in the code that do all sorts of crude things including spamming the envrionment strings with the new argv string. This version is mainly inspired by the sendmail version, with a couple of ideas taken from the NetBSD implementation as well. Notes: svn path=/head/; revision=13039