aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ipcs
Commit message (Collapse)AuthorAgeFilesLines
* usr.bin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-272-2/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-162-4/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-2/+0
|
* ipcs(1): drop obsolete error checkingAndriy Voskoboinyk2019-02-071-21/+6
| | | | | | | | | | This code is not reached since r77551. PR: 201728 MFC after: 5 days Notes: svn path=/head/; revision=343870
* Follow r329348 in ipcs for getting rid of the requirement to include SysV IPCLi-Wen Hsu2018-02-162-6/+8
| | | | | | | | | | headers with _KERNEL Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D14398 Notes: svn path=/head/; revision=329390
* Get rid of the requirement to include SysV IPC headers with _KERNELBrooks Davis2018-02-161-0/+3
| | | | | | | | | | | defined in ipcrm by introducing _WANT_SYSVxxx_INTERNALS defines. Reviewed by: jhb Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14271 Notes: svn path=/head/; revision=329348
* Remove unused include.Xin LI2017-11-291-1/+0
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=326361
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-273-3/+9
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Update dependencies after r291406 added libelf to libkvm.Bryan Drewery2015-12-011-0/+1
| | | | | | | | | | | Unfortunately filemon/meta mode tracks all indirect dependencies here since ld(1) is reading libelf when linking in libkvm. Churn would be reduced if this was able to be limited to direct dependencies. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291558
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-274-46/+40
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | ipcs: fix builds that use gccEitan Adler2015-04-142-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc gets annoyed by duplicate declarations Reported by: sbruno Reviewed by: sbruno Notes: svn path=/head/; revision=281517
* | | ipcs: fix warnings (WARNS=1 -> WARNS=6)Eitan Adler2015-04-134-40/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix shadow warnings - change type from off_t to size_t which is more correct and avoids signed/unsigned compare - use new initializer format to avoid "missing values" warning Reviewed by: jhb Notes: svn path=/head/; revision=281501
* | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |/ |/| | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin2014-06-231-1/+1
|/ | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
* Spelling fixes for usr.bin/Ulrich Spörlein2011-12-302-2/+2
| | | | Notes: svn path=/head/; revision=228992
* Remove semaphore map entry count "semmap" field and its tuningBjoern A. Zeeb2011-07-142-4/+1
| | | | | | | | | | | | | | option that is highly recommended to be adjusted in too much documentation while doing nothing in FreeBSD since r2729 (rev 1.1). ipcs(1) needs to be recompiled as it is accessing _KERNEL private variables. Reviewed by: jhb (before comment change on linux code) Sponsored by: Sandvine Incorporated Notes: svn path=/head/; revision=224016
* Use %zu when printing size_t.Xin LI2011-07-111-2/+2
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=223925
* 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