From nobody Sun Jun 4 03:42:02 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QYjGx2TmYz4YQKW for ; Sun, 4 Jun 2023 03:42:17 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QYjGv6wjQz3pN6 for ; Sun, 4 Jun 2023 03:42:15 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=MHhoTnan; spf=pass (mx1.freebsd.org: domain of aryeh.friedman@gmail.com designates 2a00:1450:4864:20::634 as permitted sender) smtp.mailfrom=aryeh.friedman@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-973f78329e3so562330766b.3 for ; Sat, 03 Jun 2023 20:42:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685850134; x=1688442134; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=xxwSqyO3w/wurhY8h2PUiv4loXYkk/R7sR6lj1LiuL0=; b=MHhoTnanGyKDzveLDucp3jjfvpbVxhIPAP1S/nJmYxuuTEcgPEAH1rAKExmcgg89dO LeCZTmjsxMRqoIgTrKl85H6PAND8Z0VMq17ghGg2ar5ezMsVwaoTrsh7VaH3IteZye3J qZ3kDPhhcZZ9NRO2l9mhz7ePkjLi6DeLVf5YTTEZRwMAIpHAn4Xib/mGFg9PPzU/bRb9 /wBjB/5wYAmoE97RA8UFNb8XK6aW93sqPC8LSMV7o9Mgn4g95XZR49N40o99rcSNxTKB 2aY9XtWEeQHp0k8RAQSv2WzFFzLALyUDQZpoOxeRdCSaCy8FVP/nW9tU8xdtV6CkbnCR xN8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685850134; x=1688442134; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xxwSqyO3w/wurhY8h2PUiv4loXYkk/R7sR6lj1LiuL0=; b=W4m5N3HcezBZOAciTOKYzf/kpK6AARUjQuBeIe9R/TJQLlnsPp7jrfpR7aTC/9LaBf KrxBGsLaIsvBsk7G481YTm4++uWTT1HfDhTpaK6SpU5z8OhL0Gx224sYvj/GQjZ4oR/e StJYC4fX5qUjwtpUo+djR3k6ZzS+3rxMaAuMMB9Wxyq0LBFpvh2/Ov9P98oVGIRQH3hi haKo7CMWnarFpw00IRhU2lW4OyLxpa+hBr5aFzYfJli1Tn+dOYtQGrcujYXxTc4c1rWJ fganssI6IIQDiMbLeBac1MeV+3cSAaHIEgxraM2C5+m+b/sk+ZifYlcaO+3dUfQMMSp1 oljw== X-Gm-Message-State: AC+VfDyprPZtGjF4rnbtOp+Ck6DPjL6Vaocr/zCDafzaVTtzcDe6Zf1z wcXGuUVUcvdl0ZFjuI6NPOruqrRSa0bEdP2FrrCqbFZq X-Google-Smtp-Source: ACHHUZ6+TCkyzbQG7j054XnTRNLBMtc/a4Nf8bI69jSu7KWnAQzY0ycHx2TWAA4ulM89pC7VvyAVs9yzPIt05PPNcHo= X-Received: by 2002:a17:907:787:b0:94f:3980:bf91 with SMTP id xd7-20020a170907078700b0094f3980bf91mr3730664ejb.19.1685850133940; Sat, 03 Jun 2023 20:42:13 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 From: Aryeh Friedman Date: Sat, 3 Jun 2023 23:42:02 -0400 Message-ID: Subject: OT: Who has better hardware support Linsucks or FreeBSD To: FreeBSD Mailing List Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-0.49 / 15.00]; NEURAL_HAM_SHORT(-0.98)[-0.982]; NEURAL_SPAM_MEDIUM(0.86)[0.857]; NEURAL_SPAM_LONG(0.63)[0.635]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::634:from]; ARC_NA(0.00)[]; TAGGED_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4QYjGv6wjQz3pN6 X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N If you said Linux (linsucks) then you're wrong: I have debian living quite happily inside a bhyve vm but when I decided to bite the bullet and turn my windows drive into a linux drive and do a fresh install of debian onto it... Absolutely refuses to boot no matter what says something about uhid having no end point and then displays something about a disk check and just hangs... when booting the new partition via bhyve it boots just fine.. -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From nobody Sun Jun 4 04:18:09 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QYk4X400Lz4YS9j for ; Sun, 4 Jun 2023 04:18:20 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QYk4V1705z3shp for ; Sun, 4 Jun 2023 04:18:18 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=mzcexD5I; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 184.105.128.27 as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com; dmarc=pass (policy=none) header.from=holgerdanske.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1685852290; bh=R8ZCZfO7xMSoMmmlf6+VTrtApQr6NE1HwUqIXLERprE=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=mzcexD5IuD7z1MVMZ2vYQgoJ4INjOWy1zrgYyR8jKDPZWKxLaPkYegLAGNDtL24Au APSuQmA5sG8xbMZYXyers8rnoH7XAObxgvrSKvMWYTFRvIuULvd6qwbhYgJTVC4kZs 2EORDnoshGI1c9vafgIxiu6R55kFDeiHye82rnYeGpNkI7zJCrr5hs7fJoj7cD7/Dd B1eUZdmb0jEWdF4YBDhCpOHdp2xzlll+YkK+2NHzkci5TQ8UoKbj07fyiBU1nR24an eBbRFVWl7KuZYO/zwklH6kwQMe7vtpVCwN6KkHUG6fDJzxXlXcn81JbjqWi4P4Iit9 9LhsN58r9HoO+HOhNBKwrgOmNQlZ0jLtAALZ6rpFYYlxRAvbCpahEdb2hsFX8tLV2i rKGZISB8Gcfb753S+AMsacJKv5jr0o+oBnI/Z6h8KUGJR8cuFIZzVYnn68s2GUjG+2 WUWYuDfVDuwP1b4lx6CnjuJ8+o42stRXaXmEiiskEvn6PNex5hFn/hUfiGSEuKZ4kO 0CpWGV5HsVnl4uX3B1u4kSDl0C7BEGdwIndmHvUdlF+3fEpR1CwzuRBPbLMm+GKPA0 v+AL2/fF6+wl2Ym67MtXNjk9EgtaUqJSkP7xsyAxab790DWNAmPosxssSPTm5u0QCL 1LlnN2yRXUH3qcmhpY4O7jyI= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sat, 3 Jun 2023 21:18:10 -0700 Message-ID: <219baed1-2b29-2c86-1b98-4938d927bba6@holgerdanske.com> Date: Sat, 3 Jun 2023 21:18:09 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: OT: Who has better hardware support Linsucks or FreeBSD To: questions@freebsd.org References: Content-Language: en-US From: David Christensen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-0.98)[-0.976]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; R_SPF_ALLOW(-0.20)[+a]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[holgerdanske.com:+]; BLOCKLISTDE_FAIL(0.00)[99.100.19.101:server fail,184.105.128.27:server fail]; MLMMJ_DEST(0.00)[questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4QYk4V1705z3shp X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On 6/3/23 20:42, Aryeh Friedman wrote: > If you said Linux (linsucks) then you're wrong: > > I have debian living quite happily inside a bhyve vm but when I > decided to bite the bullet and turn my windows drive into a linux > drive and do a fresh install of debian onto it... Absolutely refuses > to boot no matter what says something about uhid having no end point > and then displays something about a disk check and just hangs... If you need help installing Debian on your computer, please post to: debian-user@lists.debian.org David From nobody Mon Jun 5 11:55:09 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QZX9F5DFgz4ZnSv for ; Mon, 5 Jun 2023 11:55:13 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QZX9D32Dvz3HtP for ; Mon, 5 Jun 2023 11:55:12 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=D5auw16H; spf=pass (mx1.freebsd.org: domain of freebsdlouisville@gmail.com designates 2607:f8b0:4864:20::731 as permitted sender) smtp.mailfrom=freebsdlouisville@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-75d50f25cc9so135726085a.1 for ; Mon, 05 Jun 2023 04:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685966111; x=1688558111; h=content-transfer-encoding:subject:to:content-language:user-agent :mime-version:date:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=VcuOVZbycQca/QCKBxYmsVJ3xJGeYvMr6x/MTnBMPZk=; b=D5auw16HGQOKc2VQGcICEYFOGAEq78BrTrn2TkoTVDiEJ1AVsR8aBbQmFYPm3CIfmB tJjcZhlXb0OpnQTS3hCBaBHi/4QK92G36rtrsxZJsHLeHILpss+fC4qNfQ1SdjV8zUqx N1+xA+/wnUH52BvQrLxW+Z+HtrfayQkcgFh5JTOFCUpZRKsX8sRkRJ9NTn4dm7GN565k 1n0INO4js3CSflqUqep3xwFInipwuke87roT1XESgljTN/NhVx7b+Qp03xv7EWuhd1OS HeUvu8mMcGfSJ/fIFO9J++6DbZWQYQouEv0uCrA1rsbGzCheuAbrOrp5dc0rnPVXrB2y Vyfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685966111; x=1688558111; h=content-transfer-encoding:subject:to:content-language:user-agent :mime-version:date:message-id:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VcuOVZbycQca/QCKBxYmsVJ3xJGeYvMr6x/MTnBMPZk=; b=Y+uFPiL4/GE0b0DD0u3gDbKxVbt7ii68ckfSGbonIibIW4QQ6YpqjotVLyJOWNKlvK xVvB4JBzApBUyD1jyEWPrnZ5voyFjcfU96zMiHncujHCkO0qcOUWROoSGFzrBrwKvGfm PhBRYZqa51Byl9Xh8gqjUvROMUhkebbDWE/l/qXZPAAXfAESDmzmpTvaudlXf3TGYKOn RV2OzORh89NfFX59gsPLV4om0XWy5U1ge6U6+o406Y3jd18kJxe2I67fg0y2rv416P6c CLOWDMfegrK15aROZ++8ch5GpOdsIt/TVmDGS3kTwmGuWmn77cBYzgSENp/1YpPOHBDY 04Dg== X-Gm-Message-State: AC+VfDy4lD0gQGBAyCY9IA3kdkD5JHdw2Hoac+Lu/abRzo3cDS0He8Qt 7z5eZTubuKpCz/4oXe3dpy+ECyF2mQ0= X-Google-Smtp-Source: ACHHUZ7ghq3p2kOlwX8t9uhQfu8qpBzObpUjvqaHYx+YnVIC9N3siWYbjwj1zrrL9cMhAtDL37BGkQ== X-Received: by 2002:a05:620a:3983:b0:75c:cc9f:1e3f with SMTP id ro3-20020a05620a398300b0075ccc9f1e3fmr17038907qkn.4.1685966111490; Mon, 05 Jun 2023 04:55:11 -0700 (PDT) Received: from [192.168.2.13] (34.sub-75-221-217.myvzw.com. [75.221.217.34]) by smtp.gmail.com with ESMTPSA id h3-20020ae9ec03000000b007579ea33cdesm4138143qkg.62.2023.06.05.04.55.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Jun 2023 04:55:11 -0700 (PDT) From: Steven Friedrich X-Google-Original-From: Steven Friedrich Message-ID: <63a3e937-07bb-2710-b5a3-aa7f982ebdf5@Gmail.com> Date: Mon, 5 Jun 2023 07:55:09 -0400 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: en-US To: FreeBSD Questions Mailing List Subject: FreeBSD 14 is delayed Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-1.02 / 15.00]; NEURAL_HAM_SHORT(-0.83)[-0.831]; NEURAL_SPAM_LONG(0.61)[0.613]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; NEURAL_SPAM_MEDIUM(0.20)[0.195]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::731:from]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org] X-Rspamd-Queue-Id: 4QZX9D32Dvz3HtP X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N Can anyone provide any status?  Is there a mailing list to monitor? -- FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64 From nobody Mon Jun 5 12:09:45 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QZXVj1PCCz4ZqwF for ; Mon, 5 Jun 2023 12:10:21 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QZXVj0ztqz3LyT for ; Mon, 5 Jun 2023 12:10:21 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b1badb8f9bso27204661fa.1 for ; Mon, 05 Jun 2023 05:10:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685967019; x=1688559019; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GB/cEToIbT+t2zek6GkDSboRE+E18FwJN3l7etBpQ9I=; b=XA3tbNKeEcf8wK84G8/sKuypXgt2uCVrk1z5ITTwcCzO9wqt6EQlU9t/L0CZ0jhBIm cPXUKUTNk69uzsu8mm8iT3ppyRbyOgKbufEMs8mN2U2xFKdJrNmQdZvzN7tBFI0E542a 5IkjtVNs9lAY05f4oipwB9y7/53Pr43p/Tsa/bFz19BjDq749+oDsfHtDgaVv6sqGakv XhUlKVjTiM2chQ5bD8z+qlerIVbxEOxPRb7n87vLAtqP7ANWPypdYAZrx6YzAJ0GmVPP EooK1yha1mtbTcHGhKn4rzWEN9O3W5/aMEx/MJjelzEmnL3zsTyfBOmHcesMMyfmDEkM D56g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685967019; x=1688559019; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GB/cEToIbT+t2zek6GkDSboRE+E18FwJN3l7etBpQ9I=; b=CsblMXrloJM8VPUvVq1SrPT1YR8SYG/se4eF1s1up6xD//VX+QrHx7YR9Qp93pnm6o bKWlp+lvhX8CYw3H+3ZoCr20QI/lnDb/ih6GiRc8zMu1LDHPmH0hCejz7MgVzAPK0SG6 pk0r/wcfb0V+sDxueRg0Dwi2uNjA3rgGobsP5CkluutEu10FKcBux01yz06rfVpoIUDn i+o2+SWd2WH3g36uisb6gqQ7+LBsCFALrW2pqNG0qYjjXKwjFzNC652sbGbTp98pE1f2 WYFwoVFnAHPzzLs3+9QOIVQDuA4SGOxvoBis/fAyY1KSfTJ9DDjOrWBE3vhnILb9dxlQ WV0Q== X-Gm-Message-State: AC+VfDyGYUEeMoWpklBo6P608Y9Ad/Yrqzkl9QfHzD9oW1DSXSuEcbNR okxNcbxKHT19QDSo9me7cAiVGW0bvueAaehf9JUnivNuK0JB4bYc X-Google-Smtp-Source: ACHHUZ6MD2CgNvO5doMeWEXyH60U07ZonoNjUES0hbj0TKYgVKl7ByKS6yoFTsh41+q1tHd0tFxXXuIs4uVhWJBvBr0= X-Received: by 2002:a2e:8547:0:b0:2b1:e5d7:633a with SMTP id u7-20020a2e8547000000b002b1e5d7633amr1261759ljj.1.1685967019019; Mon, 05 Jun 2023 05:10:19 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <63a3e937-07bb-2710-b5a3-aa7f982ebdf5@Gmail.com> In-Reply-To: <63a3e937-07bb-2710-b5a3-aa7f982ebdf5@Gmail.com> From: Odhiambo Washington Date: Mon, 5 Jun 2023 15:09:45 +0300 Message-ID: Subject: Re: FreeBSD 14 is delayed To: Steven Friedrich Cc: FreeBSD Questions Mailing List Content-Type: multipart/alternative; boundary="0000000000004592d705fd60c96e" X-Rspamd-Queue-Id: 4QZXVj0ztqz3LyT X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --0000000000004592d705fd60c96e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Is there anything specifically interesting to be looked fwd to in 14? https://www.freebsd.org/releases/14.0R/schedule/ On Mon, Jun 5, 2023 at 2:55=E2=80=AFPM Steven Friedrich wrote: > Can anyone provide any status? Is there a mailing list to monitor? > > -- > FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE > releng/13.2-n254617-525ecfdad597 GENERIC amd64 > > > --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --0000000000004592d705fd60c96e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Is there anything specifically interesting to be looked fw= d to in 14?


On Mon, Jun 5, 2023 at 2:55=E2=80=AFPM Steven Friedrich <freebsdlouisville@gmail.com> wro= te:
Can anyone p= rovide any status?=C2=A0 Is there a mailing list to monitor?

--
FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE rel= eng/13.2-n254617-525ecfdad597 GENERIC amd64




--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.&qu= ot;,=C2=A0egrep -v '^$|^.*#'= ;=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questions.html]
--0000000000004592d705fd60c96e-- From nobody Mon Jun 5 12:11:28 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QZXX61jZBz4ZrV1 for ; Mon, 5 Jun 2023 12:11:34 +0000 (UTC) (envelope-from yuri@aetern.org) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4QZXX51lPHz3N3F for ; Mon, 5 Jun 2023 12:11:33 +0000 (UTC) (envelope-from yuri@aetern.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=aetern.org header.s=fm1 header.b=0F2FcQwg; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="Q 5Qtpac"; spf=pass (mx1.freebsd.org: domain of yuri@aetern.org designates 64.147.123.24 as permitted sender) smtp.mailfrom=yuri@aetern.org Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 3157632002FB for ; Mon, 5 Jun 2023 08:11:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 05 Jun 2023 08:11:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aetern.org; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1685967090; x=1686053490; bh=i44pX9kPEF0O3Tl9Uslh53WJzf61wfQneTx T22u3QFY=; b=0F2FcQwgNh2yKM3cUkEO0B6LV2N8H/8l4QumzVEzcHqZG8QyZyI UQlbdFVV01p9yeH9f/5gAuy03Fjs3+uE58ldz4O4gf7q87Gkc3zgOx34QQ3/uvPC lXFZTwsk3uYkCAjloY0gQ6ijyqw8nwa3JumMGzzSN6zGEl2rt7hqAV+XMx2kkxy3 dhe9zupD6YbpgiZlpRiPEuYkrkaU/kvzkS7w1qRyfOyPGScl00wvg2De/pXvoLEu wD7xLZGzf4xlYJPeulRHHI8Xu4JutJMr/qIHTk6d4hNDofFTsSmXWuQ0nWMGaHlj YACknmWLWyx0X0RI3oplXY4iiEROAjwmCog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1685967090; x= 1686053490; bh=i44pX9kPEF0O3Tl9Uslh53WJzf61wfQneTxT22u3QFY=; b=Q 5Qtpac2HOGLPwTkdsYLb2RMTS9tOnTCl/q58RxangLdNN4QcFccFgdDW39K6ytLT s58fndCBmWWxqAgotXeQzB2K28j4Sl0uvirkcH2PVBIp8dwbP1zlnFTbHZu7V7Bt vXAb3FBBB5K45rxcAqV41nUFthFXc8BtWWBj3GdOXSHb38yARd0iiW7/fEX+KDLW tCZX/QU6saLUP9/IJZOAbVjSxXdeTj4uLSg1S+xu75gDAwEOm1ji0nGcZvqDZgf6 t7aeTbpk2hVw6JnY7l+lYcGO2sJoeLn9/1HPn4LV6N7yVo0ZAVd7hAa8qEaKeKtI EmUjN/CdkjmMuguc5ZLXw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeelledggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtke ertddtfeejnecuhfhrohhmpegjuhhrihcuoeihuhhrihesrggvthgvrhhnrdhorhhgqeen ucggtffrrghtthgvrhhnpeeivefgieekjeetgfetieffgeduteehhefhudeufefhjeehge ffteevlefffffggeenucffohhmrghinhepfhhrvggvsghsugdrohhrghenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeihuhhrihesrggvthgvrh hnrdhorhhg X-ME-Proxy: Feedback-ID: i0d79475b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 5 Jun 2023 08:11:30 -0400 (EDT) Message-ID: <1531af04-c6cb-a455-5dfb-740a91a8f02f@aetern.org> Date: Mon, 5 Jun 2023 14:11:28 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: FreeBSD 14 is delayed To: questions@freebsd.org References: <63a3e937-07bb-2710-b5a3-aa7f982ebdf5@Gmail.com> Content-Language: en-US From: Yuri In-Reply-To: <63a3e937-07bb-2710-b5a3-aa7f982ebdf5@Gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4QZXX51lPHz3N3F X-Spamd-Bar: / X-Spamd-Result: default: False [-0.40 / 15.00]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.24]; R_DKIM_ALLOW(-0.20)[aetern.org:s=fm1,messagingengine.com:s=fm1]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; DKIM_TRACE(0.00)[aetern.org:+,messagingengine.com:+]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; local_wl_from(0.00)[yuri@aetern.org] X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: local_wl_from X-ThisMailContainsUnwantedMimeParts: N Steven Friedrich wrote: > Can anyone provide any status?  Is there a mailing list to monitor? current@, specifically this thread (also cross-posted to arch@ and hackers@): https://lists.freebsd.org/archives/freebsd-current/2023-May/003609.html From nobody Mon Jun 5 12:34:02 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QZY252926z4ZvfD for ; Mon, 5 Jun 2023 12:34:05 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QZY236w1Fz3k69 for ; Mon, 5 Jun 2023 12:34:03 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=bMt6yULB; spf=pass (mx1.freebsd.org: domain of freebsdlouisville@gmail.com designates 2607:f8b0:4864:20::d2c as permitted sender) smtp.mailfrom=freebsdlouisville@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-777b0dd72d8so37134639f.1 for ; Mon, 05 Jun 2023 05:34:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685968443; x=1688560443; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:user-agent:mime-version:date:message-id:from:from:to:cc :subject:date:message-id:reply-to; bh=bnBMl0uFuTIDM7J+edlDANeVySlEer8s3lpxrcXqqYQ=; b=bMt6yULBKHISVSu3U8C7wQy4W0xSFmzfx/1I90I9XeiVRtbBUBGf3zwyV1Z1ekAFEV 0HpdiAjbfgb6CizBTur/aPjLpghl02D+oASbGcFGKEaldGvAuwi5XTBbyMPlncxZ6fTM zU4MCDQOyW4PlNamuHA40612lef3TDMiYzr4DJrjVF+3NkQQxLOW/ecuSKlRWlsrYYZc yHQrQOV5Tt10rESnRKHVLrGIonmfQPgfY18N7U3+WS2Fz/cNKEyf1G1/csLFjePHjt1H LwZ6CxY8nAWRCAm6aB7XXigr82hglxgI0maoMV9utJvggeBBJv5ObaEnsRunvOhlT/tD xyOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685968443; x=1688560443; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bnBMl0uFuTIDM7J+edlDANeVySlEer8s3lpxrcXqqYQ=; b=UQo9pd/jrt8p4ZVKl7grpcm4I0KTmJIP3ki6QdpLUp4tUYwSr6kDCd1U3GkSY/LLDl sx0U9VSr0xjgxH8RXrjXz54FN3kndc3iH4UQlBAEFK2MtM0T64fR3AdJHb3UFAalQGBM C5D2cxPnG4C1H62Jvr0AFSI/lxWpArXhhxqGvK5dej/2npLT/UH50R5gk5IS7CS7YmvX fJrKZBS1dZ/50pl1Sz+2bfDbpXAxaDtCuucvbJwhHN+yDWgeKqxQDL7JGiUIN5vn1Ihy 2As8LopgfWWotkpmN0GMucJpK+P3qW5YiD4WgeJHHamcj26Omc+xUBfrKx/PZCeNtjBe di1g== X-Gm-Message-State: AC+VfDzg/oUEzqckPbHovoMr1MnP0Q3jKFSn5Js/XINAwfOlOsLl1XoO 509KbH051h4x4qQ9lP1mGXOCOBG3wnw= X-Google-Smtp-Source: ACHHUZ4V5PeeAwjNT2fR0tXImRr9gOJAHTGo5tsXBxGAwOpq5X+SEtezc4Z5vQFX5n7DVOEOOP+ZSA== X-Received: by 2002:a6b:da05:0:b0:777:b64b:9b92 with SMTP id x5-20020a6bda05000000b00777b64b9b92mr1868183iob.18.1685968442579; Mon, 05 Jun 2023 05:34:02 -0700 (PDT) Received: from [192.168.2.5] (34.sub-75-221-217.myvzw.com. [75.221.217.34]) by smtp.gmail.com with ESMTPSA id j14-20020a02cb0e000000b0041a84d0c828sm2195486jap.87.2023.06.05.05.34.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Jun 2023 05:34:02 -0700 (PDT) From: Steven Friedrich X-Google-Original-From: Steven Friedrich Message-ID: <3badf476-6ea1-761f-e851-94dcb445c9fd@Gmail.com> Date: Mon, 5 Jun 2023 08:34:02 -0400 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: FreeBSD 14 is delayed To: questions@freebsd.org References: <63a3e937-07bb-2710-b5a3-aa7f982ebdf5@Gmail.com> <1531af04-c6cb-a455-5dfb-740a91a8f02f@aetern.org> Content-Language: en-US In-Reply-To: <1531af04-c6cb-a455-5dfb-740a91a8f02f@aetern.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-1.21 / 15.00]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.43)[-0.425]; NEURAL_SPAM_LONG(0.35)[0.347]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; NEURAL_HAM_MEDIUM(-0.13)[-0.131]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d2c:from]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4QZY236w1Fz3k69 X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N On 6/5/2023 8:11 AM, Yuri wrote: > Steven Friedrich wrote: >> Can anyone provide any status?  Is there a mailing list to monitor? > current@, specifically this thread (also cross-posted to arch@ and > hackers@): > > https://lists.freebsd.org/archives/freebsd-current/2023-May/003609.html Thank you. From nobody Mon Jun 5 20:18:40 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QZlLK0Cxxz4b5x8 for ; Mon, 5 Jun 2023 20:18:49 +0000 (UTC) (envelope-from sysadmin.lists@mailfence.com) Received: from wilbur.contactoffice.com (wilbur.contactoffice.com [212.3.242.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4QZlLH4t6Mz40F2 for ; Mon, 5 Jun 2023 20:18:47 +0000 (UTC) (envelope-from sysadmin.lists@mailfence.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mailfence.com header.s=20210208-e7xh header.b="O/PTD5LV"; spf=pass (mx1.freebsd.org: domain of sysadmin.lists@mailfence.com designates 212.3.242.68 as permitted sender) smtp.mailfrom=sysadmin.lists@mailfence.com; dmarc=pass (policy=quarantine) header.from=mailfence.com Received: from ichabod.co-bxl (ichabod.co-bxl [10.2.0.36]) by wilbur.contactoffice.com (Postfix) with ESMTP id EDF039F9 for ; Mon, 5 Jun 2023 22:18:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1685996323; s=20210208-e7xh; d=mailfence.com; i=sysadmin.lists@mailfence.com; h=Date:From:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; l=5659; bh=86X4LqV8pDjGkYMkMRfLICGxKneSTbSVxVPW+nv/dTs=; b=O/PTD5LVpP1xa/4Vn6bbPfC+B8sHJDa79J2Tv2hVKQQ/iQ86l6MUYXYFrOHLSElU 6dphEJ+5nTxrV0wEqXUcl/F82IuaOtKtNFwmTYoWb+kwV9w9umnugrVe7pj3yPKf/om RMHhcZYrEfCaFMHRNo30dT6F3DoCELL+SSdFISTH9qdBLxVToYpNyzVAf0iQhpOp0lC wYn3N09tod3R2dOg2tRRA1g1wbXRUZRE6AUSeKv6knvtyvw+tB9rsBY32eFuGcBGb41 3ABUG6mj4aH61hBbPsOCI/fTRZtP8L3q2N9A+UPuNovArCVfpw02meMqQCGkpbnYDh+ VZlNWdECVw== Date: Mon, 5 Jun 2023 22:18:40 +0200 (CEST) From: Sysadmin Lists To: questions@freebsd.org Message-ID: <1368945115.467084.1685996320460@ichabod.co-bxl> In-Reply-To: <1653882830.656908.1685438569298@ichabod.co-bxl> References: <1653882830.656908.1685438569298@ichabod.co-bxl> Subject: Re: pkg-ugprade checksums List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:312482426 X-Spamd-Result: default: False [-4.08 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[mailfence.com,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:212.3.242.64/26]; R_DKIM_ALLOW(-0.20)[mailfence.com:s=20210208-e7xh]; RCVD_IN_DNSWL_LOW(-0.10)[212.3.242.68:from]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:10753, ipnet:212.3.242.64/26, country:US]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[mailfence.com:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4QZlLH4t6Mz40F2 X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N Top-posting a partial answer since I'm the OP. Finally had some time to com= pile `pkg' with full debug symbols and run it under gdb. # pkg info vim-x11 | grep Insta Installed on : Mon Apr 17 21:24:26 2023 PDT # stat -f %Sm tmpdir/pkg_project/All/vim-x11-9.0.1366.pkg=20 May 27 02:17:07 2023 Which means the package was installed prior to the newest build. Checking the local repo database: # pkg shell sqlite> .open /var/db/pkg/repo-Poudriere-quarterly.sqlite sqlite> select name,version,cksum from packages where name is 'vim-x11'; name =3D vim-x11 version =3D 9.0.1366 cksum =3D ae560492c77e7629a4c7b8162b256acbd39e4656c55516afcb8729121afc9= 4dd The cksum matches the sha256 fingerprint of the recently built package. Which means: 1. My local repo is up-to-date. 2. My local cache isn't. 3. pkg doesn't notice. pkg_checksum.c:pkg_checksum_generate() describes how the fingerprint is generated for `pkg query %X' (the "internal package checksum"): Thread 2.1 hit Breakpoint 2, pkg_checksum_calculate (pkg=3D0x801519800, db= =3D0x0, inc_scripts=3Dtrue, inc_version=3Dfalse, inc_files=3Dtrue) at /wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg-1.19.1/libpkg/pkg_checksu= m.c:606 (gdb) c Continuing. =20 Thread 2.1 hit Breakpoint 1, pkg_checksum_generate (pkg=3D0x801519800, dest= =3D0x8014416f0 "h", destlen=3D112, type=3DPKG_HASH_TYPE_BLAKE2_BASE32, inc_= scripts=3Dtrue, inc_version=3Dfalse, inc_files=3Dtrue) at /wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg-1.19.1/= libpkg/pkg_checksum.c:189 (gdb) break pkg_checksum.c:553 Breakpoint 3 at 0x4b1b15: pkg_checksum.c:553. (2 locations)=20 (gdb) c =20 Continuing. =20 Thread 2.1 hit Breakpoint 3.1, pkg_checksum_encode_base32 ( in=3D0x801516900 "\246n&_K5\031\322\025R\242\347\tt\265y`\234\251*\303a= \t\\\2558\334`\345e\300&\301o:H\253=C9=9A\3460\220\351\205T\250", inlen=3D6= 4, out=3D0x8014416f4 "gi5c1xpjijgr7kekn73uy4is3daa3wkfdqa1yqiiabzbs1zcysjn= hzj8e4kucp4hobru6n1kefyhj8gobouo1w96xb3fjzqafc9b8f", outlen=3D108) at /wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg-1.19.1/libpkg/pkg_checksu= m.c:553 These are the variables used to generate the checksum: /* =20 * At the moment we use the following fields to calculate the unique checks= um * of the following fields: * - name * - origin * - version * - arch * - options * - required_shlibs * - provided_shlibs * - users * - groups * - dependencies */ =20 For vim-x11, it's "archfreebsd:13:x86:64namevim-x11origineditors/vim" =20 And letting it run to completion, we get: =20 1: pkg->digest =3D 0x801441450 "2$2$bpgamyc8d17g7qm1orycj4qjq18xe9kbzhqctwu= qugejakj7ppqoo7i7kokimc33h5ejb168nb13m7tgr1ggang4krgcsyicskzjs1y" 2: new_digest =3D 0x8014416f0 "2$2$gi5c1xpjijgr7kekn73uy4is3daa3wkfdqa1yqii= abzbs1zcysjnhzj8e4kucp4hobru6n1kefyhj8gobouo1w96xb3fjzqafc9b8fb" pkg->digest is the value found inside local.sqlite (named "manifestdigest")= , and new_digest is the one generated during this run. There's a directive to update the database with the new digest value, but i= t doesn't get executed on '%X' queries. Now, to ask pkg@ what the intention behind that is. > ---------------------------------------- > From: Sysadmin Lists > Date: May 30, 2023, 2:22:49 AM > To: > Subject: pkg-ugprade checksums >=20 >=20 > How does pkg-upgrade check checksums? >=20 > From man 8 pkg-upgrade: >=20 > Packages are fetched from the repositories into the local package ca= che > if they are not already present, or if the checksum of the cached pa= ckage > file differs from the one in the repository. >=20 > But, the packagesite.yaml of my Poudriere repo has: > "name":"vim-x11" > "version":"9.0.1366" > "sum":"ae560492c77e7629a4c7b8162b256acbd39e4656c55516afcb8729121afc94dd" >=20 > And the locally cached package has: > # sha256 -r /var/cache/pkg/vim-x11* > 3bbe31951bc5fd6b08c412fcb0c6f8b494cdb15eafdd4bbacdf1657fe567af43 /var/cac= he/pkg/vim-x11-9.0.1366.pkg >=20 > Yet it doesn't get upgraded: >=20 > # pkg update -fr Poudriere-quarterly > Updating Poudriere-quarterly repository catalogue... > Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 =20 > Fetching packagesite.pkg: 100% 153 KiB 157.1kB/s 00:01 =20 > Processing entries: 100% > Poudriere-quarterly repository update completed. 568 packages processed. > All repositories are up to date. >=20 > # pkg upgrade -r Poudriere-quarterly vim-x11 > Updating Poudriere-quarterly repository catalogue... > Poudriere-quarterly repository is up to date. > All repositories are up to date. > Checking integrity... done (0 conflicting) > Your packages are up to date. >=20 > # truss -fs 256 pkg update -fr Poudriere-quarterly=20 > Shows packagesite.yaml.pkg downloaded to /tmp/, presumably runs its check= s, > then deletes it. >=20 > If I force re-installation, it downloads the new package and installs it. > # pkg install -fr Poudriere-quarterly vim-x11=20 >=20 > So, why is pkg-upgrade's checksums check failing? And why isn't there a > persistent packagesite.pkg on the client for pkg-update to compare to (to= see > if it needs updating) as implied by: >=20 > Package repository catalogues will be automatically updated whenever= pkg > upgrade is run by a user ID with write access to the package databas= e >=20 > I looked at pkghash.h and upgrade.c but don't see where the hash check is > failing. >=20 >=20 > --=20 > Sent with https://mailfence.com =20 > Secure and private email >=20 --=20 Sent with https://mailfence.com =20 Secure and private email From nobody Thu Jun 8 10:10:06 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QcKhm113Vz4bFVD for ; Thu, 8 Jun 2023 10:10:16 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (mailserver.netfence.it [78.134.96.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailserver.netfence.it", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QcKhk65RWz3pK8 for ; Thu, 8 Jun 2023 10:10:14 +0000 (UTC) (envelope-from ml@netfence.it) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 78.134.96.152 as permitted sender) smtp.mailfrom=ml@netfence.it; dmarc=pass (policy=none) header.from=netfence.it Received: from [10.1.2.18] (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.17.1/8.17.1) with ESMTPSA id 358AA6u1009141 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Thu, 8 Jun 2023 12:10:07 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be [10.1.2.18] Message-ID: <006c13e9-3bf9-2d24-6871-b2137927fab2@netfence.it> Date: Thu, 8 Jun 2023 12:10:06 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Check if running inside script Content-Language: en-US To: Andrea Venturoli Cc: freebsd-questions@freebsd.org References: <6b3f5a7f-e0cb-bb6f-38d5-050348d76387@netfence.it> <6EA6AE47-94CD-4C44-BFC9-2D69D85271F4@gushi.org> From: Andrea Venturoli In-Reply-To: <6EA6AE47-94CD-4C44-BFC9-2D69D85271F4@gushi.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-3.79 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; DMARC_POLICY_ALLOW(-0.50)[netfence.it,none]; R_SPF_ALLOW(-0.20)[+ip4:78.134.96.152]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:35612, ipnet:78.134.0.0/17, country:IT]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; HAS_XAW(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4QcKhk65RWz3pK8 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On 5/8/23 15:13, Dan Mahoney (Ports) wrote: > Well, the environment variables > > TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal[…longer output snipped] > and > TERM=screen > > Might be a hint. > > -Dan Thanks to all that answered! This works. bye av. From nobody Thu Jun 8 10:16:09 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QcKqb3qNbz4bGcp for ; Thu, 8 Jun 2023 10:16:11 +0000 (UTC) (envelope-from yuri@aetern.org) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4QcKqb1YTPz3qNW for ; Thu, 8 Jun 2023 10:16:11 +0000 (UTC) (envelope-from yuri@aetern.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=aetern.org header.s=fm1 header.b=oqlEq796; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="Q o3vRjX"; spf=pass (mx1.freebsd.org: domain of yuri@aetern.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=yuri@aetern.org Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1086B5C012C for ; Thu, 8 Jun 2023 06:16:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 08 Jun 2023 06:16:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aetern.org; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1686219371; x=1686305771; bh=TAZ8jyO9lvFnzjTG/2T7HZg02BgRqAarX9h YT/coH5s=; b=oqlEq796FWKJi+7dGX6B1VaTSwRsEwIwXvx4URRErZwa+qw6Img 7vxALk7HabUa3mYzXYfbvhkz6a6IB85sm/+04tI7V+HUIsWoh6SjAgJZ3JLflFV2 J0qkA7dPiAiTbAn6hWt0lIa5OiYDy3ZTiuVK8wa7rAtnH+7SxRk3jbguFFMQe6eU HjjIu9mJRTruNWdaMzj3wEvh+c234/EazS+iwp73U03UYO1FHdy1vCEgVZEQr5n9 Vj5jZfzSR3VAekByKcsHKkarNiHuV4rDzJWQM9DADwwI1NsXB8jRzQLv2s4t/1XP o89X1e/us0HWyPs8Z0AR2zSn+PfTUGhrKDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1686219371; x= 1686305771; bh=TAZ8jyO9lvFnzjTG/2T7HZg02BgRqAarX9hYT/coH5s=; b=Q o3vRjXTDAkK3ukInpfzoq+ybq+1RsQVg49yaXC1pIkWT0YtZVQA5hQTFpH/mF0KU 5cZAEI4vhIbyOWBBOY3V/Qb8sYWeI2jid1wwhQH9F1yzZGlNbIF/ZWEfNQS7eXR7 8EfvfzofQ8s3avm4tcNJfhe41LmET2DESnjRjdrDlHzEbhc2MdicV2kEKFMVw6DR Qi3x2tV9084AdAWG2M2gHZOHQFh9z60x/1uYRaJwEF/FRGvISJU9fkvbXRji2OeS jDmCVu4bJH9QOzWsU17Zt9AHJJKn7UOQY8Lou/t2RpCzQGPDWSRT9848MEQsLmce j+HKLdL1QZcYAycxTjFhw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedtiedgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpegjuhhrihcuoeihuhhrihesrggvthgvrhhnrdhorhhgqeen ucggtffrrghtthgvrhhnpeevvdegledtveekudfhjeeggeffteehueejlefhkeegffethe evveejfefhgffftdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpeihuhhrihesrggvthgvrhhnrdhorhhg X-ME-Proxy: Feedback-ID: i0d79475b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 8 Jun 2023 06:16:10 -0400 (EDT) Message-ID: Date: Thu, 8 Jun 2023 12:16:09 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: Check if running inside script To: questions@freebsd.org References: <6b3f5a7f-e0cb-bb6f-38d5-050348d76387@netfence.it> Content-Language: en-US From: Yuri In-Reply-To: <6b3f5a7f-e0cb-bb6f-38d5-050348d76387@netfence.it> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4QcKqb1YTPz3qNW X-Spamd-Bar: / X-Spamd-Result: default: False [-0.40 / 15.00]; R_DKIM_ALLOW(-0.20)[aetern.org:s=fm1,messagingengine.com:s=fm1]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.27]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; local_wl_from(0.00)[yuri@aetern.org]; DKIM_TRACE(0.00)[aetern.org:+,messagingengine.com:+]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US] X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: local_wl_from X-ThisMailContainsUnwantedMimeParts: N Andrea Venturoli wrote: > Hello. > > Is there a way a shell script of mine can check if running inside > sysutils/screen? Answers on stackexchange (I'm using tmux so didn't check) mention that screen sets STY env var, check it. From nobody Thu Jun 8 10:34:11 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QcLDg3VPFz4bKVj for ; Thu, 8 Jun 2023 10:34:27 +0000 (UTC) (envelope-from serejk@febras.net) Received: from prima.febras.net (prima.febras.net [62.76.193.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "*.febras.net", Issuer "AlphaSSL CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QcLDf5cdWz3vXP for ; Thu, 8 Jun 2023 10:34:26 +0000 (UTC) (envelope-from serejk@febras.net) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (host.164-138-91-83.broadband.redcom.ru [164.138.91.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: serejk@febras.net) by prima.febras.net ("FEB RAS network Mail Server") with ESMTPSA id F3FA255B900; Thu, 8 Jun 2023 20:34:12 +1000 (VLAT) From: Korolev Sergey Message-Id: <5F4B47E8-E3A0-479D-B0E1-732AFBB659E0@febras.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_DB6C3D00-C26D-4F71-A126-99EE6EA0B73A" List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Subject: Re: Check if running inside script Date: Thu, 8 Jun 2023 20:34:11 +1000 In-Reply-To: Cc: questions@freebsd.org To: Yuri References: <6b3f5a7f-e0cb-bb6f-38d5-050348d76387@netfence.it> X-Mailer: Apple Mail (2.3654.120.0.1.15) X-FEBRAS-Info: Contact e-mail: admin@febras.net X-FEBRAS-ID: F3FA255B900.A5EA6 X-FEBRAS: clean X-FEBRAS-SpamCheck: not spam, SpamAssassin (not cached, score=-1.338, required 5, ALL_TRUSTED -1.00, AWL -1.34, BAYES_50 0.80, HTML_MESSAGE 0.00, MR_NOT_ATTRIBUTED_IP 0.20, URIBL_BLOCKED 0.00) X-FEBRAS-From: serejk@febras.net X-FEBRAS-To: questions@freebsd.org, yuri@aetern.org X-Spam-Status: No X-Rspamd-Queue-Id: 4QcLDf5cdWz3vXP X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34017, ipnet:62.76.193.0/24, country:RU] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_DB6C3D00-C26D-4F71-A126-99EE6EA0B73A Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii echo $TERM > On 8 Jun 2023, at 20:16, Yuri wrote: > > Andrea Venturoli wrote: >> Hello. >> >> Is there a way a shell script of mine can check if running inside >> sysutils/screen? > > Answers on stackexchange (I'm using tmux so didn't check) mention that > screen sets STY env var, check it. > --Apple-Mail=_DB6C3D00-C26D-4F71-A126-99EE6EA0B73A Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii echo $TERM

On 8 Jun 2023, at 20:16, Yuri <yuri@aetern.org> wrote:

Andrea Venturoli wrote:
Hello.

Is there a way a shell script of mine can check if running inside
sysutils/screen?

Answers on stackexchange (I'm using tmux so didn't check) mention that
screen sets STY env var, check it.


--Apple-Mail=_DB6C3D00-C26D-4F71-A126-99EE6EA0B73A-- From nobody Thu Jun 8 18:01:19 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QcX8b3bFxz4cDP9 for ; Thu, 8 Jun 2023 18:01:35 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QcX8Y4V66z3tdj for ; Thu, 8 Jun 2023 18:01:33 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=q5A3+Mtc; spf=pass (mx1.freebsd.org: domain of aryeh.friedman@gmail.com designates 2a00:1450:4864:20::52a as permitted sender) smtp.mailfrom=aryeh.friedman@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-514ab6cb529so4113112a12.1 for ; Thu, 08 Jun 2023 11:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686247292; x=1688839292; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=IlfhocTthZvI5l/rqDGh1mD7cQ0+h8Gsh2WznRU8QBY=; b=q5A3+MtcVC4kSUg1Atnriu4eoKo4v3ubZRPNgTjaK5W/Dksi/2wkIvfPdeD0TikUM0 PfTaHPMDFpmDw0nIaCK2LcIdAVzfqC6R8JNlME7RwythjVqvwTx/6roZOC62hWt+H5s0 gH6WVFJxRr/NMGErnyz4p6KIE9jiqkOyMuh5jmgXbhTYTuVZe5TdeCbVYCZ5uSJ6TOmU qzvYoHPXiNGCqQVeWZEN9iQ0RUsF5IUN/I8Lz5dph25hBzsawbNtEkXyinJTKtoklFC2 apZ6YoGmxpH18f0NJW7oL2/tGyvur/EvEeK0owL9/4eOMtlGhorLf8Q32jbeS5RrKCqN vrfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686247292; x=1688839292; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=IlfhocTthZvI5l/rqDGh1mD7cQ0+h8Gsh2WznRU8QBY=; b=at8VYcNpvZhL9iqkRc3uOLEtxR6+tcptK4YbsH7zd/SHPo2rjfHSuUwcV09M1F4BYT KVk2hAe+N71XmO6MfXOzjbyWvB/PNg90MK5XQ4SGLcS+QdKGgM37HdTMwl1bVjoW6lu8 zThUJlN3Zzd5XFu76l0ct1MvfRzGULOjKJ6Vm13zzfwbKVnaELQQzR1c2Q9MzzwxXrtz 2FQwg+xlkiVRXzzXtv7xC0Ah/7zXcLuTN8+gw4muLbV+ixkMcXiQJT6DmrdvVQklMyv2 Qo8AwhcKuYxeOrhTbBiTFhScXtRYfQUizFK7ACKRLRy089h6vWxLEerx1OaVOgEgdteG aZLA== X-Gm-Message-State: AC+VfDxM8g6RsgRqjamXTcAqGKgSsaj5jG2KBHO0BbLTs/VTDjMfShjP UdoETcy7ZsQGOBtPAmQkmjgXz3K7R5jyKakftbBMxqWF X-Google-Smtp-Source: ACHHUZ7CyDBOYa0XKjYHbCtjd6WNAJGlgXj1ByVIw5pTNBNnh8lqPSm64GVBkHXQkIxz1JrcfNFGWz5+oho9NXup2IU= X-Received: by 2002:a17:906:4788:b0:977:d27e:dd5f with SMTP id cw8-20020a170906478800b00977d27edd5fmr350221ejc.28.1686247291459; Thu, 08 Jun 2023 11:01:31 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 From: Aryeh Friedman Date: Thu, 8 Jun 2023 14:01:19 -0400 Message-ID: Subject: Slightly OT: non-buffered stdin in Java To: FreeBSD Mailing List Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-3.23 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.992]; NEURAL_HAM_LONG(-0.85)[-0.852]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.38)[-0.385]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; BLOCKLISTDE_FAIL(0.00)[2a00:1450:4864:20::52a:server fail]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52a:from]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TAGGED_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4QcX8Y4V66z3tdj X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Under Java stdin (System.in) is a buffered stream not sent to the application until return is pressed. But, Java can read from files/sockets and other generic InputStreams unbuffered. So I was wondering if there is a command that will make stdin go to a file so that Java can open that file and read it unbuffered? I know I can do something like cat ->file but that makes it hard to sync stdout and stderr (both are unbuffered in Java) with the file version of stdin -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From nobody Thu Jun 8 18:39:36 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QcY0X5sb4z4cKMt for ; Thu, 8 Jun 2023 18:39:40 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QcY0W0Zq3z43VL for ; Thu, 8 Jun 2023 18:39:38 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.at header.s=s31663417 header.b=LwjfCmRi; spf=pass (mx1.freebsd.org: domain of dr.klepp@gmx.at designates 212.227.17.22 as permitted sender) smtp.mailfrom=dr.klepp@gmx.at; dmarc=pass (policy=none) header.from=gmx.at DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1686249577; x=1686854377; i=dr.klepp@gmx.at; bh=BSorQkVQkFUZDGsoHzW2SI+JvnviK/InYU18J1wMn5s=; h=X-UI-Sender-Class:From:To:Subject:Date:References:In-Reply-To; b=LwjfCmRiMXbqDBeL1dM5qa/umMr3WIpkXHXdHPBZSo7vgmeXqM0zXPTx+cyKoFK7VgDzOVs Rp7RJid7r5060fjmvU1LCMTKQ2kpbibdvsawt+5hZFKgot/l8DdVQSUUnoAmGsMEKJVBFDUWX fFqQ/q20cUuf5e8PxIBTuY7rl1N5Rfl+EIeTGD8leg0I6KKTm48tnZIw3MwyuIKBppRWK+VyW hyeAyZnujxrneFiecqa/l5rQQugd+FYY3vFsx4Rw3XRL3P88140DL1vT/38975C6OcfEMD/jt +07iVPl94vXOVHKgS58O72H9Nl82L2lBG6bwCStnmG2WpzAbV+6w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from neo.lan ([78.142.103.142]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MmDIu-1ph2Gf1F1k-00iBs0 for ; Thu, 08 Jun 2023 20:39:37 +0200 From: "Dr. Nikolaus Klepp" To: questions@freebsd.org Subject: Re: Slightly OT: non-buffered stdin in Java Date: Thu, 8 Jun 2023 20:39:36 +0200 User-Agent: KMail/1.9.10 References: In-Reply-To: X-KMail-QuotePrefix: > List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <202306082039.36831.dr.klepp@gmx.at> X-Provags-ID: V03:K1:ELDnxDXaftGAG56TmuQ7+xt0ilvhLAZbXsC8u0nl+TjGqchFTwc wRuZgykaA1GUaRCoNZLd4PEtsOURwwNwhjjY2z6mTebl1YOU/3smOszK+THchSYNjBGaa14 ab3D8j3DqdtMJ/c2m9oxqI2oZ07nwp9MRv+Os+ZSdwA9jxH1a6RNC/0fRejRInqFs+qYNXG YUGAXRfKr0mbL9N7d1HYQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:YUjb+NxrmHo=;6CAqks5YZH0f8+vDsh9lQ6Mb+li pY0kNc+XnaCbDxZTG03fadUZEF0iA5HS6Y1nY45x0YnbUOFsgZ7Ny8CWifm1GM0yr6BnbxU2C aZoRna+Dk2a2TN3E1/QUE+DFYQ1l+xqY3i6KAh2DHY4IdRgmIflcbRgGWnAAFjQd6TKuQcnC6 HPSbcWAVhrmRaXF8AwRb5e/8VCBNBI7ujg7UyavDXotatESpe/lP46sY82HP6hRpE5uQ9CUUa t4KEyocVNb8StiLet1uWwwsqGHZwpaJY5OAXB/zVs/Ka/82J6f7oOgvfwMUK0MCMI1q+gP1i8 UaJBGcEF31AeblRBQjp3JtV/cCfjX3IkQ6DBS3/Ulx7AcxmXtOySJpIz0C9Z/jmaEHJFSxD7Q 2k9JUHZtdcUcGrLqv3aN82WefRM9VxtzyjcRJyP6RzzS4V+z6XBEiZ64/iONfGxuEk3F9FeUO w1S5SnvgkKg0puE1RdhZ7xT2pYvMUFFYmbf1gQNuftNMxusIlNQUwY8j4iLuToMFN6wxmIlkd lp5bHBGeeZnL+Bgy8XV28cgPFK0wGriopp8i2ynZJM9SrMsJPZgJQbcWFCIhIaKrQRro5aULw kyaUQNNxfBiftwWefRlzHdYzAsFk5aEWF4poDOeVqW142h7nINSijK1L0GVVTn/xocuupn0JS Cxi9L0UW2tAK6v2Z4gB8sIQq3KyC12DyMj73VkvaW74O+Y3a/uQU7lg2uu5Wkx0FtgLPC3dBy NwbLHsbPn8lVmUxCYjvDqkUnPoGg8pImT+apaadyHmSIU5D/ApWXNuA5BC/cJA++zxTMr6ckE pNPhyxzz5EktVhKc0WwSguHc8tpqFdbuBHhgaOBMOk24gNyUq9qBAq0D/U5sR0goWxZO1+WnP fvMPmxaxy+UIb7I/z9sF8XMiq8681WLFyZ2UUEvp66FNs/Y1cBmW7Mdg/3z2haS9nLVMW+uQo 7Kue9hVeQww3oOHO8rZSV7mtDqU= X-Spamd-Result: default: False [-1.22 / 15.00]; MID_CONTAINS_FROM(1.00)[]; FROM_NAME_HAS_TITLE(1.00)[dr]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_HAM_LONG(-0.87)[-0.872]; DMARC_POLICY_ALLOW(-0.50)[gmx.at,none]; R_SPF_ALLOW(-0.20)[+ip4:212.227.17.0/27]; RWL_MAILSPIKE_VERYGOOD(-0.20)[212.227.17.22:from]; R_DKIM_ALLOW(-0.20)[gmx.at:s=s31663417]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.17.22:from]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_SHORT(-0.05)[-0.045]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; BLOCKLISTDE_FAIL(0.00)[78.142.103.142:server fail]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[gmx.at:+]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmx.at]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmx.at]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4QcY0W0Zq3z43VL X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N Anno domini 2023 Thu, 8 Jun 14:01:19 -0400 Aryeh Friedman scripsit: > Under Java stdin (System.in) is a buffered stream not sent to the > application until return is pressed. But, Java can read from > files/sockets and other generic InputStreams unbuffered. So I was > wondering if there is a command that will make stdin go to a file so > that Java can open that file and read it unbuffered? > > I know I can do something like cat ->file but that makes it hard to > sync stdout and stderr (both are unbuffered in Java) with the file > version of stdin > "stdbuf" might be what you look for: https://man.freebsd.org/cgi/man.cgi?query=3Dstdbuf Nik =2D- Please do not email me anything that you are not comfortable also sharing = with the NSA, CIA ... From nobody Thu Jun 8 21:22:38 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qcccr273Pz4bZ3s for ; Thu, 8 Jun 2023 21:22:52 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qcccq6v4lz4P4H for ; Thu, 8 Jun 2023 21:22:51 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-977cc662f62so167379566b.3 for ; Thu, 08 Jun 2023 14:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686259370; x=1688851370; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QAx7XxMJamvaMuf12fphgVXJXd8GkHZms9lubcyz0v4=; b=rku26DhurytuMu1xdd26T2/z4tCjU7BW2fhmMwMA2Kq1TlLt/gdvnti+Xo9XsR42Kn llQs2DNsC4bykQSfqplhlMBK+Peto6+a8QCs6Q+pCTzQSa7Q5vXrbmeovhPG7ALy7lyL xMWabXUcA7uS8QY+aXANK4twOIzM8vAqZKyz2mH2honitxx5z0MdIah34JLjIV4575Pc x1+K0xfXuBxU5h3//dbskIVuIC/jmCo26/6UEtHXnRYEw4pdxMissCtYwrnqJQLSBfck sZXOfc6WV/btCi8FLcxOhFdpjdFPc/Pscz8nIUS5Zl4ofGMFW9wWes0SwY7Y/X9actfF HXgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686259370; x=1688851370; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QAx7XxMJamvaMuf12fphgVXJXd8GkHZms9lubcyz0v4=; b=K+aaSoLy4PELs17+Hxs4HFyC8ehBhirP1zc8IcPQ3jI1UMfwDyri7AsmX6rohXGubu wFhC/x93f3WHzgf/z0tGJIGgldOvBX9D9sUrA4Kvhlyqa7VbeJuszCfEg0HxDTdJjRNz 5dzCY55umUtA7fz1bcH/IZmTvZprpWiPA0yh76xmF90QcBtuWCnbQ3cGiA0vYuiuPOhF K6ax8fzjsq2JOHViB4iQ4p9QOCrJ3xuh72PX2OactbXEEXhqsopA4m1zsANkhRu4yZ9V K/fTUmEy/myLDAaTaJEr7fSmv9k+Nkub4Xj8WgEj2DAg/vrMcCQBrT9eFRwk5rkiA0Le vDLA== X-Gm-Message-State: AC+VfDwS9/pJe/XJyUFArLVcoVX1oRzB6tPWyY4j47eLBqcjSMIY9MuR BTMElxExKBxF/zPpdasG7oJ1wKhC0vxDQTAvBBtVHzqr X-Google-Smtp-Source: ACHHUZ4FJfvz7YTmw5hVS8cmFrCPYxJV7U065NpiGC2s8I4HSZUxUS7MDYawGTf2ZRHDXaBupT20jFLlJFJiQCdfPdY= X-Received: by 2002:a17:906:dc92:b0:974:1c90:a097 with SMTP id cs18-20020a170906dc9200b009741c90a097mr363754ejc.12.1686259370418; Thu, 08 Jun 2023 14:22:50 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <202306082039.36831.dr.klepp@gmx.at> In-Reply-To: <202306082039.36831.dr.klepp@gmx.at> From: Aryeh Friedman Date: Thu, 8 Jun 2023 17:22:38 -0400 Message-ID: Subject: Re: Slightly OT: non-buffered stdin in Java To: "Dr. Nikolaus Klepp" Cc: questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Qcccq6v4lz4P4H X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, Jun 8, 2023 at 2:39=E2=80=AFPM Dr. Nikolaus Klepp = wrote: > > Anno domini 2023 Thu, 8 Jun 14:01:19 -0400 > Aryeh Friedman scripsit: > > Under Java stdin (System.in) is a buffered stream not sent to the > > application until return is pressed. But, Java can read from > > files/sockets and other generic InputStreams unbuffered. So I was > > wondering if there is a command that will make stdin go to a file so > > that Java can open that file and read it unbuffered? > > > > I know I can do something like cat ->file but that makes it hard to > > sync stdout and stderr (both are unbuffered in Java) with the file > > version of stdin > > > > "stdbuf" might be what you look for: > > https://man.freebsd.org/cgi/man.cgi?query=3Dstdbuf Will likely need to play with it more but stdbuf -i 0 -o 0 cat -|cat didn't produce the expected immediate echo I still had to hit return --=20 Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From nobody Thu Jun 8 22:36:42 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QcfG62zBcz4bmnq for ; Thu, 8 Jun 2023 22:36:46 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QcfG44SrLz3K26 for ; Thu, 8 Jun 2023 22:36:44 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.at header.s=s31663417 header.b=skUyvXWC; spf=pass (mx1.freebsd.org: domain of dr.klepp@gmx.at designates 212.227.15.15 as permitted sender) smtp.mailfrom=dr.klepp@gmx.at; dmarc=pass (policy=none) header.from=gmx.at DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1686263802; x=1686868602; i=dr.klepp@gmx.at; bh=3P/sJURJ044wVHe931Llved8KzOroZVhXEbVwOIhfls=; h=X-UI-Sender-Class:From:To:Subject:Date:References:In-Reply-To; b=skUyvXWCOfO2TNIGjvrnVd+qPfeoTdO7vOO7/b5oMUPtBzIM08iBhiHHMTK3WCzwnD/DH8s wqgr+uoJoLqy6KAEGNUZDVbqg3ScAp85lK94ZyOUp4lSv1TYgH7E5FttZd2xyKXLLXPuIoP8Y CxhxuvAEQQUc73tkNIZxmNMoA1dFsck7U/EmKB0TXq0L4YPuOZIFj2lZKwAopyRf+3yv8k6IM jaTUXFIUdKfiv5bR5YWlmpoRtobjdHWpYwtcFzoNQcE9Cvw5jlbIiLNsT7C1tiFVw0mvtTRWv gZ+zke5bRueaA6FhE/+yb57blwAPOFoIA0hAQ3FcNxgYojEVczog== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from neo.lan ([78.142.103.142]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1ML9yS-1qOMrg2XJq-00IDzc for ; Fri, 09 Jun 2023 00:36:42 +0200 From: "Dr. Nikolaus Klepp" To: questions@freebsd.org Subject: Re: Slightly OT: non-buffered stdin in Java Date: Fri, 9 Jun 2023 00:36:42 +0200 User-Agent: KMail/1.9.10 References: <202306082039.36831.dr.klepp@gmx.at> In-Reply-To: X-KMail-QuotePrefix: > List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <202306090036.42118.dr.klepp@gmx.at> X-Provags-ID: V03:K1:CsH8hpHne4DkPCQgAlSl+Z2ikrYHlt+ikDpe4+VDcZJztB8CrY5 1tu6tb1ZLs6qIps7TrlAePy/0cbvZnmj2pZg3D+bSRCYAkSwQHHmQL8wVrTEKAemviCa95o r/P92DBCfbujUnjWXU/j0Nc3FJme3Loj9kgSVghazZ0TgytNsfaQz/SJ4f21aPu+J0lOH4Z 7wlVsubSWrHI2CfR3Nmkw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:YLwvlUBMjj0=;jq7X1w44RSh3Gujv88ruCDOFgH9 FCDn6/HWbOIov7xctpFZ9sX2DGDFduvwGsZm+vd6isXpmBzC8VDY18PBuaoGdcfFt5Pwx1Fda NaBWQgY7dgBvVhBYWYRIUC7zUUHP//rhqliHvkIqPye7Su/3ITIM46KD4ajTpULjBfcJfPRzW EaxRIC2rd6vAnxUY5cFqjP2wU0bB9MSeKpoDdCjCz6/i55cpQJrhE8j74l1HTTDKqdgIlsfM3 cgT9dJMX7g1LBb1PF9BGX1zf48D5ce2AbofUZlfAjsMq6Xl+40RrN6R41Gh8d3VOI9nV46kvP gWToobbvV47LZv6Bl4P+eifKfso82CJ+/M0+DikI5gkIVWmimwm0a+bEM/3MRlU/ag3eh2W6P uO/C6vWQV25BCkGocJKRCDgBojsyGLL3U1hP6IFO9WBf3tv0Fo4Jcbv3omBHoLsQMEB8Fua3J GF+KEeXBNvOcdo0HeZ88JpAJC8Ae/Xp4Th6ixFHenieBpaa+dT0PzBvDQGsFIc33eJ0tbnSg9 1vsXkH54WAgLXWrJ5lVEM+7yKgkpRjbQs3z/HU+3RbGo/fEHukSlt6u7yCvxcxbS2Ezq8/E1z vcEmImLL9kBRak80S7hEz7NV+MPCoAAJdL37JU01s9Eiy9c0EFshcktzFPUzvpCKXYggiPrn2 w4uhf//Xe9jpeyYllVgcgQZTlVafkyHH3gZhfoVFrK9o9I9+CdAfzZw/PyuHrin9oSA9acSLd aOcoXnla2QXPbPcPj5JhgoGpYkwkrrjsM1r/AKKMg9PuwURcuHSWmdzxstfl/nNLND7qg3lJ5 0StzC5dSSkquwS41eTZ2Ec0SZ1PcvLb/pbGPyxP58JQjRyfWUWj/mIajsMPuS8EQRjhx4DMXL kY7ffqev8+Umm6FVc/lRg8RMR73hELFZmp1FkGvqaG/Xtv7X6xk+O6hu0KqNREcgiyzVpuF27 77E1po78fCqe6zd/HrPzABEpBpY= X-Spamd-Result: default: False [-0.76 / 15.00]; MID_CONTAINS_FROM(1.00)[]; FROM_NAME_HAS_TITLE(1.00)[dr]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; NEURAL_HAM_LONG(-0.92)[-0.920]; NEURAL_SPAM_SHORT(0.66)[0.659]; DMARC_POLICY_ALLOW(-0.50)[gmx.at,none]; RWL_MAILSPIKE_EXCELLENT(-0.40)[212.227.15.15:from]; R_DKIM_ALLOW(-0.20)[gmx.at:s=s31663417]; R_SPF_ALLOW(-0.20)[+ip4:212.227.15.0/25:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.15:from]; BLOCKLISTDE_FAIL(0.00)[78.142.103.142:server fail]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MLMMJ_DEST(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[gmx.at:+]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmx.at]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmx.at]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4QcfG44SrLz3K26 X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N Anno domini 2023 Thu, 8 Jun 17:22:38 -0400 Aryeh Friedman scripsit: > On Thu, Jun 8, 2023 at 2:39=E2=80=AFPM Dr. Nikolaus Klepp wrote: > > > > Anno domini 2023 Thu, 8 Jun 14:01:19 -0400 > > Aryeh Friedman scripsit: > > > Under Java stdin (System.in) is a buffered stream not sent to the > > > application until return is pressed. But, Java can read from > > > files/sockets and other generic InputStreams unbuffered. So I was > > > wondering if there is a command that will make stdin go to a file so > > > that Java can open that file and read it unbuffered? > > > > > > I know I can do something like cat ->file but that makes it hard to > > > sync stdout and stderr (both are unbuffered in Java) with the file > > > version of stdin > > > > > > > "stdbuf" might be what you look for: > > > > https://man.freebsd.org/cgi/man.cgi?query=3Dstdbuf >=20 > Will likely need to play with it more but stdbuf -i 0 -o 0 cat -|cat > didn't produce the expected immediate echo I still had to hit return >=20 Your console is linebuffered, so "cat" receives lines. IIRC "cat" disables = linebuffer on input by itself, so you should use someting else for testing. Nik =2D-=20 Please do not email me anything that you are not comfortable also sharing w= ith the NSA, CIA ... From nobody Fri Jun 9 01:21:53 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qcjww5H8Kz4cFhN for ; Fri, 9 Jun 2023 01:22:08 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qcjww3cv0z3rkN for ; Fri, 9 Jun 2023 01:22:08 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-977e0fbd742so190659166b.2 for ; Thu, 08 Jun 2023 18:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686273726; x=1688865726; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=afJGaMsA9qDRJoFVGmghcvO6C8CEtm5LoNTjYmNPbRc=; b=T4/G31zvZ5iBgIi9jenmNKk8iAbwF7lO6+3YVUyw2c3LnRIxZoxlXpG6gHcMM4QM9U WXxSIbbEYyI3BC7HJ759OgxmhsYpMZfjPshdBMnKDS4FftWw+/CaIcCOL1q/dbfPk84y XN6iNJu45W0RISxnJe7XEjjgBWTrBl/3mYiTJDvEgT8NTpfHeFqeJXHl6qqBB+iLz5JT i8cTSKt5051Qalw+uRbQ9uMeGCih7WsdcjueQCS9/liA+hu2zIhiJqS5iWTVkePwisCe EA1I2M1VHusEJZBmA2ppBD+tG6cKjW+uFDzbsJOk39TJaD+0Sa7rbKumAKBPR4UtXBLx t4RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686273726; x=1688865726; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=afJGaMsA9qDRJoFVGmghcvO6C8CEtm5LoNTjYmNPbRc=; b=QgHEwzGibniNX3bVLgfco+KTn1VsFhL3m5ievs5OjBZ8t2A1jonJo/5Z152DqLotC2 Ny67C7dzw96uOiStKNmM211mzY9aOxLSylqd+MUVdIMxwVQkmLToEucrAMqDwF/dnoyL 1iSZn2xqc5vpkRXMu/b4EoVBakS/SddREpxbwyVwN4/y9rUhG4f7zYuXTiW8x5K9wdyw BKyewwt5S97XVi8/6PI6Z+vCmoYt8ThtAl2QkRJ9QU0MbVbnGn9AzXVFmgfOUAz1e2ec A3SRRmoY8unUrwLE+reBuoANk8oJBPs0DVzGsNBWOw3yyl06Un2Na1mZbqAeuWPbxT0X Srug== X-Gm-Message-State: AC+VfDyvIkYyXx4Nda9+Hm50XMbUc/FkCWhDmoavjaAJSctf/WJ/COni oW70CljGFdse+0Mbzop9fqGCXo/AQWUcmoOD/KAXj7uA+mI= X-Google-Smtp-Source: ACHHUZ4fbrucbfovU5ZXeHCNQBMLAVylMOXDFZolXEfTMuyOhDIYTR9yKQPs4wkxWGnbujEduLKttUwvrHCzGeQ/shI= X-Received: by 2002:a17:906:d54f:b0:973:d80f:ea69 with SMTP id cr15-20020a170906d54f00b00973d80fea69mr194054ejc.29.1686273725548; Thu, 08 Jun 2023 18:22:05 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <202306082039.36831.dr.klepp@gmx.at> <202306090036.42118.dr.klepp@gmx.at> In-Reply-To: <202306090036.42118.dr.klepp@gmx.at> From: Aryeh Friedman Date: Thu, 8 Jun 2023 21:21:53 -0400 Message-ID: Subject: Re: Slightly OT: non-buffered stdin in Java To: "Dr. Nikolaus Klepp" Cc: questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Qcjww3cv0z3rkN X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, Jun 8, 2023 at 6:37=E2=80=AFPM Dr. Nikolaus Klepp = wrote: > > Anno domini 2023 Thu, 8 Jun 17:22:38 -0400 > Aryeh Friedman scripsit: > > On Thu, Jun 8, 2023 at 2:39=E2=80=AFPM Dr. Nikolaus Klepp wrote: > > > > > > Anno domini 2023 Thu, 8 Jun 14:01:19 -0400 > > > Aryeh Friedman scripsit: > > > > Under Java stdin (System.in) is a buffered stream not sent to the > > > > application until return is pressed. But, Java can read from > > > > files/sockets and other generic InputStreams unbuffered. So I was > > > > wondering if there is a command that will make stdin go to a file s= o > > > > that Java can open that file and read it unbuffered? > > > > > > > > I know I can do something like cat ->file but that makes it hard to > > > > sync stdout and stderr (both are unbuffered in Java) with the file > > > > version of stdin > > > > > > > > > > "stdbuf" might be what you look for: > > > > > > https://man.freebsd.org/cgi/man.cgi?query=3Dstdbuf > > > > Will likely need to play with it more but stdbuf -i 0 -o 0 cat -|cat > > didn't produce the expected immediate echo I still had to hit return > > > > Your console is linebuffered, so "cat" receives lines. IIRC "cat" disable= s linebuffer on input by itself, so you should use someting else for testin= g. > > Nik > I am pretty convinced by the following test it is not working as advertised= : aryehl@neomarx:~/Desktop % cat foo.c #include #include #include int main() { int in=3Dfcntl(STDIN_FILENO, F_DUPFD, 0); int out=3Dfcntl(STDOUT_FILENO, F_DUPFD, 0); char c=3D0; do { read(in,&c,1); write(out,&c,1); } while(c!=3DEOF); } aryehl@neomarx:~/Desktop % !cc cc foo.c aryehl@neomarx:~/Desktop % stdbuf -i 0 -o 0 ./a.out this is not echoing! this is not echoing! neither is this neither is this ^C aryehl@neomarx:~/Desktop % --=20 Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From nobody Fri Jun 9 02:22:41 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QclH35sVvz4bBnW for ; Fri, 9 Jun 2023 02:22:55 +0000 (UTC) (envelope-from little.analyst892@aceecat.org) Received: from beesty.loosely.org (beesty.loosely.org [IPv6:2600:3c01:e000:4c0::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4QclH26TKcz41bB for ; Fri, 9 Jun 2023 02:22:54 +0000 (UTC) (envelope-from little.analyst892@aceecat.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=aceecat.org header.s=rsa header.b=o3mG2Fhg; spf=pass (mx1.freebsd.org: domain of little.analyst892@aceecat.org designates 2600:3c01:e000:4c0::2 as permitted sender) smtp.mailfrom=little.analyst892@aceecat.org; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aceecat.org ; s=rsa; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=aBvTQu+VSiDNiFkMYzlh/4DyRG+n+56nj1EzOz/IvYc=; b=o3mG2FhgmgS5V+8VVVzjkHsLEG x5oa1Zke/1VOh195rKY69frW2Ev3tZuj50kDjxYk5c658iph2K5uI4sSP0jyY715G/4QQtKpZ0f+O vnrbK5SPnizKGjFt1HAWHOzxc3CWZcxIgRFkNtgYUXLfn8qrJVIBGJnMmNYJfXDSzCYQhhhcVkPZu /IOk1FsgE32y/S+cy58wMMVzTWv06Ywk069/wy/crnoEDWqvq2izKAP3gnKtyUDF060r8tePioW3h UFZbS6n96NxXY+T7Au2t+TvI8TWLPMA/WwXsDhMQcWPCvr7DSvG/Dg7CQYTYyQNXn1ZSyHqY73AHI TfhDX0Dw==; Received: from [::1] (helo=beesty ident=itz) by beesty.loosely.org with esmtp (Exim 4.96-9-541b010de) (envelope-from ) id 1q7Rm3-0004vw-0f for questions@freebsd.org; Thu, 08 Jun 2023 19:22:47 -0700 Date: Thu, 8 Jun 2023 19:22:41 -0700 From: little.analyst892@aceecat.org To: questions@freebsd.org Subject: Re: Check if running inside script Message-ID: Mail-Followup-To: questions@freebsd.org References: <6b3f5a7f-e0cb-bb6f-38d5-050348d76387@netfence.it> <5F4B47E8-E3A0-479D-B0E1-732AFBB659E0@febras.net> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5F4B47E8-E3A0-479D-B0E1-732AFBB659E0@febras.net> X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[aceecat.org:s=rsa]; MIME_GOOD(-0.10)[text/plain]; FROM_NO_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:63949, ipnet:2600:3c01::/32, country:SG]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[aceecat.org:+]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[aceecat.org]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4QclH26TKcz41bB X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N On Thu, Jun 08, 2023 at 08:34:11PM +1000, Korolev Sergey wrote: > echo $TERM Some (maybe most) versions of tmux also use this same termcap entry, so I'm not sure if this satisfies the OP requirements. It does if the OP only uses screen and not tmux. -- Ian From nobody Fri Jun 9 02:32:14 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QclV556CYz4bDLF for ; Fri, 9 Jun 2023 02:32:29 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QclV42GKYz43BC for ; Fri, 9 Jun 2023 02:32:28 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=iceyBiLy; spf=pass (mx1.freebsd.org: domain of pprocacci@gmail.com designates 2607:f8b0:4864:20::c31 as permitted sender) smtp.mailfrom=pprocacci@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-558b04141e2so901712eaf.0 for ; Thu, 08 Jun 2023 19:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686277946; x=1688869946; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SENwznYnk1CFERSWf5xrFg1FsEsmGiK5nnV1inotFaI=; b=iceyBiLykc4RzvCcoCOpQvnfmTOKBSCA/DfehPV8pbI3Wy4YHtvtu+E+QTKIXlpvmK Q/dAOe34PKimm8NZP+XByan9StjEh2BswlU9Mq7LbmNGI3br87N4gQJQor/XV/4ECIU1 gOcYC6nR6k+ny12ZESdyOqY33nzhCKrd/YTN/Rq5AzPMUxE7BEEOeSJn5AqaeeAX1Cv4 wsw6KEI/Ag6ab21EXhjlxrab41uVfj4nsWBSVTTzXzHa1WtP9C1wIMvfyME6BXJTtldH jOSoO6Edi/+9Visa+QYWJQlY0jH5mgxxvnwtUE8wBSGSoSSMNZJPj6e/U00xIBmNpTdX ZtAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686277946; x=1688869946; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SENwznYnk1CFERSWf5xrFg1FsEsmGiK5nnV1inotFaI=; b=LtFNRqF9vIyJkNhw6d9HXBjvwfvmQoDhaG/+rORD0QdUxbNfrh9uzMJr7Nx7EJq+ji uIj7ODRt8x/tJVeQKEtjG03tUnjajkfcYRqvdWHMtyOQpxpUeXCr5FUuqm5CQy/G285T ewhnoQnhAbV8evr67ebugmGCVN6Iv3u6gGOSuQptEIQvDaAePtb5wzKyuwH73Ja8Okym p1T65/0HejopyQFm+VeTB9sDAUIhZWR8g+VwgHW/DfiJr7ECKuXJHcG6A7runopDMcs+ FVzjamYT70V6wfXCzyeN+/eUffqhdOpzcGwijQHreCohDY48HazMayK9aBdzauUjjmN3 653A== X-Gm-Message-State: AC+VfDyo/tYC2VUTAlnki9joST1mLHL3yFUXfvPYaJgz4dBrZu2P5mzr 2JL24z2PNctcWPleLrQ1ocbiwaacMhe5ufvcOA== X-Google-Smtp-Source: ACHHUZ5hfJBCM1e04ParELVTVinLp92KZNgS8CXLgGTd20RF5hammQr/HbxR/ZD5kuoDRxAXZMZ/7GZyUVfAdCUhT8I= X-Received: by 2002:a4a:c44b:0:b0:558:b4cb:b18a with SMTP id h11-20020a4ac44b000000b00558b4cbb18amr1098153ooq.6.1686277946117; Thu, 08 Jun 2023 19:32:26 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <202306082039.36831.dr.klepp@gmx.at> <202306090036.42118.dr.klepp@gmx.at> In-Reply-To: From: Paul Procacci Date: Thu, 8 Jun 2023 22:32:14 -0400 Message-ID: Subject: Re: Slightly OT: non-buffered stdin in Java To: Aryeh Friedman Cc: "Dr. Nikolaus Klepp" , questions@freebsd.org Content-Type: multipart/alternative; boundary="000000000000f8923f05fda92dec" X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TAGGED_RCPT(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; BLOCKLISTDE_FAIL(0.00)[2607:f8b0:4864:20::c31:server fail]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::c31:from]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_TO(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; FREEMAIL_CC(0.00)[gmx.at,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4QclV42GKYz43BC X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --000000000000f8923f05fda92dec Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 8, 2023 at 9:22=E2=80=AFPM Aryeh Friedman wrote: > On Thu, Jun 8, 2023 at 6:37=E2=80=AFPM Dr. Nikolaus Klepp wrote: > > > > Anno domini 2023 Thu, 8 Jun 17:22:38 -0400 > > Aryeh Friedman scripsit: > > > On Thu, Jun 8, 2023 at 2:39=E2=80=AFPM Dr. Nikolaus Klepp > wrote: > > > > > > > > Anno domini 2023 Thu, 8 Jun 14:01:19 -0400 > > > > Aryeh Friedman scripsit: > > > > > Under Java stdin (System.in) is a buffered stream not sent to the > > > > > application until return is pressed. But, Java can read from > > > > > files/sockets and other generic InputStreams unbuffered. So I w= as > > > > > wondering if there is a command that will make stdin go to a file > so > > > > > that Java can open that file and read it unbuffered? > > > > > > > > > > I know I can do something like cat ->file but that makes it hard = to > > > > > sync stdout and stderr (both are unbuffered in Java) with the fil= e > > > > > version of stdin > > > > > > > > > > > > > "stdbuf" might be what you look for: > > > > > > > > https://man.freebsd.org/cgi/man.cgi?query=3Dstdbuf > > > > > > Will likely need to play with it more but stdbuf -i 0 -o 0 cat -|cat > > > didn't produce the expected immediate echo I still had to hit return > > > > > > > Your console is linebuffered, so "cat" receives lines. IIRC "cat" > disables linebuffer on input by itself, so you should use someting else f= or > testing. > > > > Nik > > > > I am pretty convinced by the following test it is not working as > advertised: > > aryehl@neomarx:~/Desktop % cat foo.c > #include > #include > #include > > int main() > { > int in=3Dfcntl(STDIN_FILENO, F_DUPFD, 0); > int out=3Dfcntl(STDOUT_FILENO, F_DUPFD, 0); > char c=3D0; > > do { > read(in,&c,1); > write(out,&c,1); > } while(c!=3DEOF); > } > aryehl@neomarx:~/Desktop % !cc > cc foo.c > aryehl@neomarx:~/Desktop % stdbuf -i 0 -o 0 ./a.out > this is not echoing! > this is not echoing! > neither is this > neither is this > ^C > aryehl@neomarx:~/Desktop % > > -- > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > > stdbuf only works for stdio buffering of which read(2) and write(2) aren't. ~Paul --=20 __________________ :(){ :|:& };: --000000000000f8923f05fda92dec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Jun 8, 2023 at 9:22=E2= =80=AFPM Aryeh Friedman <ary= eh.friedman@gmail.com> wrote:
On Thu, Jun 8, 2023 at 6:37=E2=80=AFPM Dr. Nikolaus Kl= epp <dr.klepp@gmx.a= t> wrote:
>
> Anno domini 2023 Thu, 8 Jun 17:22:38 -0400
>=C2=A0 Aryeh Friedman scripsit:
> > On Thu, Jun 8, 2023 at 2:39=E2=80=AFPM Dr. Nikolaus Klepp <dr.klepp@gmx.at> w= rote:
> > >
> > > Anno domini 2023 Thu, 8 Jun 14:01:19 -0400
> > >=C2=A0 Aryeh Friedman scripsit:
> > > > Under Java stdin (System.in) is a buffered stream not s= ent to the
> > > > application until return is pressed.=C2=A0 But, Java ca= n read from
> > > > files/sockets and other generic InputStreams unbuffered= .=C2=A0 =C2=A0So I was
> > > > wondering if there is a command that will make stdin go= to a file so
> > > > that Java can open that file and read it unbuffered? > > > >
> > > > I know I can do something like cat ->file but that m= akes it hard to
> > > > sync stdout and stderr (both are unbuffered in Java) wi= th the file
> > > > version of stdin
> > > >
> > >
> > > "stdbuf" might be what you look for:
> > >
> > > https://man.freebsd.org/cgi/man.cgi= ?query=3Dstdbuf
> >
> > Will likely need to play with it more but stdbuf -i 0 -o 0 cat -|= cat
> > didn't produce the expected immediate echo I still had to hit= return
> >
>
> Your console is linebuffered, so "cat" receives lines. IIRC = "cat" disables linebuffer on input by itself, so you should use s= ometing else for testing.
>
> Nik
>

I am pretty convinced by the following test it is not working as advertised= :

aryehl@neomarx:~/Desktop % cat foo.c
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>

int main()
{
=C2=A0 =C2=A0 int in=3Dfcntl(STDIN_FILENO, F_DUPFD, 0);
=C2=A0 =C2=A0 int out=3Dfcntl(STDOUT_FILENO, F_DUPFD, 0);
=C2=A0 =C2=A0 char c=3D0;

=C2=A0 =C2=A0 do {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 read(in,&c,1);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 write(out,&c,1);
=C2=A0 =C2=A0 } while(c!=3DEOF);
}
aryehl@neomarx:~/Desktop % !cc
cc foo.c
aryehl@neomarx:~/Desktop % stdbuf -i 0 -o 0 ./a.out
this is not echoing!
this is not echoing!
neither is this
neither is this
^C
aryehl@neomarx:~/Desktop %

--
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org


stdbuf only works for stdio buffering of which read(= 2) and write(2) aren't.

~Paul

--
__________________

:(){ :|:& };:
--000000000000f8923f05fda92dec-- From nobody Fri Jun 9 02:55:32 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qcm0x3K06z4bHCc; Fri, 9 Jun 2023 02:55:45 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qcm0x1TMBz45cw; Fri, 9 Jun 2023 02:55:45 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-97460240863so234128666b.0; Thu, 08 Jun 2023 19:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686279344; x=1688871344; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YqdfKGq0fjJ4+5OOjUKlAz5dgOrGRlIJhhPfIBYgh0I=; b=YQMRxb08Gy3jDjLPbU26CG9Lak+LwfamNPPKBoxZW/Aj70CSQ7LvVlBSK0Igpst3wL lVHm7RTKEXmmdon6kepk6uCBJjbuazyv332TRvsWIniWUIFhwW1J6/pq77/gW9znKvkG wcFsVJ+oGCg1ZUftJZPO2Aw8MB1X1O5MPFVCPoRvLbv2OGezGq0cdEbthd4VCdICrVEI b7ONawJrFKMfQBwhDF8IuVi+9uuxB12X3AsLCtalzd4FzPM8ce/gNQXYUsGVlSHVRY0d ogNGvLcSAy5IqrfbpoO+ZB8iHGINqZx8hZResPjvWtwW4ZwjkDvStvpJEWBSKssPzgL9 frHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686279344; x=1688871344; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YqdfKGq0fjJ4+5OOjUKlAz5dgOrGRlIJhhPfIBYgh0I=; b=HrwfhN62Ne1eY9RkZ6HBbm9Fdej0sNoFArxAqyHmHSTDdGDmxa/hej0YCESO8LFx+y vwuZjzmkf5ct+OITFrxdpc5sp++irdW9iQjCpCpDqm4tlf0yIXyyTq2VT4z5ArVAKHs4 lW3IGgkt4177pomdbmYvG1wJdkIzQOsBxIZd1j3HxoyTUp5Mz5YA4cixssTN7k75B8pL uusrhdLJjRgsMMjc39y2l5BiQnMM9hBisTCeC327I91jJa6cZzK827c4eddesUd1DXL2 Tqxvsc4pqW1LeSz7ORIafiRwvDFPaFxe5lIQMpxG2cIqg2lvzEAfkuvEpZckMmqa1+vp veJw== X-Gm-Message-State: AC+VfDxK1YMHdjYt6GvxaOMu4qEveeGzXX870E1jhayFrkefZCz4gbho CbI7Y3tIavPJMrkpOgHdNgzJxREBJnFDzBZULPHPVUeH X-Google-Smtp-Source: ACHHUZ7lWJzDwwRko2+mjcwFSvkj72e6HKqVfkFe6GlEfWj7K248M3eQbnuPOkyHm5s6CUj+inps+oqL+A8F9Uk9M+Q= X-Received: by 2002:a17:907:168f:b0:94f:449e:75db with SMTP id hc15-20020a170907168f00b0094f449e75dbmr572703ejc.52.1686279343462; Thu, 08 Jun 2023 19:55:43 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <202306082039.36831.dr.klepp@gmx.at> <202306090036.42118.dr.klepp@gmx.at> In-Reply-To: From: Aryeh Friedman Date: Thu, 8 Jun 2023 22:55:32 -0400 Message-ID: Subject: Re: Slightly OT: non-buffered stdin in Java To: Paul Procacci Cc: "Dr. Nikolaus Klepp" , questions@freebsd.org, freebsd-java@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Qcm0x1TMBz45cw X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, Jun 8, 2023 at 10:32=E2=80=AFPM Paul Procacci = wrote: > > > > On Thu, Jun 8, 2023 at 9:22=E2=80=AFPM Aryeh Friedman wrote: >> >> On Thu, Jun 8, 2023 at 6:37=E2=80=AFPM Dr. Nikolaus Klepp wrote: >> > >> > Anno domini 2023 Thu, 8 Jun 17:22:38 -0400 >> > Aryeh Friedman scripsit: >> > > On Thu, Jun 8, 2023 at 2:39=E2=80=AFPM Dr. Nikolaus Klepp wrote: >> > > > >> > > > Anno domini 2023 Thu, 8 Jun 14:01:19 -0400 >> > > > Aryeh Friedman scripsit: >> > > > > Under Java stdin (System.in) is a buffered stream not sent to th= e >> > > > > application until return is pressed. But, Java can read from >> > > > > files/sockets and other generic InputStreams unbuffered. So I = was >> > > > > wondering if there is a command that will make stdin go to a fil= e so >> > > > > that Java can open that file and read it unbuffered? >> > > > > >> > > > > I know I can do something like cat ->file but that makes it hard= to >> > > > > sync stdout and stderr (both are unbuffered in Java) with the fi= le >> > > > > version of stdin >> > > > > >> > > > >> > > > "stdbuf" might be what you look for: >> > > > >> > > > https://man.freebsd.org/cgi/man.cgi?query=3Dstdbuf >> > > >> > > Will likely need to play with it more but stdbuf -i 0 -o 0 cat -|cat >> > > didn't produce the expected immediate echo I still had to hit return >> > > >> > >> > Your console is linebuffered, so "cat" receives lines. IIRC "cat" disa= bles linebuffer on input by itself, so you should use someting else for tes= ting. >> > >> > Nik >> > >> >> I am pretty convinced by the following test it is not working as adverti= sed: >> >> aryehl@neomarx:~/Desktop % cat foo.c >> #include >> #include >> #include >> >> int main() >> { >> int in=3Dfcntl(STDIN_FILENO, F_DUPFD, 0); >> int out=3Dfcntl(STDOUT_FILENO, F_DUPFD, 0); >> char c=3D0; >> >> do { >> read(in,&c,1); >> write(out,&c,1); >> } while(c!=3DEOF); >> } >> aryehl@neomarx:~/Desktop % !cc >> cc foo.c >> aryehl@neomarx:~/Desktop % stdbuf -i 0 -o 0 ./a.out >> this is not echoing! >> this is not echoing! >> neither is this >> neither is this >> ^C >> aryehl@neomarx:~/Desktop % >> >> -- >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org >> > > stdbuf only works for stdio buffering of which read(2) and write(2) aren'= t. I also tried it with System.in.read() in Java and it was also buffered but according to the openjdk source it appears that this is on purpose. --=20 Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From nobody Fri Jun 9 03:23:11 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qcmct3gQWz4bKrq; Fri, 9 Jun 2023 03:23:26 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qcmcs4bVlz4CN2; Fri, 9 Jun 2023 03:23:25 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b="BHTi/lpF"; spf=pass (mx1.freebsd.org: domain of pprocacci@gmail.com designates 2001:4860:4864:20::35 as permitted sender) smtp.mailfrom=pprocacci@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-19f22575d89so267522fac.0; Thu, 08 Jun 2023 20:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686281004; x=1688873004; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hx484WcBW1Ej2El7aDZGg1hFBLZgp6RTvX8qdGqOvHM=; b=BHTi/lpFDOLwY+Mo6bN3z7191HNBlPotmy0E88ZmTEPno3kxiHcbN/mygthBQnuvXy g+p5eRkWyNPwu7M7jxPg7X6/JMKs39CffH+180VH3rRNtvc4L1YALh7jRw5dOM2WBmpk Voto3dZ9XypTjzuFVUknAzKL12somNai376b4OJl3DxLtBC9odsn+Bso9V7UGhGiPLSn XekMzAL7ctlPCeugDTlc6+vFERKzVKpF9olfxaE7MH/Hr0B34eUPIvdb8zwuq2kjAe6j tVAmSEcuNLqF2Bsxd7vitfZiAmnsgbRC7/dVUnKHsIpc1U5oYduf5gZGHC9xixabxNZ2 omfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686281004; x=1688873004; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hx484WcBW1Ej2El7aDZGg1hFBLZgp6RTvX8qdGqOvHM=; b=PEqN2b3VAqzkvrFJhieMU3QLajy2YIsJVzyCfec2u685NLY33hICNhSumm85FKPTVG NnfFT2doM99WKZADGhAAiZLqMTpt71nsQV7R/WJVDfXcqc0Q3MPeybYQyVRCav9qADiT IShwgC8Ac6Ro0mXNT9UWZYIpm83tcFvcRajMvgjBGhm4mT0uJWYzzy75xKa9l+mv+J7L 46x9CrOGMXLf2pLxfvmaN/pIgIopRYHlEE1ODtwDjpeo+dY/7Iv0F8GfZ8Ix4o9KbIz9 1w0LSa2iAV+aAmDlLpIMMtMxM/q+BmHyypHuEy/JE2UTVAZLqPaHqMpFLm1r8zqn7Ius dv9Q== X-Gm-Message-State: AC+VfDzPmZqYdtCC67SDLWJ5otPPfuaIa5QoV1eviQK793+f+YG294e+ nfrry5MCsHQatUbSfd6WrAPSb52haIfCPm5KiA== X-Google-Smtp-Source: ACHHUZ7ZHdcWD9Mp+aDh9RKJUZE9lMJSMAyBWoABX+fBL1rwTNUfalAumWqw0yyTSncdFl4nBhfRSBCyYla1pZ0tn6o= X-Received: by 2002:aca:670c:0:b0:398:4d53:48e5 with SMTP id z12-20020aca670c000000b003984d5348e5mr215531oix.47.1686281003424; Thu, 08 Jun 2023 20:23:23 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <202306082039.36831.dr.klepp@gmx.at> <202306090036.42118.dr.klepp@gmx.at> In-Reply-To: From: Paul Procacci Date: Thu, 8 Jun 2023 23:23:11 -0400 Message-ID: Subject: Re: Slightly OT: non-buffered stdin in Java To: Aryeh Friedman Cc: "Dr. Nikolaus Klepp" , questions@freebsd.org, freebsd-java@freebsd.org Content-Type: multipart/alternative; boundary="00000000000033603105fda9e4c9" X-Spamd-Result: default: False [-2.50 / 15.00]; SUSPICIOUS_RECIPS(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2001:4860:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCPT_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org,freebsd-java@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; TAGGED_RCPT(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::35:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_CC(0.00)[gmx.at,freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_TO(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[] X-Rspamd-Queue-Id: 4Qcmcs4bVlz4CN2 X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --00000000000033603105fda9e4c9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 8, 2023 at 10:55=E2=80=AFPM Aryeh Friedman wrote: > On Thu, Jun 8, 2023 at 10:32=E2=80=AFPM Paul Procacci wrote: > > > > > > > > On Thu, Jun 8, 2023 at 9:22=E2=80=AFPM Aryeh Friedman > wrote: > >> > >> On Thu, Jun 8, 2023 at 6:37=E2=80=AFPM Dr. Nikolaus Klepp > wrote: > >> > > >> > Anno domini 2023 Thu, 8 Jun 17:22:38 -0400 > >> > Aryeh Friedman scripsit: > >> > > On Thu, Jun 8, 2023 at 2:39=E2=80=AFPM Dr. Nikolaus Klepp > wrote: > >> > > > > >> > > > Anno domini 2023 Thu, 8 Jun 14:01:19 -0400 > >> > > > Aryeh Friedman scripsit: > >> > > > > Under Java stdin (System.in) is a buffered stream not sent to > the > >> > > > > application until return is pressed. But, Java can read from > >> > > > > files/sockets and other generic InputStreams unbuffered. So = I > was > >> > > > > wondering if there is a command that will make stdin go to a > file so > >> > > > > that Java can open that file and read it unbuffered? > >> > > > > > >> > > > > I know I can do something like cat ->file but that makes it > hard to > >> > > > > sync stdout and stderr (both are unbuffered in Java) with the > file > >> > > > > version of stdin > >> > > > > > >> > > > > >> > > > "stdbuf" might be what you look for: > >> > > > > >> > > > https://man.freebsd.org/cgi/man.cgi?query=3Dstdbuf > >> > > > >> > > Will likely need to play with it more but stdbuf -i 0 -o 0 cat -|c= at > >> > > didn't produce the expected immediate echo I still had to hit retu= rn > >> > > > >> > > >> > Your console is linebuffered, so "cat" receives lines. IIRC "cat" > disables linebuffer on input by itself, so you should use someting else f= or > testing. > >> > > >> > Nik > >> > > >> > >> I am pretty convinced by the following test it is not working as > advertised: > >> > >> aryehl@neomarx:~/Desktop % cat foo.c > >> #include > >> #include > >> #include > >> > >> int main() > >> { > >> int in=3Dfcntl(STDIN_FILENO, F_DUPFD, 0); > >> int out=3Dfcntl(STDOUT_FILENO, F_DUPFD, 0); > >> char c=3D0; > >> > >> do { > >> read(in,&c,1); > >> write(out,&c,1); > >> } while(c!=3DEOF); > >> } > >> aryehl@neomarx:~/Desktop % !cc > >> cc foo.c > >> aryehl@neomarx:~/Desktop % stdbuf -i 0 -o 0 ./a.out > >> this is not echoing! > >> this is not echoing! > >> neither is this > >> neither is this > >> ^C > >> aryehl@neomarx:~/Desktop % > >> > >> -- > >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > >> > > > > stdbuf only works for stdio buffering of which read(2) and write(2) > aren't. > > I also tried it with System.in.read() in Java and it was also buffered > but according to the openjdk source it appears that this is on > purpose. > > > > -- > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > When you just `./a.out` you're being bitten by the tty. You can manipulate that terminal to do what you want. Start reading termios(4). Without a tty you will only get a character at a time with the following: #include int main(int argc, char **argv) { char ch; for(;;){ ssize_t r =3D read(0,&ch,1); if(!r) break; write(1, &ch, 1); } _exit(0); } __________________ :(){ :|:& };: --00000000000033603105fda9e4c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Jun 8, 2023 at 10:5= 5=E2=80=AFPM Aryeh Friedman <aryeh.friedman@gmail.com> wrote:
On Thu, Jun 8, 2023 at 10:32=E2=80=AFPM Paul Proca= cci <pprocacci@= gmail.com> wrote:
>
>
>
> On Thu, Jun 8, 2023 at 9:22=E2=80=AFPM Aryeh Friedman <aryeh.friedman@gmail.com<= /a>> wrote:
>>
>> On Thu, Jun 8, 2023 at 6:37=E2=80=AFPM Dr. Nikolaus Klepp <
dr.klepp@gmx.at> wr= ote:
>> >
>> > Anno domini 2023 Thu, 8 Jun 17:22:38 -0400
>> >=C2=A0 Aryeh Friedman scripsit:
>> > > On Thu, Jun 8, 2023 at 2:39=E2=80=AFPM Dr. Nikolaus Klep= p <dr.klepp@gmx.at<= /a>> wrote:
>> > > >
>> > > > Anno domini 2023 Thu, 8 Jun 14:01:19 -0400
>> > > >=C2=A0 Aryeh Friedman scripsit:
>> > > > > Under Java stdin (System.in) is a buffered str= eam not sent to the
>> > > > > application until return is pressed.=C2=A0 But= , Java can read from
>> > > > > files/sockets and other generic InputStreams u= nbuffered.=C2=A0 =C2=A0So I was
>> > > > > wondering if there is a command that will make= stdin go to a file so
>> > > > > that Java can open that file and read it unbuf= fered?
>> > > > >
>> > > > > I know I can do something like cat ->file b= ut that makes it hard to
>> > > > > sync stdout and stderr (both are unbuffered in= Java) with the file
>> > > > > version of stdin
>> > > > >
>> > > >
>> > > > "stdbuf" might be what you look for:
>> > > >
>> > > >
https://man.freebsd.org/cg= i/man.cgi?query=3Dstdbuf
>> > >
>> > > Will likely need to play with it more but stdbuf -i 0 -o= 0 cat -|cat
>> > > didn't produce the expected immediate echo I still h= ad to hit return
>> > >
>> >
>> > Your console is linebuffered, so "cat" receives lin= es. IIRC "cat" disables linebuffer on input by itself, so you sho= uld use someting else for testing.
>> >
>> > Nik
>> >
>>
>> I am pretty convinced by the following test it is not working as a= dvertised:
>>
>> aryehl@neomarx:~/Desktop % cat foo.c
>> #include <stdio.h>
>> #include <fcntl.h>
>> #include <unistd.h>
>>
>> int main()
>> {
>>=C2=A0 =C2=A0 =C2=A0int in=3Dfcntl(STDIN_FILENO, F_DUPFD, 0);
>>=C2=A0 =C2=A0 =C2=A0int out=3Dfcntl(STDOUT_FILENO, F_DUPFD, 0);
>>=C2=A0 =C2=A0 =C2=A0char c=3D0;
>>
>>=C2=A0 =C2=A0 =C2=A0do {
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0read(in,&c,1);
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0write(out,&c,1);
>>=C2=A0 =C2=A0 =C2=A0} while(c!=3DEOF);
>> }
>> aryehl@neomarx:~/Desktop % !cc
>> cc foo.c
>> aryehl@neomarx:~/Desktop % stdbuf -i 0 -o 0 ./a.out
>> this is not echoing!
>> this is not echoing!
>> neither is this
>> neither is this
>> ^C
>> aryehl@neomarx:~/Desktop %
>>
>> --
>> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org=
>>
>
> stdbuf only works for stdio buffering of which read(2) and write(2) ar= en't.

I also tried it with System.in.read() in Java and it was also buffered
but according to the openjdk source it appears that this is on
purpose.



--
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org


When you just `./a.out` you&= #39;re being bitten by the tty.
You can manipulate that termi= nal to do what you want.=C2=A0 Start reading termios(4).

Without a tty you will only get a character at a time with the follo= wing:

#include <unistd.h>

int main(int argc,= char **argv)
{
=C2=A0 char ch;
=C2=A0 for(;;){
=C2=A0 =C2=A0 s= size_t r =3D read(0,&ch,1);
=C2=A0 =C2=A0 if(!r) break;
=C2=A0 = =C2=A0 write(1, &ch, 1);
=C2=A0 }
=C2=A0 _exit(0);
}

_________= _________

:(){ :|:& };:
--00000000000033603105fda9e4c9-- From nobody Fri Jun 9 03:35:52 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QcmvW3nM6z4bN7J; Fri, 9 Jun 2023 03:36:07 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QcmvV5294z4FdD; Fri, 9 Jun 2023 03:36:06 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-974638ed5c5so286779266b.1; Thu, 08 Jun 2023 20:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686281764; x=1688873764; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=A5YPxKpM9qAb6NyiJ8lJ+bmbDYqI0+5Nw5CdHa2VNmQ=; b=hZPJtruK1gcIBAYKGqYe3SCINgw6WMW1sNaH/VO+LqBNHufefon18WSQH4DIpbh1Zn LPoAaJTWyG2LGQWYgrVnskaXGbkO8sefhg7KryySIzUGDN3VT8eqmu0gs3+txtMyWzrP dumkdYnY3pAdFaLzq2oXJ0o3kRev9wg4JZ4xQrZIGGA+1gLhfJAdsIqCZ+moMx4YqGQ/ gFCgL6gK70RFKZb7VlZAVaSF4LhzDDC9idEeaD4T6kG0j1XuXGMc1JswJPg+FmkaItGM 2VsD+zvVVdlTgYUY6n1kcm4cYbOpciY1M+K/ZLj55KnsiZIWU9LBYy2rp90VqtTm8yj0 OTNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686281764; x=1688873764; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A5YPxKpM9qAb6NyiJ8lJ+bmbDYqI0+5Nw5CdHa2VNmQ=; b=Li2gVbWdWSXRRi9qknugIwAzhaKq/JDXeuOAaszLcu//rOkXRVGBQZE8nwTGFdqGSP yphF86LpZyev92GCX26vQIBxh5+H0FPDkcjtfLuP9cxN/lXseTTs/3h5wm4kVwctqfrB kIE15FFdLIl4f7harT8TiDqK0v3DNgBGCg8lsR6Zv5/CFdq1ur4VVqKmWK88a8Blwcg8 zy6nu/F1CNStVUyH+JbS/3PyfU1i6XqYUHuRQ9JaEbvBwWcfIp1P39KBZoOFkMrxYkcF iUPfv9ciC/296jQru0aYqRKo3H6ZUPM3GbNUSPddfDkNCJyFwU2ymBEEa+eh9JhNIlaw MzBw== X-Gm-Message-State: AC+VfDy8coEQtsb6hYrzgoUSXfOleDirYOj4q+3WGeG/W+n41IAxbqff edxnB1H4stprgTMvrDhKH8W243SUnHD/KiGkvic= X-Google-Smtp-Source: ACHHUZ5mltvPiAbtN1CWq1x6EfvDrmN5Y+ZSBA7ByD64E4Eoanl9Jf3tw6+5nPOAzzEoQfX8TlJtCf8yYdh6wRG5KF0= X-Received: by 2002:a17:907:8694:b0:974:fb94:8067 with SMTP id qa20-20020a170907869400b00974fb948067mr983365ejc.23.1686281763632; Thu, 08 Jun 2023 20:36:03 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <202306082039.36831.dr.klepp@gmx.at> <202306090036.42118.dr.klepp@gmx.at> In-Reply-To: From: Aryeh Friedman Date: Thu, 8 Jun 2023 23:35:52 -0400 Message-ID: Subject: Re: Slightly OT: non-buffered stdin in Java To: Paul Procacci Cc: "Dr. Nikolaus Klepp" , questions@freebsd.org, freebsd-java@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4QcmvV5294z4FdD X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, Jun 8, 2023 at 11:23=E2=80=AFPM Paul Procacci = wrote: > > > > On Thu, Jun 8, 2023 at 10:55=E2=80=AFPM Aryeh Friedman wrote: >> >> On Thu, Jun 8, 2023 at 10:32=E2=80=AFPM Paul Procacci wrote: >> > >> > >> > >> > On Thu, Jun 8, 2023 at 9:22=E2=80=AFPM Aryeh Friedman wrote: >> >> >> >> On Thu, Jun 8, 2023 at 6:37=E2=80=AFPM Dr. Nikolaus Klepp wrote: >> >> > >> >> > Anno domini 2023 Thu, 8 Jun 17:22:38 -0400 >> >> > Aryeh Friedman scripsit: >> >> > > On Thu, Jun 8, 2023 at 2:39=E2=80=AFPM Dr. Nikolaus Klepp wrote: >> >> > > > >> >> > > > Anno domini 2023 Thu, 8 Jun 14:01:19 -0400 >> >> > > > Aryeh Friedman scripsit: >> >> > > > > Under Java stdin (System.in) is a buffered stream not sent to= the >> >> > > > > application until return is pressed. But, Java can read from >> >> > > > > files/sockets and other generic InputStreams unbuffered. So= I was >> >> > > > > wondering if there is a command that will make stdin go to a = file so >> >> > > > > that Java can open that file and read it unbuffered? >> >> > > > > >> >> > > > > I know I can do something like cat ->file but that makes it h= ard to >> >> > > > > sync stdout and stderr (both are unbuffered in Java) with the= file >> >> > > > > version of stdin >> >> > > > > >> >> > > > >> >> > > > "stdbuf" might be what you look for: >> >> > > > >> >> > > > https://man.freebsd.org/cgi/man.cgi?query=3Dstdbuf >> >> > > >> >> > > Will likely need to play with it more but stdbuf -i 0 -o 0 cat -|= cat >> >> > > didn't produce the expected immediate echo I still had to hit ret= urn >> >> > > >> >> > >> >> > Your console is linebuffered, so "cat" receives lines. IIRC "cat" d= isables linebuffer on input by itself, so you should use someting else for = testing. >> >> > >> >> > Nik >> >> > >> >> >> >> I am pretty convinced by the following test it is not working as adve= rtised: >> >> >> >> aryehl@neomarx:~/Desktop % cat foo.c >> >> #include >> >> #include >> >> #include >> >> >> >> int main() >> >> { >> >> int in=3Dfcntl(STDIN_FILENO, F_DUPFD, 0); >> >> int out=3Dfcntl(STDOUT_FILENO, F_DUPFD, 0); >> >> char c=3D0; >> >> >> >> do { >> >> read(in,&c,1); >> >> write(out,&c,1); >> >> } while(c!=3DEOF); >> >> } >> >> aryehl@neomarx:~/Desktop % !cc >> >> cc foo.c >> >> aryehl@neomarx:~/Desktop % stdbuf -i 0 -o 0 ./a.out >> >> this is not echoing! >> >> this is not echoing! >> >> neither is this >> >> neither is this >> >> ^C >> >> aryehl@neomarx:~/Desktop % >> >> >> >> -- >> >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org >> >> >> > >> > stdbuf only works for stdio buffering of which read(2) and write(2) ar= en't. >> >> I also tried it with System.in.read() in Java and it was also buffered >> but according to the openjdk source it appears that this is on >> purpose. >> >> >> >> -- >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > > > > When you just `./a.out` you're being bitten by the tty. > You can manipulate that terminal to do what you want. Start reading term= ios(4). > > Without a tty you will only get a character at a time with the following: > > #include > > int main(int argc, char **argv) > { > char ch; > for(;;){ > ssize_t r =3D read(0,&ch,1); > if(!r) break; > write(1, &ch, 1); > } > _exit(0); > } Please see the whole context the goal is to make it so I can type at the command line into a java program and have instantaneous presentation of any characters I enter to Java --=20 Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From nobody Fri Jun 9 03:37:39 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QcmxY5t5qz4bN6V; Fri, 9 Jun 2023 03:37:53 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QcmxX5HC8z4Gww; Fri, 9 Jun 2023 03:37:52 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=RlhI1ht0; spf=pass (mx1.freebsd.org: domain of pprocacci@gmail.com designates 2607:f8b0:4864:20::329 as permitted sender) smtp.mailfrom=pprocacci@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6b2c3ec38f0so235626a34.1; Thu, 08 Jun 2023 20:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686281871; x=1688873871; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZTp/jT0JgKCdKwp/Q5Anrj2zYYQT2CEBFyVPU0aHV9U=; b=RlhI1ht0+R2JwG9tcCFApuReMe3mCKWYe3MxhzWZIij1QI0ESc/Z1EznP0lH4rHqUu jzXU+nHgqyh1S0K5lHeCUQHi4ACVVfPqbz8zt1Qx7Lpxd1/aJCkf1nm6JqTfyk2D0Ul4 hcSeiYEr4lKwFx41/IAlJ9ydla1HPbSBsm4GqF5xs2LDhqOz1Rqi5bQgyEHaHowyw5wo gCgLCBRKGcWA4ec+rqUFGnbxWcFPPFQKMJL/EAcHi3knyQswfsIlKhWZ48vG9rvMVyEl Ab12OYwJZDI1gvTKNiJ2NP5nZgMWTvflLdL4+kGewPO6MuvCaVbCXbDeq2cNF7egwked Q4FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686281871; x=1688873871; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZTp/jT0JgKCdKwp/Q5Anrj2zYYQT2CEBFyVPU0aHV9U=; b=QwyHIfx1zrTJ8hFgTP+OqqDPfbLzjNmcaMpw+nVIucaMqXyRM74sAaLFF7WtWzyVEB lO32sK/okzPWWc7mWeMa4KKU1NREDXVlEoIMJO37uIZ2vI6J4e18GmG8nqEUTOKnLqEg gcDO2TvhWkLvd6wVgwiE55txHvBbqcZl22srg8MapCDNl2diNJU+2wtZEmj9FICZ9/X2 W5z3aar3cJvQyM2FqievUqRrt58rJcNSLJqW3gfq20hj8QSy/+A1E2JMwzUnHIIIPMaa 37Uy72zKyZolbHNyc0mJLudODRyKTIDtv2h/U2GCsWmt3sQ8lI7weSLmgxiPzj/mMByf bhEw== X-Gm-Message-State: AC+VfDxywVLAYAgFoJ8jK5weJTLa9XDQ+JHEQk2w/BtzSm/w1apm8owt TsS/iGc9GeW32NTEeRRfQLpU7/Omq0RC/mROSg== X-Google-Smtp-Source: ACHHUZ6qIZnMeOr9JdepZyIWSgngAeijjf+bHzy5dz9Kcs+RlYDA5gSNH4kMtS0qDl6Lu4PpF3k10r/ihlYL05FPSuo= X-Received: by 2002:a05:6830:5a:b0:6b2:a9f0:9fc2 with SMTP id d26-20020a056830005a00b006b2a9f09fc2mr236545otp.10.1686281871489; Thu, 08 Jun 2023 20:37:51 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <202306082039.36831.dr.klepp@gmx.at> <202306090036.42118.dr.klepp@gmx.at> In-Reply-To: From: Paul Procacci Date: Thu, 8 Jun 2023 23:37:39 -0400 Message-ID: Subject: Re: Slightly OT: non-buffered stdin in Java To: Aryeh Friedman Cc: "Dr. Nikolaus Klepp" , questions@freebsd.org, freebsd-java@freebsd.org Content-Type: multipart/alternative; boundary="000000000000f1007605fdaa17df" X-Spamd-Result: default: False [-2.50 / 15.00]; SUSPICIOUS_RECIPS(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEMAIL_CC(0.00)[gmx.at,freebsd.org]; MLMMJ_DEST(0.00)[questions@freebsd.org,freebsd-java@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::329:from]; TAGGED_RCPT(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_TO(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[] X-Rspamd-Queue-Id: 4QcmxX5HC8z4Gww X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --000000000000f1007605fdaa17df Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 8, 2023 at 11:36=E2=80=AFPM Aryeh Friedman wrote: > On Thu, Jun 8, 2023 at 11:23=E2=80=AFPM Paul Procacci wrote: > > > > > > > > On Thu, Jun 8, 2023 at 10:55=E2=80=AFPM Aryeh Friedman > wrote: > >> > >> On Thu, Jun 8, 2023 at 10:32=E2=80=AFPM Paul Procacci > wrote: > >> > > >> > > >> > > >> > On Thu, Jun 8, 2023 at 9:22=E2=80=AFPM Aryeh Friedman < > aryeh.friedman@gmail.com> wrote: > >> >> > >> >> On Thu, Jun 8, 2023 at 6:37=E2=80=AFPM Dr. Nikolaus Klepp > wrote: > >> >> > > >> >> > Anno domini 2023 Thu, 8 Jun 17:22:38 -0400 > >> >> > Aryeh Friedman scripsit: > >> >> > > On Thu, Jun 8, 2023 at 2:39=E2=80=AFPM Dr. Nikolaus Klepp < > dr.klepp@gmx.at> wrote: > >> >> > > > > >> >> > > > Anno domini 2023 Thu, 8 Jun 14:01:19 -0400 > >> >> > > > Aryeh Friedman scripsit: > >> >> > > > > Under Java stdin (System.in) is a buffered stream not sent > to the > >> >> > > > > application until return is pressed. But, Java can read fr= om > >> >> > > > > files/sockets and other generic InputStreams unbuffered. > So I was > >> >> > > > > wondering if there is a command that will make stdin go to = a > file so > >> >> > > > > that Java can open that file and read it unbuffered? > >> >> > > > > > >> >> > > > > I know I can do something like cat ->file but that makes it > hard to > >> >> > > > > sync stdout and stderr (both are unbuffered in Java) with > the file > >> >> > > > > version of stdin > >> >> > > > > > >> >> > > > > >> >> > > > "stdbuf" might be what you look for: > >> >> > > > > >> >> > > > https://man.freebsd.org/cgi/man.cgi?query=3Dstdbuf > >> >> > > > >> >> > > Will likely need to play with it more but stdbuf -i 0 -o 0 cat > -|cat > >> >> > > didn't produce the expected immediate echo I still had to hit > return > >> >> > > > >> >> > > >> >> > Your console is linebuffered, so "cat" receives lines. IIRC "cat" > disables linebuffer on input by itself, so you should use someting else f= or > testing. > >> >> > > >> >> > Nik > >> >> > > >> >> > >> >> I am pretty convinced by the following test it is not working as > advertised: > >> >> > >> >> aryehl@neomarx:~/Desktop % cat foo.c > >> >> #include > >> >> #include > >> >> #include > >> >> > >> >> int main() > >> >> { > >> >> int in=3Dfcntl(STDIN_FILENO, F_DUPFD, 0); > >> >> int out=3Dfcntl(STDOUT_FILENO, F_DUPFD, 0); > >> >> char c=3D0; > >> >> > >> >> do { > >> >> read(in,&c,1); > >> >> write(out,&c,1); > >> >> } while(c!=3DEOF); > >> >> } > >> >> aryehl@neomarx:~/Desktop % !cc > >> >> cc foo.c > >> >> aryehl@neomarx:~/Desktop % stdbuf -i 0 -o 0 ./a.out > >> >> this is not echoing! > >> >> this is not echoing! > >> >> neither is this > >> >> neither is this > >> >> ^C > >> >> aryehl@neomarx:~/Desktop % > >> >> > >> >> -- > >> >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > >> >> > >> > > >> > stdbuf only works for stdio buffering of which read(2) and write(2) > aren't. > >> > >> I also tried it with System.in.read() in Java and it was also buffered > >> but according to the openjdk source it appears that this is on > >> purpose. > >> > >> > >> > >> -- > >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > > > > > > > > When you just `./a.out` you're being bitten by the tty. > > You can manipulate that terminal to do what you want. Start reading > termios(4). > > > > Without a tty you will only get a character at a time with the followin= g: > > > > #include > > > > int main(int argc, char **argv) > > { > > char ch; > > for(;;){ > > ssize_t r =3D read(0,&ch,1); > > if(!r) break; > > write(1, &ch, 1); > > } > > _exit(0); > > } > > Please see the whole context the goal is to make it so I can type at > the command line into a java program and have instantaneous > presentation of any characters I enter to Java > > > > -- > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > So take what I said and apply it to java. A quick google search: https://github.com/nyholku/purejavacomm/blob/master/src/jtermios/Termios.ja= va ~Paul --=20 __________________ :(){ :|:& };: --000000000000f1007605fdaa17df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Jun 8, 2023 at 11:36=E2= =80=AFPM Aryeh Friedman <ary= eh.friedman@gmail.com> wrote:
On Thu, Jun 8, 2023 at 11:23=E2=80=AFPM Paul Procacci = <pprocacci@gmai= l.com> wrote:
>
>
>
> On Thu, Jun 8, 2023 at 10:55=E2=80=AFPM Aryeh Friedman <aryeh.friedman@gmail.com= > wrote:
>>
>> On Thu, Jun 8, 2023 at 10:32=E2=80=AFPM Paul Procacci <pprocacci@gmail.com&g= t; wrote:
>> >
>> >
>> >
>> > On Thu, Jun 8, 2023 at 9:22=E2=80=AFPM Aryeh Friedman <aryeh.friedman@g= mail.com> wrote:
>> >>
>> >> On Thu, Jun 8, 2023 at 6:37=E2=80=AFPM Dr. Nikolaus Klepp= <dr.klepp@gmx.at> wrote:
>> >> >
>> >> > Anno domini 2023 Thu, 8 Jun 17:22:38 -0400
>> >> >=C2=A0 Aryeh Friedman scripsit:
>> >> > > On Thu, Jun 8, 2023 at 2:39=E2=80=AFPM Dr. Niko= laus Klepp <
dr.klep= p@gmx.at> wrote:
>> >> > > >
>> >> > > > Anno domini 2023 Thu, 8 Jun 14:01:19 -0400=
>> >> > > >=C2=A0 Aryeh Friedman scripsit:
>> >> > > > > Under Java stdin (System.in) is a buf= fered stream not sent to the
>> >> > > > > application until return is pressed.= =C2=A0 But, Java can read from
>> >> > > > > files/sockets and other generic Input= Streams unbuffered.=C2=A0 =C2=A0So I was
>> >> > > > > wondering if there is a command that = will make stdin go to a file so
>> >> > > > > that Java can open that file and read= it unbuffered?
>> >> > > > >
>> >> > > > > I know I can do something like cat -&= gt;file but that makes it hard to
>> >> > > > > sync stdout and stderr (both are unbu= ffered in Java) with the file
>> >> > > > > version of stdin
>> >> > > > >
>> >> > > >
>> >> > > > "stdbuf" might be what you look = for:
>> >> > > >
>> >> > > > https://man.freeb= sd.org/cgi/man.cgi?query=3Dstdbuf
>> >> > >
>> >> > > Will likely need to play with it more but stdbu= f -i 0 -o 0 cat -|cat
>> >> > > didn't produce the expected immediate echo = I still had to hit return
>> >> > >
>> >> >
>> >> > Your console is linebuffered, so "cat" rec= eives lines. IIRC "cat" disables linebuffer on input by itself, s= o you should use someting else for testing.
>> >> >
>> >> > Nik
>> >> >
>> >>
>> >> I am pretty convinced by the following test it is not wor= king as advertised:
>> >>
>> >> aryehl@neomarx:~/Desktop % cat foo.c
>> >> #include <stdio.h>
>> >> #include <fcntl.h>
>> >> #include <unistd.h>
>> >>
>> >> int main()
>> >> {
>> >>=C2=A0 =C2=A0 =C2=A0int in=3Dfcntl(STDIN_FILENO, F_DUPFD, = 0);
>> >>=C2=A0 =C2=A0 =C2=A0int out=3Dfcntl(STDOUT_FILENO, F_DUPFD= , 0);
>> >>=C2=A0 =C2=A0 =C2=A0char c=3D0;
>> >>
>> >>=C2=A0 =C2=A0 =C2=A0do {
>> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0read(in,&c,1);
>> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0write(out,&c,1);
>> >>=C2=A0 =C2=A0 =C2=A0} while(c!=3DEOF);
>> >> }
>> >> aryehl@neomarx:~/Desktop % !cc
>> >> cc foo.c
>> >> aryehl@neomarx:~/Desktop % stdbuf -i 0 -o 0 ./a.out
>> >> this is not echoing!
>> >> this is not echoing!
>> >> neither is this
>> >> neither is this
>> >> ^C
>> >> aryehl@neomarx:~/Desktop %
>> >>
>> >> --
>> >> Aryeh M. Friedman, Lead Developer, http://www.PetiteClou= d.org
>> >>
>> >
>> > stdbuf only works for stdio buffering of which read(2) and wr= ite(2) aren't.
>>
>> I also tried it with System.in.read() in Java and it was also buff= ered
>> but according to the openjdk source it appears that this is on
>> purpose.
>>
>>
>>
>> --
>> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org=
>
>
>
> When you just `./a.out` you're being bitten by the tty.
> You can manipulate that terminal to do what you want.=C2=A0 Start read= ing termios(4).
>
> Without a tty you will only get a character at a time with the followi= ng:
>
> #include <unistd.h>
>
> int main(int argc, char **argv)
> {
>=C2=A0 =C2=A0char ch;
>=C2=A0 =C2=A0for(;;){
>=C2=A0 =C2=A0 =C2=A0ssize_t r =3D read(0,&ch,1);
>=C2=A0 =C2=A0 =C2=A0if(!r) break;
>=C2=A0 =C2=A0 =C2=A0write(1, &ch, 1);
>=C2=A0 =C2=A0}
>=C2=A0 =C2=A0_exit(0);
> }

Please see the whole context the goal is to make it so I can type at
the command line into a java program and have instantaneous
presentation of any characters I enter to Java



--
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org


So take what I said and= apply it to java.

A quick google search:

~Paul
--
__________________

:(){ :|:& = };:
--000000000000f1007605fdaa17df--