From owner-freebsd-current@freebsd.org Sun May 13 20:20:36 2018 Return-Path: Delivered-To: freebsd-current@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 B55FEFD0BE1 for ; Sun, 13 May 2018 20:20:36 +0000 (UTC) (envelope-from freebsd-current@textmail.me) Received: from mail.codevoid.de (brews.the.best.midnight.coffee [176.9.40.102]) by mx1.freebsd.org (Postfix) with ESMTP id 516B97D8EA for ; Sun, 13 May 2018 20:20:35 +0000 (UTC) (envelope-from freebsd-current@textmail.me) Received: from localhost (HSI-KBW-37-49-77-182.hsi14.kabel-badenwuerttemberg.de [37.49.77.182]) by mail.codevoid.de (Postfix) with ESMTPSA id 741AD15B29 for ; Sun, 13 May 2018 22:11:15 +0200 (CEST) MIME-Version: 1.0 Date: Sun, 13 May 2018 22:13:45 +0200 From: Stefan Hagen To: freebsd-current@freebsd.org Subject: How to access SIGWINCH? Message-ID: <20180513201344.GA34676@ptrace.hagen.corp> Mail-Followup-To: freebsd-current@freebsd.org Precedence: first-class Priority: normal X-Editor: VIM - Vi IMproved 8.0 X-Operating-System: FreeBSD 12.0-CURRENT amd64 X-Mailer: Mutt 1.9.5 (2018-04-13) X-PGP-Fingerprint: 4192 8A31 504A D6D6 6167 2C3C 1AFE 4370 883F CC91 OpenPGP: id=883FCC91; url=https://pgp.ptrace.org; preference=sign User-Agent: Mutt/1.9.5 (2018-04-13) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2018 20:20:36 -0000 Hello, I'm wondering how to get access to to the SIGWINCH signal. It is defined in /usr/include/sys/signal.h and behind the -D__BSD_VISIBLE switch. I can compile my code with this switch, but is this the proper way to do it? I would expect something like this behind -D_BSD_SOURCE or -D_XOPEN_SOURCE=700. What's the right way to access this signal? Best Regards, Stefan -- Stefan Hagen Phone: +49 (0)176 642 925 17 Defender of RFC 1855 | PGP Key in Header.