From owner-freebsd-current@freebsd.org Mon Aug 7 21:44:36 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0914BDCAEA6 for ; Mon, 7 Aug 2017 21:44:36 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) by mx1.freebsd.org (Postfix) with ESMTP id CB56A84F7B for ; Mon, 7 Aug 2017 21:44:35 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: by sdaoden.eu (Postfix, from userid 1000) id 2D93116051; Mon, 7 Aug 2017 23:36:08 +0200 (CEST) Date: Mon, 07 Aug 2017 23:36:56 +0200 From: Steffen Nurpmeso To: freebsd-current@freebsd.org Subject: Would O_APPEND for /dev/null be possible? Message-ID: <20170807213656.FwzOG%steffen@sdaoden.eu> Mail-Followup-To: freebsd-current@freebsd.org User-Agent: s-nail v14.9.3-dirty OpenPGP: id=232C220BCB5690A37BD22FFDEB66022795F382CE; url=https://www.sdaoden.eu/downloads/steffen.asc BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2017 21:44:36 -0000 I can open a file with "a+", which, for this software, means "O_RDWR | O_APPEND | O_CREAT | n_O_NOFOLLOW" on Linux, Solaris and OpenBSD, but FreeBSD complains, i think because O_APPEND. (I think only because the VM does not survive resumes and other pauses here, which frustrated me over time. It is old VM.) I mean, it seems i have to sprinkle more /dev/null string comparisons all over the place, but i wonder whether that really belongs there.. for /dev/null? Well, now that i am here. I have installed pcc and tcc ports because clang is much too slow, especially in VM, but they cannot be used because of mysterious attributes in some system header. I usually compile them on my own, but that did not help on FreeBSD too, at least not last time i tried. This is a bit of a pity, i have not tried it myself but one of the core developers of the tiny CC, who was part of ELF development, said, once that happened, that he made it compile the Linux kernel (!) again and "that seems to work", so it is a *real* pity that not even rather primitive C89 user programs can be compiled (with those compilers). That on v11.1, and with pkg stuff. Ciao! --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)