aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ipcs
Commit message (Collapse)AuthorAgeFilesLines
* Make the char *n_name member of struct nlist 'const'.Bjoern A. Zeeb2010-06-101-1/+1
| | | | | | | | | | | | | This avoids errors or __DECONST() from places with higher WARNS levels. Adjust a local cache variable in ipcs to const as well to compile in the new world order. Suggested by: jhb Reviewed by: jhb, kib, brueffer (man) Notes: svn path=/head/; revision=208986
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Change the ABI of some of the structures used by the SYSV IPC API:John Baldwin2009-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The uid/cuid members of struct ipc_perm are now uid_t instead of unsigned short. - The gid/cgid members of struct ipc_perm are now gid_t instead of unsigned short. - The mode member of struct ipc_perm is now mode_t instead of unsigned short (this is merely a style bug). - The rather dubious padding fields for ABI compat with SV/I386 have been removed from struct msqid_ds and struct semid_ds. - The shm_segsz member of struct shmid_ds is now a size_t instead of an int. This removes the need for the shm_bsegsz member in struct shmid_kernel and should allow for complete support of SYSV SHM regions >= 2GB. - The shm_nattch member of struct shmid_ds is now an int instead of a short. - The shm_internal member of struct shmid_ds is now gone. The internal VM object pointer for SHM regions has been moved into struct shmid_kernel. - The existing __semctl(), msgctl(), and shmctl() system call entries are now marked COMPAT7 and new versions of those system calls which support the new ABI are now present. - The new system calls are assigned to the FBSD-1.1 version in libc. The FBSD-1.0 symbols in libc now refer to the old COMPAT7 system calls. - A simplistic framework for tagging system calls with compatibility symbol versions has been added to libc. Version tags are added to system calls by adding an appropriate __sym_compat() entry to src/lib/libc/incldue/compat.h. [1] PR: kern/16195 kern/113218 bin/129855 Reviewed by: arch@, rwatson Discussed with: kan, kib [1] Notes: svn path=/head/; revision=194910
* Correct types of variables used to track amount of allocated SysV sharedKonstantin Belousov2009-03-021-2/+2
| | | | | | | | | | | | | | | | | memory from int to size_t. Implement a workaround for current ABI not allowing to properly save size for and report more then 2Gb sized segment of shared memory. This makes it possible to use > 2 Gb shared memory segments on 64bit architectures. Please note the new BUGS section in shmctl(2) and UPDATING note for limitations of this temporal solution. Reviewed by: csjp Tested by: Nikolay Dzham <i levsha org ua> MFC after: 2 weeks Notes: svn path=/head/; revision=189283
* Fix printing of shared memory limits.Ruslan Ermilov2008-12-161-5/+5
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=186174
* Add the ability to clean up all shared memory segments which areEdwin Groothuis2007-12-254-197/+296
| | | | | | | | | | | | | | | | | | | | | | | | unused in one go. From the original PR: I've observed that linux apps running under the linuxulator have a habit of leaving behind shared memory segments which are unused, but which eventually cause the system to run out of free segments and these apps will stop working. ipcrm(1) currently only allows removal of unused message queues, shared memory segments and semaphores on an individual basis, or those having a matching (non-zero) key. However it would often be convenient to just do a complete cleanup of everything, usually as root. PR: bin/118292 Submitted by: Callum Gibson <callumgibson@optusnet.com.au> Not reviewed by: grog@ Approved by: grog@ Notes: svn path=/head/; revision=174891
* Stylify ipcs/ipcs.c and ipcrm/ipcrm in preparation of the upcomingEdwin Groothuis2007-12-181-285/+354
| | | | | | | | | | | | changes as proposed in bin/118292. Feel free to mention any I have missed, there is much to learn with regarding to style(9). Approved by: grog@ Notes: svn path=/head/; revision=174750
* o Fix typo in a comment.Maxim Konovalov2006-05-151-1/+1
| | | | | | | | | PR: bin/97292 Submitted by: clsung MFC after: 3 days Notes: svn path=/head/; revision=158587
* Change the data type of the upper shared memory limits from a signedChristian S.J. Peron2005-08-061-5/+5
| | | | | | | | | | | | | | | integer to an unsigned long. This lifts variables like the maximum number of pages available for shared memory from 2^31 to 2^32 on 32 bit architectures, and from 2^31 to 2^64 on 64 bit architectures. It should be noted that this changes breaks ABI on 64 bit architectures because the size of the shmmax, shmmin, shmmni, shmseg and shmall members of the shminfo structure has changed. Silence on: current@ Notes: svn path=/head/; revision=148782
* If sysctlbyname fails for kernel related reasons, tag the errnoChristian S.J. Peron2005-05-241-1/+1
| | | | | | | | | | string to the end of the error message. I think we used errx() there when we really wanted an err(). MFC after: 1 week Notes: svn path=/head/; revision=146602
* Use 12 columns for (int) values, 20 columns for (long) and alignGiorgos Keramidas2005-03-081-47/+50
| | | | | | | | | | | | | | headers properly (right justified for numbers, left justified for everything else). This fixes the alignment of the fields on i386, sparc64 and amd64 today but does not dynamically assign column widths or bear in mind that some of the values may be 64-bit in the future. Reviewed by: alfred Notes: svn path=/head/; revision=143286
* Turn K&R functions into prototypes.Stefan Farfeleder2005-02-101-17/+6
| | | | Notes: svn path=/head/; revision=141610
* Sort sections.Ruslan Ermilov2005-01-181-4/+4
| | | | Notes: svn path=/head/; revision=140420
* third of several commits to allow kernel System V IPC data structuresRobert Watson2004-11-121-66/+66
| | | | | | | | | | | | | | | to be modified and extended without breaking the user space ABI: Make the "ipcs" tool, which grubs around in kernel memory to report status relating to System V IPC, use the _kernel variants on the System V IPC data structures. Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research Notes: svn path=/head/; revision=137618
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-4/+8
| | | | Notes: svn path=/head/; revision=131491
* Added -u to the SYNOPSIS.Ruslan Ermilov2004-05-181-0/+1
| | | | Notes: svn path=/head/; revision=129404
* Bump document date on behalf of the -u option.Ruslan Ermilov2004-05-181-2/+2
| | | | Notes: svn path=/head/; revision=129403
* Add -u option to ipcs(1) and document it in ipcs.1Bosko Milekic2004-03-242-3/+39
| | | | | | | | | | It allows you to list IPC facilities owned by username/uid. Submitted by: Christian S.J. Peron <maneo@bsdpro.com> PR: bin/63463 Notes: svn path=/head/; revision=127348
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).Ruslan Ermilov2004-02-051-2/+2
| | | | Notes: svn path=/head/; revision=125503
* Cosmetic fix on some TIME related columns.Mitsuru IWASAKI2003-10-301-6/+6
| | | | Notes: svn path=/head/; revision=121746
* Markup bits.Ruslan Ermilov2003-05-211-2/+2
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115217
* The descriptions of the -C and -M options were around the wrong way;Tim J. Robbins2003-03-241-10/+10
| | | | | | | | | | fix this. PR: 49968 MFC after: 2 weeks Notes: svn path=/head/; revision=112528
* Add -M, -Q, -S, and -T to the usage message.Tim J. Robbins2003-03-241-1/+1
| | | | Notes: svn path=/head/; revision=112527
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-4/+2
| | | | Notes: svn path=/head/; revision=99112
* Replace /kernel with /boot/kernel/kernel.Josef Karthauser2002-05-091-3/+3
| | | | | | | | PR: docs/37757 Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org> Notes: svn path=/head/; revision=96247
* Use `The .Nm utility'Philippe Charnier2002-04-201-1/+1
| | | | Notes: svn path=/head/; revision=95124
* 1) Add missing prototypes for fmt_perm and cvt_time.David Malone2002-03-301-6/+8
| | | | | | | | | | 2) Move a break outside a #if block to keep gcc3 from seeing a "default:" at the end of a block. 3) Fix some format warnings. Some remain which can be fixed more easily when we have a full C99 printf. Notes: svn path=/head/; revision=93434
* remove __PWarner Losh2002-03-221-4/+3
| | | | Notes: svn path=/head/; revision=92920
* Fixed divots that I created when I moved prototypes of group_from_gidWarner Losh2002-02-191-0/+2
| | | | | | | | | | and user_from_uid to grp.h and pwd.h. Update the man pages. Submitted by: David Malone Pointy hat to: imp Notes: svn path=/head/; revision=90878
* Include missing header files which define functions for which gcc hasDima Dorfman2001-06-241-0/+1
| | | | | | | builtins (e.g., exit, strcmp). Notes: svn path=/head/; revision=78718
* Don't install setgid kmem.Dima Dorfman2001-06-011-2/+0
| | | | Notes: svn path=/head/; revision=77562
* Convert to use the sysctl interface to obtain the data when operatingDima Dorfman2001-05-312-52/+240
| | | | | | | | | | on a running system. Using kvm is still supported, primarily for postmortem analysis. Reviewed by: tmm Notes: svn path=/head/; revision=77551
* mdoc(7) police: removed history info from the .Os FreeBSD call.Ruslan Ermilov2000-12-141-1/+1
| | | | Notes: svn path=/head/; revision=70015
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68963
* Remove the undocumented semconfig() system calls. These cause more troublePeter Wemm2000-05-011-8/+0
| | | | | | | than they are worth. Notes: svn path=/head/; revision=59821
* Instead of checking for a non-zero return value from kvm_read, checkJacques Vidrine2000-03-311-1/+1
| | | | | | | whether we read as many bytes as we expected. Notes: svn path=/head/; revision=58869
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-1/+1
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50477
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.Philippe Charnier1998-03-231-5/+3
| | | | Notes: svn path=/head/; revision=34801
* Add rcsid, Remove unused vars.Philippe Charnier1997-07-152-15/+16
| | | | Notes: svn path=/head/; revision=27421
* From the PR:Eivind Eklund1997-05-041-2/+2
| | | | | | | | | | | | | ipcs -T' shows system information about shared memory, message queues and semaphores. But the manual description does not mention semapores. Now it does. PR: docs/3489 Submitted by: k-horik@yk.rim.or.jp Notes: svn path=/head/; revision=25466
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-223-3/+3
| | | | Notes: svn path=/head/; revision=23012
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-143-3/+3
| | | | | | | | | | | 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
* delete doubled words, e.g.: "the the" -> "the"Wolfram Schneider1996-10-051-2/+2
| | | | Notes: svn path=/head/; revision=18718
* s/msg/shm/ for one variable.Joerg Wunsch1996-07-181-2/+2
| | | | | | | Submitted by: jin@george.lbl.gov (Jin Guojun[ITG]) Notes: svn path=/head/; revision=17216
* Drop privileges if we're not reading standard kernel file or namelist.Paul Traina1996-05-301-1/+9
| | | | | | | Submitted by: smpatel (Sujal Patel) Notes: svn path=/head/; revision=15990
* Instantiate our own variables instead of depending on bogus commonBruce Evans1995-07-121-2/+5
| | | | | | | declarations in system headers that will be fixed soon. Notes: svn path=/head/; revision=9499
* NetBSD -> FreeBSDNate Williams1994-11-191-2/+2
| | | | | | | (Bring to 2.0 please) Notes: svn path=/head/; revision=4679
* Declared msginfo, shminfo, and seminfo structs.David Greenman1994-09-191-1/+5
| | | | Notes: svn path=/head/; revision=2890