From owner-svn-src-stable-12@freebsd.org Thu May 30 15:15:49 2019 Return-Path: Delivered-To: svn-src-stable-12@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7EB6715C525C; Thu, 30 May 2019 15:15:49 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 252BA8F9BE; Thu, 30 May 2019 15:15:49 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 13BB41ADB1; Thu, 30 May 2019 15:15:49 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x4UFFm1L025297; Thu, 30 May 2019 15:15:48 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x4UFFmHj025292; Thu, 30 May 2019 15:15:48 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201905301515.x4UFFmHj025292@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Thu, 30 May 2019 15:15:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r348426 - in stable/12/usr.bin: . posixshmcontrol X-SVN-Group: stable-12 X-SVN-Commit-Author: kib X-SVN-Commit-Paths: in stable/12/usr.bin: . posixshmcontrol X-SVN-Commit-Revision: 348426 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 252BA8F9BE X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.986,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-src-stable-12@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for only the 12-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2019 15:15:49 -0000 Author: kib Date: Thu May 30 15:15:47 2019 New Revision: 348426 URL: https://svnweb.freebsd.org/changeset/base/348426 Log: MFC r348167, r348168, r348359, r348361: Add posixshmcontrol(1) utility. Added: stable/12/usr.bin/posixshmcontrol/ - copied from r348167, head/usr.bin/posixshmcontrol/ stable/12/usr.bin/posixshmcontrol/posixshmcontrol.1 - copied, changed from r348359, head/usr.bin/posixshmcontrol/posixshmcontrol.1 Modified: stable/12/usr.bin/Makefile stable/12/usr.bin/posixshmcontrol/Makefile stable/12/usr.bin/posixshmcontrol/posixshmcontrol.c Directory Properties: stable/12/ (props changed) Modified: stable/12/usr.bin/Makefile ============================================================================== --- stable/12/usr.bin/Makefile Thu May 30 15:13:23 2019 (r348425) +++ stable/12/usr.bin/Makefile Thu May 30 15:15:47 2019 (r348426) @@ -114,6 +114,7 @@ SUBDIR= alias \ patch \ pathchk \ perror \ + posixshmcontrol \ pr \ printenv \ printf \ Modified: stable/12/usr.bin/posixshmcontrol/Makefile ============================================================================== --- head/usr.bin/posixshmcontrol/Makefile Thu May 23 14:33:01 2019 (r348167) +++ stable/12/usr.bin/posixshmcontrol/Makefile Thu May 30 15:15:47 2019 (r348426) @@ -3,6 +3,5 @@ PROG= posixshmcontrol LIBADD= util WARNS?= 6 -MAN= .include Copied and modified: stable/12/usr.bin/posixshmcontrol/posixshmcontrol.1 (from r348359, head/usr.bin/posixshmcontrol/posixshmcontrol.1) ============================================================================== --- head/usr.bin/posixshmcontrol/posixshmcontrol.1 Wed May 29 13:51:18 2019 (r348359, copy source) +++ stable/12/usr.bin/posixshmcontrol/posixshmcontrol.1 Thu May 30 15:15:47 2019 (r348426) @@ -1,5 +1,4 @@ .\" Copyright (c) 2019 The FreeBSD Foundation, Inc. -.\" All rights reserved. .\" .\" This documentation was written by .\" Konstantin Belousov under sponsorship Modified: stable/12/usr.bin/posixshmcontrol/posixshmcontrol.c ============================================================================== --- head/usr.bin/posixshmcontrol/posixshmcontrol.c Thu May 23 14:33:01 2019 (r348167) +++ stable/12/usr.bin/posixshmcontrol/posixshmcontrol.c Thu May 30 15:15:47 2019 (r348426) @@ -160,10 +160,10 @@ shm_decode_mode(mode_t m, char *str) static int list_shm(int argc, char **argv) { - char *buf, *bp, sizebuf[8], str[10], c; + char *buf, *bp, sizebuf[8], str[10]; const struct kinfo_file *kif; struct stat st; - int error, fd, mib[3], ret; + int c, error, fd, mib[3], ret; size_t len, miblen; bool hsize, uname;