From owner-freebsd-hackers@freebsd.org Sun Jun 30 09:53:51 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 660D115D1BDF for ; Sun, 30 Jun 2019 09:53:51 +0000 (UTC) (envelope-from luthramihir708@gmail.com) Received: from mail-vs1-xe2d.google.com (mail-vs1-xe2d.google.com [IPv6:2607:f8b0:4864:20::e2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0DD4C80B98; Sun, 30 Jun 2019 09:53:50 +0000 (UTC) (envelope-from luthramihir708@gmail.com) Received: by mail-vs1-xe2d.google.com with SMTP id u124so6961539vsu.2; Sun, 30 Jun 2019 02:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3/vLXvXuOvbIXFC4/foOm89onUyxSzVHkw9idLZdPJc=; b=G6ovc8FxzAAVoT3kYhKf7h9VDOWFgo2WpeqXUbe7NN/qQqHHeqZlVgyANjJxn+b3pX LeOB1BiUu1wnKW5pR/ZwxrHUefIARXRhpr4cNft3IULtuMmUb0Oiv+7ySmq2qxoeFcTT UivZ71BBdvk6cuO4Zq1ejucShVNtBJH2sDxqW8MF0/Mg/a8iX8qCQtJJTQh83GyX+/k6 nEVbXAE9l1btCh/wR3xWOh041dExoJGljWbRm4/ZDjv/yQJNjHAa9X07ZNHszdpEtGXu 9HaX5dXHHHQf9PtME7NPmnyJTWvehvVO5MFIPb72Nzw2fa3geWLlSZjGULL+pM3kehqT BFLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3/vLXvXuOvbIXFC4/foOm89onUyxSzVHkw9idLZdPJc=; b=X5HhOBlkFCV87GNL0TiERTPZ2VIkhkpr08nuI+INYzXGpgK6Zwy3Fz2/snUqCiXPDn NptC4hBIoN8RXdg3sDuIe70qdOPzGg0AARqPstqvuJlWnbdH2cjS3IbaRIoLJVNmYfvn P2qmTuc696jhfEnJTVGRzcUTA/UHfmFA4Ze5+qvjhYYu8b7YPYlqMp2PfSt1PxWlkwXc TBWLq27S1HlZiOIg98Sr6gVNAtrRqbTO7QHJP1ouEDrM8gjKtjQHjNqEBQ2Li/bqJDxC faIHT/y60d48wax/CedsvKTeTjFBe99Iz7E4VTlCfA6GXXR+NGr6lJp6H1a4RtWrUTtW 2osg== X-Gm-Message-State: APjAAAX/PHxSp3NQO9B++BC+AARpnqJ59XaEjVp2eRulM5qE+eUXRVdN kk8EysjHoVWfpzZbV+7IkT6ONrUHheFBRemCjlZf0xvZsi0= X-Google-Smtp-Source: APXvYqyRjLrySK33EQoj5t/ErsMKLgKUqT3PxT8AYBMH2e2WsOjbVgpCw6ZTcxBSec7kvnerQcwWQLc4gewpkucTxWs= X-Received: by 2002:a05:6102:114:: with SMTP id z20mr11372834vsq.187.1561888429264; Sun, 30 Jun 2019 02:53:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mihir Luthra Date: Sun, 30 Jun 2019 15:23:38 +0530 Message-ID: Subject: Re: interested in contributing to FreeBSD projects To: Alan Somers Cc: "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 0DD4C80B98 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=G6ovc8Fx; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of luthramihir708@gmail.com designates 2607:f8b0:4864:20::e2d as permitted sender) smtp.mailfrom=luthramihir708@gmail.com X-Spamd-Result: default: False [-6.64 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[d.2.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.58)[-0.580,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-3.05)[ip: (-9.74), ipnet: 2607:f8b0::/32(-3.13), asn: 15169(-2.34), country: US(-0.06)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jun 2019 09:53:51 -0000 Hi Alan, As told, I sent a mail on freebsd-net@FreeBSD.org. I haven=E2=80=99t receiv= ed any responses yet. Can I still start to work on project? Or should I wait? Also could you possibly suggest me some links which I should read being a newcomer? Thanks, Mihir From owner-freebsd-hackers@freebsd.org Sun Jun 30 15:53:15 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B19615D9287 for ; Sun, 30 Jun 2019 15:53:15 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E3328B5EB for ; Sun, 30 Jun 2019 15:53:14 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72a.google.com with SMTP id p144so9073735qke.11 for ; Sun, 30 Jun 2019 08:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OqLDOjoH3u5e7wRNXhjnSY8hlv4YRUgtdWYCAQOGt8M=; b=SGHKC7fGAOQ0J0waAh3yvZ80zo13HRF0QU/4Yrye2D+gNCPMOr2lfJBMJKXHzkSJg7 E0koamzz/SA8y70UMZ/euXEh6kslDSa1nv8pNJbgiotZ1UBTao2tD6X+CjIFWVTd+mlP l0AdG/pFGDMfpYN8pRe32j+ZbotRVhnWin8xuP3zEU7Jwnl/zVZ6BNFAo2E3JF4j3GxQ DVZ81m297wiKQOrEPz4Rl0ztVZPUrDMug8+fq2O4EaOuuexoQkTLVhjuZTH6QLE1XhV7 XAefcKYrsyO1MJgsXP9XA2Dakp8OeHbMzQ0R3ArLReUpq5xMZbzqBMqFYTzChFcoLJil Mlcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OqLDOjoH3u5e7wRNXhjnSY8hlv4YRUgtdWYCAQOGt8M=; b=CZbI0+pBJIGnGF7xXRb1m+Nc93MM4weNmC+9hxmgCHTD1HJjBbVEhcjFrXECFHaQR5 5bTrOP/DEhJB55Bw72FoINCRs+8ik9lG8i4hSBsIVfnc+EufxFw7ohmZsvTIX8BOCBTC GJa4nzTOEc0JnyBrT+8IxpXbz2FGLYzB+8po3tRGLOZUqCVo67R++P0ei6HCNRCCxebg GWLoDe9NruYovNfqfp4pnMPqEp1nB2mQP3cTXi0mYCbimHn77OJlPcsj507Kbga2Nz38 nh/emilipj2CbGfJ5cLwj1iG0ozdzr06JZZMKwVoJ25LbTakAXQkVDYdyd1yJpJ7YGs/ 739g== X-Gm-Message-State: APjAAAUvxmWCbYdon0tOtVc6tvf3AfK1XPK0ur4OPVQbO8mKcoLfn3Gr JOZ55u8kajWqzfZmiO1Oqb+ayjUoYDmtxJrHi6/fyQ== X-Google-Smtp-Source: APXvYqx8AOzVN9Gvp+HQYhe2mOPffWkVWoYRlNOafVH4bM5TbckorQ0JA0vEENaPQQdK/SzpHx06aCHacFF7WI2UY14= X-Received: by 2002:a37:6652:: with SMTP id a79mr17547423qkc.60.1561909993876; Sun, 30 Jun 2019 08:53:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Sun, 30 Jun 2019 09:53:03 -0600 Message-ID: Subject: Re: interested in contributing to FreeBSD projects To: Mihir Luthra Cc: Alan Somers , "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 6E3328B5EB X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=SGHKC7fG X-Spamd-Result: default: False [-5.70 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[a.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.70)[-0.700,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-2.99)[ip: (-9.44), ipnet: 2607:f8b0::/32(-3.13), asn: 15169(-2.34), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jun 2019 15:53:15 -0000 On Sun, Jun 30, 2019 at 3:56 AM Mihir Luthra wrote: > Hi Alan, > > As told, I sent a mail on freebsd-net@FreeBSD.org. I haven=E2=80=99t rece= ived any > responses yet. > Can I still start to work on project? Or should I wait? > Also could you possibly suggest me some links which I should read being a > newcomer? > Sometimes people are busy. It's always a balancing act. Sometimes you get good feedback, sometimes not. It's best to ask like you did, but then if you get nothing to plow ahead. People are usually pretty good about highlighting areas of improvement for patches should your patches need them. Often times it's easier to talk from a specific patch than more generally about something as vague as general cleanup. The project should be better about talking about things on the front end rather than the back end. My recommendation to you would be to start small. Pick some small area of cleanup. Do it and post a phabricator review. I'll try to catch that you've done this and look at it (though you are welcome to email the review and/or add me to the list of reviewers). You should also tell net@freebsd.org as well about the review. hackers@ too might be good. Both groups have traditionally been dominated by kernel people, so casting a wider net is good. Warner From owner-freebsd-hackers@freebsd.org Sun Jun 30 17:28:06 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB26415DAD87 for ; Sun, 30 Jun 2019 17:28:06 +0000 (UTC) (envelope-from luthramihir708@gmail.com) Received: from mail-ua1-x942.google.com (mail-ua1-x942.google.com [IPv6:2607:f8b0:4864:20::942]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 779018E620; Sun, 30 Jun 2019 17:28:05 +0000 (UTC) (envelope-from luthramihir708@gmail.com) Received: by mail-ua1-x942.google.com with SMTP id v20so4144151uao.3; Sun, 30 Jun 2019 10:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nLwvWghV0VjVPRAfiK9tQtPY+bzACy6sTBI5uBS86/s=; b=e4iVwSRXQdPqNl+wLu5uF5HCDmZPO8tGLRyw9H6MHfb9AkbDRpLeZ1DkUKuaETe5XD AKz0N64bLcvqcqf6oPp5DdQgoOaCQZNp/j4ckxrpb5RnLl7ajgnJ19xVa5nxF86xT/Z4 BAYMJ1nBvA4aaZRxNwoH9NvijDfRu4Tu4u6lA2QBo9C/VF640LUmh3yrRt/PMXdM152b OMwNWDDQ2kVz/ZjSElecsQcmXLK1FbcIwx8CxiXJET+b1CVdyGNF8TMn6tRyJDBRk1co OFVslRWvwVU0kLNkVfqWjhi5uub0NfEnDZCp5sxRjYrPTFK2epvg4cjc22AtIpt6skem uJvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nLwvWghV0VjVPRAfiK9tQtPY+bzACy6sTBI5uBS86/s=; b=E8VVjZtJ1UVArDJxNXH2qvXtu61rRfIZ+2I5QpWumk+6Kl2F+rJjCL9BFYvijRM/2R q8zZQdeYvOezEpUnGKg0sm9Ke8Lbl5ayT33nYw6dODeQvA3bQw5UqbsfHJOmgGF2Aw6L pt13U743OxXyi1flZ9UkM/huu6nsFq63m8fcz0o/MXm+ft3YWiPiRNNBvcAcUv0O9Bw0 hxxaSjK3L0Red3uP8nwqPS6frkkCDOp4TGurKMbotAYrcnm+4w8sa+yPlY6iiRRq5CpY WKIfpcBqCBPci235x2I8wCzioQ45Z/LE8pzV9AOFjFmwzRh5bTcQnESFTNvL6UF6UM8f mqlA== X-Gm-Message-State: APjAAAUUOSVtMUwf6LOXWbZg1qso8KgpoBUIx8dqqJwMJVHHjb+W0C54 KU63xIljYZq5DkzsBTt+Qw4SWTPlTB1H/35psG/5O8R3 X-Google-Smtp-Source: APXvYqy62WRqRe1b2MWp+YqfQzfN48UNQPHmV32X0Vvok7NuWfp7LJyZNZSiD45NZCpjR7+8jb9wOHSs7ZgaMRceMg4= X-Received: by 2002:ab0:2bc6:: with SMTP id s6mr11530614uar.86.1561915684865; Sun, 30 Jun 2019 10:28:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mihir Luthra Date: Sun, 30 Jun 2019 22:57:53 +0530 Message-ID: Subject: Re: interested in contributing to FreeBSD projects To: Warner Losh Cc: Alan Somers , "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 779018E620 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=e4iVwSRX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of luthramihir708@gmail.com designates 2607:f8b0:4864:20::942 as permitted sender) smtp.mailfrom=luthramihir708@gmail.com X-Spamd-Result: default: False [-3.94 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2.4.9.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; IP_SCORE(-0.59)[ip: (2.57), ipnet: 2607:f8b0::/32(-3.13), asn: 15169(-2.34), country: US(-0.06)]; NEURAL_HAM_SHORT(-0.34)[-0.337,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jun 2019 17:28:06 -0000 Hi, Sometimes people are busy. It's always a balancing act. Sometimes you get > good feedback, sometimes not. It's best to ask like you did, but then if > you get nothing to plow ahead. People are usually pretty good about > highlighting areas of improvement for patches should your patches need > them. Often times it's easier to talk from a specific patch than more > generally about something as vague as general cleanup. The project should > be better about talking about things on the front end rather than the back > end. > > My recommendation to you would be to start small. Pick some small area of > cleanup. Do it and post a phabricator review. I'll try to catch that you've > done this and look at it (though you are welcome to email the review and/or > add me to the list of reviewers). You should also tell net@freebsd.org as > well about the review. hackers@ too might be good. Both groups have > traditionally been dominated by kernel people, so casting a wider net is > good. > > I got your point. I will start with small patches first after getting a bit comfortable with the current code. I will drop a mail, as suggested, when I am done. Thanks for the advice, Mihir From owner-freebsd-hackers@freebsd.org Mon Jul 1 20:17:03 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A67AB15E3555; Mon, 1 Jul 2019 20:17:03 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B77D8E31C; Mon, 1 Jul 2019 20:17:02 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wm1-x330.google.com with SMTP id s3so758584wms.2; Mon, 01 Jul 2019 13:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition:user-agent; bh=3093sPFniKdvfBvTjD0OIzJq6EL6GR0Xt2s6E5hxDBw=; b=WdUdy5QY1SEGzXDabFsnCd7+neHF/NRbrAuNMnGm+zXnS+xbdWHWYrAOpXRubAjlfs arAoGRNa4E+75blnws21HbWqV0Jo+j8xPSIR8zYz/Hv5KzEV8R6ERfZsxkLs6upPtqqv WN0pXvbigAJGXFQyD3hVYADaNcvMAqo1dMBu55/iEhZHWjdknkxKsWCeDnaAtxcVej1u SbP6M9MloUaWVPrGrWrMDx8olspjWmHmBxdEmraOQ/xT6avJd3PKIAVvx9qgEKgK6F/P PQD5Ca16AAiB3YMksL1hafZztgVmMtjTp+BOCNH6o/eD43ppwdkCON9IkfMKZfFlGkqV wlPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :mail-followup-to:mime-version:content-disposition:user-agent; bh=3093sPFniKdvfBvTjD0OIzJq6EL6GR0Xt2s6E5hxDBw=; b=Eo2DokUUu16vDc1B+3Z53IGbopI/dB5EBhqhjyQA6tLd3CjoNq19byLFehAp1m10Ie CLyJ2DOTG3KYVblaifaKKAsVfAS/Qk53K878O2s8Kt3pAsN6Nq3TCR0KJ5SnK4hpVd7/ fmenr5XN2kZzMNovV3WvUZ4Ib79T9W450LByfjJwEmlwPNpFPEIEsxMKKrmSzfWUexZ8 NNGgiDMPEstWeYCkrBId1u8ofZ+zxtiugwzsfi2mYkX1sHECytNDiB1zeJO6aPUdibyP vB405lxD1LDV7lfLm2AEUXd0aNFtgjTzirEtGKb9aozRKeFouJUmUoxMEFvI1e8F3iPa rGFQ== X-Gm-Message-State: APjAAAUEgoJQNoPV5la6XZ8w+qzyOjwoDpfrUCDxYZiVrQoQyQIekmGS pZtlRUSlAXRUYwPALoHEqn5Y0j73 X-Google-Smtp-Source: APXvYqx3P/b4ZoQvpBl/IST+N6175EEnDx+kP35zoYii/dfutRzwt9N90UmgEeEYazda4vru/q9U0w== X-Received: by 2002:a7b:cf32:: with SMTP id m18mr583396wmg.27.1562012220343; Mon, 01 Jul 2019 13:17:00 -0700 (PDT) Received: from v2 (cpc92302-cmbg19-2-0-cust461.5-4.cable.virginm.net. [82.1.209.206]) by smtp.gmail.com with ESMTPSA id o11sm627034wmh.37.2019.07.01.13.16.58 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 01 Jul 2019 13:16:59 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Mon, 1 Jul 2019 21:16:57 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Call for 2019Q2 quarterly status reports Message-ID: <20190701201657.GA23686@v2> Mail-Followup-To: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline User-Agent: Mutt/1.12.0 (2019-05-25) X-Rspamd-Queue-Id: 8B77D8E31C X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=WdUdy5QY; spf=pass (mx1.freebsd.org: domain of etnapierala@gmail.com designates 2a00:1450:4864:20::330 as permitted sender) smtp.mailfrom=etnapierala@gmail.com X-Spamd-Result: default: False [-7.67 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[trasz@freebsd.org,etnapierala@gmail.com]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[trasz@freebsd.org,etnapierala@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_SHORT(-0.99)[-0.987,0]; IP_SCORE(-2.88)[ip: (-9.35), ipnet: 2a00:1450::/32(-2.63), asn: 15169(-2.35), country: US(-0.06)]; RCVD_IN_DNSWL_NONE(0.00)[0.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; MID_RHS_NOT_FQDN(0.50)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jul 2019 20:17:03 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear FreeBSD Community, The deadline for the next FreeBSD Quarterly Status update is July 31, 2019, for work done since the last round of Quarterly Reports: April, 2019 =E2=80=93 June, 2019. Status report submissions do not need to be very long. They may be about anything happening in the FreeBSD project and community, and provide a great way to inform FreeBSD users and developers about work that is underway and completed. Submission of reports is not restricted to committers; anyone doing anything interesting and FreeBSD related can -- and should -- write one! The preferred method is to follow the guidelines at the Quarterly GitHub repository: https://github.com/freebsd/freebsd-quarterly Alternatively you can fetch the Markdown template, fill it in, and email it to quarterly@FreeBSD.org. The template can be found at: https://raw.githubusercontent.com/freebsd/freebsd-quarterly/master/report-s= ample.md The old XML generator and templates are no longer used. We look forward to seeing your 2019Q2 reports! Thanks, Edward (on behalf of quarterly@) --wac7ysb48OaltWcw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGmBAEBCgCQFiEEbvjBe1hu6u1NeinjJCKD+Vwk/7oFAl0aajlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDZF RjhDMTdCNTg2RUVBRUQ0RDdBMjlFMzI0MjI4M0Y5NUMyNEZGQkESHHRyYXN6QGZy ZWVic2Qub3JnAAoJECQig/lcJP+6fTEIAJxTthe2e7TP+SaKrQJNImOux9KWvOOB SCL55ZJYY2LRzkKxfdjxlRaU5trB03iQADdbLHZKMl5PUs88LtaY9A15/ZvoOv07 SpEoR8QcJfushBct1MaKP37NsFL7hn6AwfHOxLpH7l6THf49KkaBplmST4+tK0Qs euLOkJL2fgXoQ/KGnJMUOh+MBdb3mLTJSzuBWs31/99JzZq/9gJ5FcAR5qliksy9 GcFw+r2gKHfk/FcvG2SB5QNYbplLd4h8JUuZzAU0j4hcXCH4yhzI6Cu2NTphAYC+ QOojAj1LhQZ3KN8aNBJONNWyba7lzqWvkW4WnmoSvH1PwOEvVvzJ1X4= =4kOu -----END PGP SIGNATURE----- --wac7ysb48OaltWcw-- From owner-freebsd-hackers@freebsd.org Tue Jul 2 02:54:31 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46E2415C1AC7 for ; Tue, 2 Jul 2019 02:54:31 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4BC3B6A228 for ; Tue, 2 Jul 2019 02:54:30 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yv.noip.me (c-67-180-169-236.hsd1.ca.comcast.net [67.180.169.236]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id x622sSFv093517 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 1 Jul 2019 19:54:28 -0700 (PDT) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-67-180-169-236.hsd1.ca.comcast.net [67.180.169.236] claimed to be yv.noip.me To: Freebsd hackers list From: Yuri Subject: Question: Is there a way to get the list of all dynamic libraries needed by a given elf through API? Message-ID: Date: Mon, 1 Jul 2019 19:54:27 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 4BC3B6A228 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of yuri@rawbw.com designates 198.144.192.42 as permitted sender) smtp.mailfrom=yuri@rawbw.com X-Spamd-Result: default: False [-4.87 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:198.144.192.32/27]; HAS_XAW(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mx.rawbw.net]; NEURAL_HAM_SHORT(-0.84)[-0.835,0]; RCVD_NO_TLS_LAST(0.10)[]; RECEIVED_SPAMHAUS_PBL(0.00)[236.169.180.67.zen.spamhaus.org : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:7961, ipnet:198.144.192.0/20, country:US]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[rawbw.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[42.192.144.198.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.82)[ip: (-6.28), ipnet: 198.144.192.0/20(-4.04), asn: 7961(-3.73), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2019 02:54:31 -0000 I want to get the same information that 'ldd ' returns, but from a C/C++ program without launching external processes. It is possible to find the list of elf's shared library dependencies using libelf. But I couldn't find how to map library names to full library paths. ldd(1) sets a certain environment variable, forks and calls execl(3), and the "ld.so magic" does the rest. Obviously, if one needs to do the same from their own C program, forking is a much less attractive option compared to the API way. Is there an API to find such mappings? If no, why doesn't it exist? Thank you, Yuri From owner-freebsd-hackers@freebsd.org Tue Jul 2 03:15:27 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 79F0015C2929 for ; Tue, 2 Jul 2019 03:15:27 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AE0656B531 for ; Tue, 2 Jul 2019 03:15:25 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qt1-x843.google.com with SMTP id p15so16996371qtl.3 for ; Mon, 01 Jul 2019 20:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2oQuLhMB5aG8GALFsa86DKTSCVUBnDqCoLDdFCTWMf0=; b=R+7955zUVUBUHLAKOuoseK9NLg9pI8pzK5v/PoP8/3lbplT0cequNiz/UDr6hmLcnm jjIskCE4jpph8joeh2aE89jJVaQEalTdUYNZ0K+TMF4PWOrY0gYhMBlPgy1mjVJouoUe m9r53IBg6lo7848ApV5Ym0MXaxl3rJ7CnVYbAl0VE2MdXrrw5DX/bePfNhwWVagTqxzS DDGk14kZQAUdiBVpPLeoNDC8LL4SH8M7xq74jPcPSc5Oau/UdmsEmqBDqCIF2V44CeGh VJs9Uu2WPesAmO9VJC0IVWr2tnudpwrrnmkznFey3njftFuZ/SqFft+X2EcWmK78HC8z 4iEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2oQuLhMB5aG8GALFsa86DKTSCVUBnDqCoLDdFCTWMf0=; b=acKH+Z2aOTHgvUrad62FnB5gfqx3fvLhUBR246RLqkfQ05yle3YCC5D7C4utxCA5Au QZybKq+tBSCmg83eN+cGCnZLNLzyCCs9YnjwAyOifjgljuVrerJCkGCBDIimesLHITT9 t3CJVkGH9gL84smoCdS9pYylCe4WsrX2TaNBXdbpUf2iqKABIEeyHgved8HgGPvuBE4A CK9KsGl7w7rO/Wa+0ueQI7l80K0DNwOkQ9Xl7qrVV+ZKLjDmwJtRY3xx9sNXSQHfICU8 PiNW0iBOvaZaBpYw/Hr6+7FsH5O+PSJvjblGAp6Qwz31gaR8jn0RVFSQndoGlaZs3Tmi x54g== X-Gm-Message-State: APjAAAWkUdWrvmYEfIWa7Q6c9zAd2rEkVxmDPZNEkCfChpaJKxJK9NVE FKQwbJjw4QP18+XH9zJGe+l+U+5lwyg= X-Google-Smtp-Source: APXvYqw2HXDo8e0+1fRE1+Fknmyd4sOkTLuDmMiwqE5hPBegRtevdHQxzdpejYk9kKM9SdlysxnJ2w== X-Received: by 2002:ac8:5458:: with SMTP id d24mr22787976qtq.329.1562037324870; Mon, 01 Jul 2019 20:15:24 -0700 (PDT) Received: from mutt-hbsd ([151.196.118.239]) by smtp.gmail.com with ESMTPSA id a23sm5501797qtp.22.2019.07.01.20.15.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 01 Jul 2019 20:15:23 -0700 (PDT) Date: Mon, 1 Jul 2019 23:15:23 -0400 From: Shawn Webb To: Yuri Cc: Freebsd hackers list Subject: Re: Question: Is there a way to get the list of all dynamic libraries needed by a given elf through API? Message-ID: <20190702031523.lhlrqnlo7pxccl42@mutt-hbsd> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3nmsf3huqkgjbmlp" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD mutt-hbsd 13.0-CURRENT-HBSD FreeBSD 13.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0xFF2E67A277F8E1FA User-Agent: NeoMutt/20180716 X-Rspamd-Queue-Id: AE0656B531 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b=R+7955zU; spf=pass (mx1.freebsd.org: domain of shawn.webb@hardenedbsd.org designates 2607:f8b0:4864:20::843 as permitted sender) smtp.mailfrom=shawn.webb@hardenedbsd.org X-Spamd-Result: default: False [-4.73 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[hardenedbsd.org:+]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[alt1.aspmx.l.google.com,aspmx.l.google.com,aspmx2.googlemail.com,alt2.aspmx.l.google.com,aspmx3.googlemail.com]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_SHORT(-0.85)[-0.852,0]; RECEIVED_SPAMHAUS_PBL(0.00)[239.118.196.151.zen.spamhaus.org : 127.0.0.10]; IP_SCORE(-0.77)[ip: (1.73), ipnet: 2607:f8b0::/32(-3.14), asn: 15169(-2.35), country: US(-0.06)]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org:s=google]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[hardenedbsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.4.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; MID_RHS_NOT_FQDN(0.50)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2019 03:15:27 -0000 --3nmsf3huqkgjbmlp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 01, 2019 at 07:54:27PM -0700, Yuri wrote: > I want to get the same information that 'ldd ' returns, but fro= m a > C/C++ program without launching external processes. >=20 > It is possible to find the list of elf's shared library dependencies using > libelf. But I couldn't find how to map library names to full library path= s. >=20 >=20 > ldd(1) sets a certain environment variable, forks and calls execl(3), and > the "ld.so magic" does the rest. >=20 >=20 > Obviously, if one needs to do the same from their own C program, forking = is > a much less attractive option compared to the API way. >=20 >=20 > Is there an API to find such mappings? If no, why doesn't it exist? Hey Yuri, If you're not afraid to get your hands, feet, and pet rock named Steve dirty with the one true language of love, C, and you can link against libraries in base, take a look at libelf. If you want to use a scripting language, ldd is still the right tool for the job. Taking a look at the manpage for ldd(1), which will eventually point us to rtld(1), which will teach us that we can end up with something like: $ ldd -f '%p\n' /bin/ls /lib/libutil.so.9 /lib/libncursesw.so.8 /lib/libthr.so.3 /lib/librt.so.1 /lib/libm.so.5 /lib/libexecinfo.so.1 /lib/libc.so.7 (That is verbatim on my HardenedBSD dev laptop. The multitude of libraries is due to SafeStack and CFI.) So, what you're looking for is technically documented, but not in a straightforward manner. Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD Tor-ified Signal: +1 443-546-8752 Tor+XMPP+OTR: lattera@is.a.hacker.sx GPG Key ID: 0xFF2E67A277F8E1FA GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9 3633 C85B 0AF8 AB23 0FB2 --3nmsf3huqkgjbmlp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAl0azEUACgkQ/y5nonf4 4frJjA/+PiYNUyqaO4gfU78N1mO5R5vo4Y0oJ4WXu1+FMFC/ntWmuGStjJlM2iP8 1wJfzJV2bU+wEVGnpk07XkV19VPrVHDKlLc4gIqeiOrh6PMIQTMWiKo/JTUey4V+ sk+MRgCijgo7c0rvqpv1taW1TFSQQhuXK/UlhkAe9IQLxP/koJZTNI6QOi0aVsAt ZgaHSbOMgGRTbvhnu2cSHLuUkd1k2MHgNbHAty0Sqbw8RYI25KgQhKFC/NE6Srm7 c0z4U7HEiG+lgsaKUYxniRAjfwPdINr0dW8Auh1KdzRMjnDZKjl5+qiNOSzed8NN h7L6oYF5paadnHE25SUcy+nkwuapsHhM7lw2uW//le0JPdtebSdoZ2cGd/dskcFN y5gMX0Rr2mcs5Tc1fOTMAjGaLd0nHrMHRiL3p2PmuxKROc839vuExtqbAk+qaGaJ crlolDMv4khpcnE3sB4pM3DQ5yFcFvI2OvxRzGOcvFfAAf13fiD/X9qmLB3uEjKK JzaIF7SvOaxA54sm3WbeBo+imIESyga29HxRIAbtgb5V+RzCSHeH+4lBHCQ4FJos 1Xy/olJFt8L+Fb6XSMp4RutQ5xJhkmbB370wpeZfHKW1njY79Fc5soOmfpIgLktF 9/OySB6xg4eM755w11u8wai7I0MIdSJFy6i2iuXSr7ku+cKC7xE= =oA5P -----END PGP SIGNATURE----- --3nmsf3huqkgjbmlp-- From owner-freebsd-hackers@freebsd.org Tue Jul 2 05:27:30 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E62BB15C7381 for ; Tue, 2 Jul 2019 05:27:29 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id F01B26EA23 for ; Tue, 2 Jul 2019 05:27:28 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yv.noip.me (c-67-180-169-236.hsd1.ca.comcast.net [67.180.169.236]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id x625RQLV012572 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 1 Jul 2019 22:27:27 -0700 (PDT) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-67-180-169-236.hsd1.ca.comcast.net [67.180.169.236] claimed to be yv.noip.me Subject: Re: Question: Is there a way to get the list of all dynamic libraries needed by a given elf through API? To: Shawn Webb Cc: Freebsd hackers list References: <20190702031523.lhlrqnlo7pxccl42@mutt-hbsd> From: Yuri Message-ID: Date: Mon, 1 Jul 2019 22:27:25 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190702031523.lhlrqnlo7pxccl42@mutt-hbsd> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: F01B26EA23 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of yuri@rawbw.com designates 198.144.192.42 as permitted sender) smtp.mailfrom=yuri@rawbw.com X-Spamd-Result: default: False [-4.87 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[236.169.180.67.zen.spamhaus.org : 127.0.0.10]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:198.144.192.32/27]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[rawbw.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mx.rawbw.net]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[42.192.144.198.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.90)[-0.899,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7961, ipnet:198.144.192.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-2.76)[ip: (-6.17), ipnet: 198.144.192.0/20(-3.85), asn: 7961(-3.73), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2019 05:27:30 -0000 On 2019-07-01 20:15, Shawn Webb wrote: > $ ldd -f '%p\n' /bin/ls Hi Shawn, ldd doesn't do what I need. It sets one specific environment variable, then forks and calls execl(3). And I am looking for the API function like: char* find_shared_library_mapping(const char *so_lib, char *buf_out, size_t buf_out_sz); // or something like this. Yuri From owner-freebsd-hackers@freebsd.org Tue Jul 2 07:12:02 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8176F15C9E47 for ; Tue, 2 Jul 2019 07:12:02 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 27A48713AC; Tue, 2 Jul 2019 07:12:02 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from ivaldir.etoilebsd.net (etoilebsd.net [178.32.217.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id E39B01A6B2; Tue, 2 Jul 2019 07:12:01 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by ivaldir.etoilebsd.net (Postfix, from userid 1001) id 84A24B9457; Tue, 2 Jul 2019 09:12:00 +0200 (CEST) Date: Tue, 2 Jul 2019 09:12:00 +0200 From: Baptiste Daroussin To: Yuri Cc: Shawn Webb , Freebsd hackers list Subject: Re: Question: Is there a way to get the list of all dynamic libraries needed by a given elf through API? Message-ID: <20190702071200.qy6hr5yhaczhj6wx@ivaldir.net> References: <20190702031523.lhlrqnlo7pxccl42@mutt-hbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="df4rgdc7uqp7e5tj" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Rspamd-Queue-Id: 27A48713AC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.95)[-0.947,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2019 07:12:02 -0000 --df4rgdc7uqp7e5tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 01, 2019 at 10:27:25PM -0700, Yuri wrote: > On 2019-07-01 20:15, Shawn Webb wrote: > > $ ldd -f '%p\n' /bin/ls >=20 >=20 > Hi Shawn, >=20 >=20 > ldd doesn't do what I need. It sets one specific environment variable, th= en > forks and calls execl(3). >=20 > And I am looking for the API function like: char* > find_shared_library_mapping(const char *so_lib, char *buf_out, size_t > buf_out_sz); // or something like this. >=20 Use libelf, and read the dynamic section which will give you everything you want: readelf -d which uses libelf, will give you this with all the NEEDED tag. The same way you can get the runpath and rpath Tag Type Name/Value 0x0000000000000001 NEEDED Shared library: [libutil.so.9] 0x0000000000000001 NEEDED Shared library: [libncursesw.so.8] 0x0000000000000001 NEEDED Shared library: [libc.so.7] The good thing about it is that you will you will only get the direct dependency. This is through this lib that pkg extract the list of required libraries Best rgeards, Bapt --df4rgdc7uqp7e5tj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAl0bA70ACgkQY4mL3PG3 PlpCAw//be6QYmWWMP6BkQVLAOTXem2vEeBHevYTiJBi7IcXaArXVLeI26Ba2hCP 9sFK+hy6tkW11m6AgkzwBKyHdxpZxhqP0usCFWu8iOGSWZT4s5SEVzvcnMYne4uv pdcdZNrG5NliPleuhXM0WsRQi8WAdcf26mMKjkckKk1usd7QOKoZD3ZqVEKtzyjP V9DiOC9Rz8qWrkmTJDkStZxGW9it0EyxiacwuH2+8JeL1DOcVfAOpGI3hgvxRYim g2oZ9hTpEFkidd4aZJxIDCAZKjzxB95ch0XQdC3VVXeisypl+jKQO5C72cWyvsJz arTmiYA5jyAtLpcAXlHPyUc70NJrE8g8XM1u+XRd2fuHw03CKORlYegZadEhW8+e 79heS2UNuZnQixkff5UVLkmXwOQN4JKeSu9eCkNHS6+wdQ0+aYuUs33S5EZwH956 6V1IE9e5BHwySe3PjRjRuh9pqz8/2k8v3LUWsRC+oM2fnoK/vBbsBOYw4icx/dJp Z14inqyI20nKiese8KhspxBlhCGgbbzsOpaJeW8jzTKweO2LNMPDIeexj91THSYt GTHjpYNhyNhMxZdV28ZFQCN+zC8h/qyAdwivKMfpNIvGfSjGf7Pml0UB3CMAMQn+ AelPN9oEDJ4BDhCNHABBPoMob0J4AtkUuRFP1yOgXZ/wR9tnlK8= =HqEs -----END PGP SIGNATURE----- --df4rgdc7uqp7e5tj-- From owner-freebsd-hackers@freebsd.org Tue Jul 2 09:56:49 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC02415CE1E7 for ; Tue, 2 Jul 2019 09:56:49 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D89FC76AA0; Tue, 2 Jul 2019 09:56:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x629ue54071649 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 2 Jul 2019 12:56:43 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x629ue54071649 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x629ud6B071648; Tue, 2 Jul 2019 12:56:39 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 2 Jul 2019 12:56:39 +0300 From: Konstantin Belousov To: Baptiste Daroussin Cc: Yuri , Freebsd hackers list , Shawn Webb Subject: Re: Question: Is there a way to get the list of all dynamic libraries needed by a given elf through API? Message-ID: <20190702095639.GA47193@kib.kiev.ua> References: <20190702031523.lhlrqnlo7pxccl42@mutt-hbsd> <20190702071200.qy6hr5yhaczhj6wx@ivaldir.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190702071200.qy6hr5yhaczhj6wx@ivaldir.net> User-Agent: Mutt/1.12.1 (2019-06-15) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2019 09:56:49 -0000 On Tue, Jul 02, 2019 at 09:12:00AM +0200, Baptiste Daroussin wrote: > On Mon, Jul 01, 2019 at 10:27:25PM -0700, Yuri wrote: > > On 2019-07-01 20:15, Shawn Webb wrote: > > > $ ldd -f '%p\n' /bin/ls > > > > > > Hi Shawn, > > > > > > ldd doesn't do what I need. It sets one specific environment variable, then > > forks and calls execl(3). > > > > And I am looking for the API function like: char* > > find_shared_library_mapping(const char *so_lib, char *buf_out, size_t > > buf_out_sz); // or something like this. > > > Use libelf, and read the dynamic section which will give you everything you > want: > > readelf -d which uses libelf, will give you this with all the NEEDED tag. > The same way you can get the runpath and rpath > > Tag Type Name/Value > 0x0000000000000001 NEEDED Shared library: [libutil.so.9] > 0x0000000000000001 NEEDED Shared library: [libncursesw.so.8] > 0x0000000000000001 NEEDED Shared library: [libc.so.7] > > The good thing about it is that you will you will only get the direct > dependency. > > This is through this lib that pkg extract the list of required libraries Rtld rules for search paths preferences are very convoluted. Look at the ld-elf.so.1 man page about it, rpath vs. runpath, and the effects of the environment variables, and the caller settings, and tags expansion which rewrites DT_NEEDED and rpath. The question 'which file is used to satisfy this DT_NEEDED tag' can be only correctly answered in context of the image activation or dlopen(3) call, due to all the factors affecting the selection. Even the location of the code which called dlopen(3) is important. The consequence is that such API cannot exist in reliable form. From owner-freebsd-hackers@freebsd.org Tue Jul 2 11:36:31 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A3DC15D0554 for ; Tue, 2 Jul 2019 11:36:31 +0000 (UTC) (envelope-from bounces+11118262-7880-freebsd-hackers=freebsd.org@sendgrid.net) Received: from o1.office.mobisystems.com (o1.office.mobisystems.com [198.37.146.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 00D3581B90 for ; Tue, 2 Jul 2019 11:36:29 +0000 (UTC) (envelope-from bounces+11118262-7880-freebsd-hackers=freebsd.org@sendgrid.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.net; h=from:mime-version:subject:to:content-type; s=smtpapi; bh=8mxITYZQwgQhn/JlPmZy+QsGhkk=; b=fjX5IonR6uVGEH9yF3nuQNUCc1zSt Btjp36Otf3UISQuBndwBDv2INcC7DrHsp7L+EqjVhqHQuk03fjFIyG3TKt0x4h9i 77+0MQTUd6dUGPavb7kaNexVWKGJxby9A3uYzmF3CgmPvMojXhQBMl19/l/r8fuL FULOtDP1IgUNbw= Received: by filter0066p3las1.sendgrid.net with SMTP id filter0066p3las1-7108-5D1B417A-26 2019-07-02 11:35:22.573198315 +0000 UTC m=+320917.453866120 Received: from unidef.org (62.127.235.35.bc.googleusercontent.com [35.235.127.62]) by ismtpd0026p1las1.sendgrid.net (SG) with ESMTP id Jp1ngxVKSFaVKBbzKMfRVQ for ; Tue, 02 Jul 2019 11:35:22.553 +0000 (UTC) Received: from [192.168.0.127] (c-67-169-22-104.hsd1.ca.comcast.net [67.169.22.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by unidef.org (Postfix) with ESMTPSA id 640CF81742 for ; Tue, 2 Jul 2019 11:35:22 +0000 (UTC) From: Unidef Mime-Version: 1.0 (1.0) Date: Tue, 02 Jul 2019 11:36:22 +0000 (UTC) Subject: Can someone write a BASIC (the programming language) interface from FreeBSD to emacs? Message-Id: <10E188AF-526D-4E70-A7BC-87E9DB45B05C@unidef.org> To: freebsd-hackers@freebsd.org X-Mailer: iPhone Mail (16F203) X-SG-EID: W2XBZA0V/n0voZZ6SjDkgjXvzGvkLIaljy40FLIRIHQsGfbUrDR4gLCdr22PSNMQeHvWGF/ZNMxFWM BVWFFWyuoD2GR7xWqGAJ4QGU8nduRGxT3rJfY7QQyx1sf/EhnQUPGba+4QZdvnotxUzkZ96R15G8Zo HW8NYdMwqWktk/gG5g4Wos2BIsCAu2cjpivnbiylHtr87AllN6BpAP66Sg== X-Rspamd-Queue-Id: 00D3581B90 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sendgrid.net header.s=smtpapi header.b=fjX5IonR; spf=pass (mx1.freebsd.org: domain of bounces@sendgrid.net designates 198.37.146.154 as permitted sender) smtp.mailfrom=bounces@sendgrid.net X-Spamd-Result: default: False [-1.43 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(0.00)[+ip4:198.37.144.0/20]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[sendgrid.net:+]; MX_GOOD(-0.01)[mx.sendgrid.net,mx2.sendgrid.net]; NEURAL_HAM_SHORT(-0.97)[-0.970,0]; FORGED_SENDER(0.30)[unidef@unidef.org,bounces@sendgrid.net]; RCVD_TLS_LAST(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:11377, ipnet:198.37.144.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[11118262-7880-freebsd-hackers=freebsd.org]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(0.00)[sendgrid.net:s=smtpapi]; FROM_NEQ_ENVFROM(0.00)[unidef@unidef.org,bounces@sendgrid.net]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[unidef.org]; URIBL_GREY(1.50)[sendgrid.net.multi.uribl.com]; RCPT_COUNT_ONE(0.00)[1]; BAD_REP_POLICIES(0.10)[]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_IN_DNSWL_NONE(0.00)[154.146.37.198.list.dnswl.org : 127.0.15.0]; IP_SCORE(-1.75)[ipnet: 198.37.144.0/20(-4.90), asn: 11377(-3.78), country: US(-0.06)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2019 11:36:31 -0000 Basic is pretty good with multi dimensional arrays, maybe we can add pointe= rs. Wonderful lowtax hacker my google so I can=E2=80=99t find an open sourc= e basic compiler Sent from my iPhone From owner-freebsd-hackers@freebsd.org Tue Jul 2 12:41:13 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F9D515D26E5 for ; Tue, 2 Jul 2019 12:41:13 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "eg.sd.rdtc.ru", Issuer "eg.sd.rdtc.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B9AA4844BC for ; Tue, 2 Jul 2019 12:41:01 +0000 (UTC) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: freebsd-hackers@freebsd.org Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id x62CeqkB056863 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 2 Jul 2019 19:40:52 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Can someone write a BASIC (the programming language) interface from FreeBSD to emacs? To: Unidef , freebsd-hackers@freebsd.org References: <10E188AF-526D-4E70-A7BC-87E9DB45B05C@unidef.org> From: Eugene Grosbein Message-ID: <2b346918-aadf-b55d-ec89-f12672494af0@grosbein.net> Date: Tue, 2 Jul 2019 19:40:45 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <10E188AF-526D-4E70-A7BC-87E9DB45B05C@unidef.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B9AA4844BC X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; spf=permerror (mx1.freebsd.org: domain of eugen@grosbein.net uses mechanism not recognized by this client) smtp.mailfrom=eugen@grosbein.net X-Spamd-Result: default: False [2.02 / 15.00]; ARC_NA(0.00)[]; MX_INVALID(0.50)[greylisted]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[grosbein.net]; NEURAL_SPAM_MEDIUM(0.28)[0.283,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_PERMFAIL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.32)[0.319,0]; NEURAL_HAM_SHORT(-0.03)[-0.029,0]; IP_SCORE(0.05)[asn: 29072(0.24), country: RU(0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:29072, ipnet:2a03:3100::/32, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2019 12:41:13 -0000 02.07.2019 18:36, Unidef wrote: > Basic is pretty good with multi dimensional arrays, maybe we can add pointers. > Wonderful lowtax hacker my google so I can’t find an open source basic compiler I'm not sure I understood your question right and why do you need some "interface to emacs", but we have plenty of BASIC implementation in FreeBSD Ports collection: lang/basic256 lang/mono-basic lang/bwbasic lang/cmbasic lang/pbasic lang/tcbasic lang/yabasic From owner-freebsd-hackers@freebsd.org Tue Jul 2 14:01:10 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7575715D3F3E for ; Tue, 2 Jul 2019 14:01:10 +0000 (UTC) (envelope-from bounces+11118262-7880-freebsd-hackers=freebsd.org@sendgrid.net) Received: from o1.office.mobisystems.com (o1.office.mobisystems.com [198.37.146.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 76DAC86FAE for ; Tue, 2 Jul 2019 14:01:09 +0000 (UTC) (envelope-from bounces+11118262-7880-freebsd-hackers=freebsd.org@sendgrid.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.net; h=mime-version:subject:from:in-reply-to:cc:references:to:content-type; s=smtpapi; bh=ZwlCKKhbg3LhiXbSWqo8yx8iR8w=; b=XVIKmer64KKAHGWZSR ZcswP7iXXJ2jV9AXO0C0ZdZ35quw7zFI9yARlBNht+CkSNHyPl5k6gB6+JWqNhpY oDL9727wyR25rb2ilqDxjKwFZ5JNfciIFhOMA/wtLqX74CCPoP0GGHU8F/XLEgm0 WPn53WM5RTNovebdvXPnco6Os= Received: by filter0028p3las1.sendgrid.net with SMTP id filter0028p3las1-32082-5D1B6364-5A 2019-07-02 14:00:04.592290042 +0000 UTC m=+329598.660836205 Received: from unidef.org (62.127.235.35.bc.googleusercontent.com [35.235.127.62]) by ismtpd0015p1las1.sendgrid.net (SG) with ESMTP id ElhO_WDQT9u9UZPPwK1Qvg Tue, 02 Jul 2019 14:00:04.606 +0000 (UTC) Received: from [192.168.0.127] (c-67-169-22-104.hsd1.ca.comcast.net [67.169.22.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by unidef.org (Postfix) with ESMTPSA id 5A16581748; Tue, 2 Jul 2019 14:00:04 +0000 (UTC) Mime-Version: 1.0 (1.0) Subject: Re: Can someone write a BASIC (the programming language) interface from FreeBSD to emacs? From: Unidef X-Mailer: iPhone Mail (16F203) In-Reply-To: <2b346918-aadf-b55d-ec89-f12672494af0@grosbein.net> Date: Tue, 02 Jul 2019 14:01:08 +0000 (UTC) Cc: freebsd-hackers@freebsd.org Message-Id: <18672A10-15DC-4188-9CB3-5AE1C2AB3BD2@unidef.org> References: <10E188AF-526D-4E70-A7BC-87E9DB45B05C@unidef.org> <2b346918-aadf-b55d-ec89-f12672494af0@grosbein.net> To: Eugene Grosbein X-SG-EID: W2XBZA0V/n0voZZ6SjDkgjXvzGvkLIaljy40FLIRIHS5WrDbJ4nMdDLqa3/e49Qad5ZXjTNSyM++xC qkslHJM3bcScyeKK/4Vo58+lMXIcGZ78KQ8KXI+xU5Le4dpQ01HLnbqrDtk4p4Dfp0HkuSLnwv9PSj t+Q0oEbARWeL1cmqgNaQVat0zzFHeCpbNzoQJinYm1wIk7wFIut4RYbI8vmsNWRyALpWV34ZsZ7Hn9 4= X-Rspamd-Queue-Id: 76DAC86FAE X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sendgrid.net header.s=smtpapi header.b=XVIKmer6; spf=pass (mx1.freebsd.org: domain of bounces@sendgrid.net designates 198.37.146.154 as permitted sender) smtp.mailfrom=bounces@sendgrid.net X-Spamd-Result: default: False [-1.43 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:198.37.144.0/20]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mx.sendgrid.net]; DKIM_TRACE(0.00)[sendgrid.net:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.98)[-0.977,0]; FORGED_SENDER(0.30)[unidef@unidef.org,bounces@sendgrid.net]; RCVD_TLS_LAST(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:11377, ipnet:198.37.144.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[11118262-7880-freebsd-hackers=freebsd.org]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(0.00)[sendgrid.net:s=smtpapi]; FROM_NEQ_ENVFROM(0.00)[unidef@unidef.org,bounces@sendgrid.net]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MIME_TRACE(0.00)[0:+,1:+]; DMARC_NA(0.00)[unidef.org]; URIBL_GREY(1.50)[sendgrid.net.multi.uribl.com]; BAD_REP_POLICIES(0.10)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[154.146.37.198.list.dnswl.org : 127.0.15.0]; IP_SCORE(-1.75)[ipnet: 198.37.144.0/20(-4.90), asn: 11377(-3.78), country: US(-0.06)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2019 14:01:10 -0000 Sorry I was stoned as a kite I found freebasic, I don=E2=80=99t have access to my desktop so I didn=E2= =80=99t get a chance to search ports Basically I want to use basic instead of lisp. Lisp is nice but a little co= mplex, with enough arrays it can be pretty functional The kernel->emacs thing can be done with a FreeBSD module, I want complete = access to the internals of FreeBSD through basic and emacs Let=E2=80=99s say I want to debug a function in the scheduler, id just scri= pt it in basic and it does it automatically It=E2=80=99s not hard rewriting the scripting language in emacs to lisp is = it? I have like 15 years experience in c and I have to read the FreeBSD ker= nel book before I read the kernel source.=20 It=E2=80=99d be nice if basic was FreeBSD=E2=80=99s python, writing a ui in= basic isn=E2=80=99t that hard, but with classes and advanced basic it=E2= =80=99s fun=20 Sent from my iPhone > On Jul 2, 2019, at 5:40 AM, Eugene Grosbein wrote: >=20 > 02.07.2019 18:36, Unidef wrote: >=20 >> Basic is pretty good with multi dimensional arrays, maybe we can add poi= nters. >> Wonderful lowtax hacker my google so I can=E2=80=99t find an open source= basic compiler >=20 > I'm not sure I understood your question right and why do you need some "i= nterface to emacs", > but we have plenty of BASIC implementation in FreeBSD Ports collection: >=20 > lang/basic256 > lang/mono-basic > lang/bwbasic > lang/cmbasic > lang/pbasic > lang/tcbasic > lang/yabasic >=20 >=20 From owner-freebsd-hackers@freebsd.org Fri Jul 5 06:28:29 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D3EC15E64BE for ; Fri, 5 Jul 2019 06:28:29 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D36B87EBF for ; Fri, 5 Jul 2019 06:28:28 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id x656SKt6012487 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 5 Jul 2019 08:28:20 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id x656SKPE012484 for ; Fri, 5 Jul 2019 08:28:20 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) Date: Fri, 5 Jul 2019 08:28:20 +0200 (CEST) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Subject: quite simple network question Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 X-Rspamd-Queue-Id: 4D36B87EBF X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-5.70 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; MX_GOOD(-0.01)[puchar.net]; CTYPE_MIXED_BOGUS(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.93)[-0.927,0]; IP_SCORE(-3.47)[ip: (-9.16), ipnet: 194.1.144.0/24(-4.58), asn: 43476(-3.66), country: PL(0.06)]; DMARC_NA(0.00)[puchar.net]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[] Content-Type: text/plain; format=flowed; charset=ISO-8859-2 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jul 2019 06:28:29 -0000 i wrote a program with client and server part - running under FreeBSD. Client program use socket, then connect to establish TCP connection to server. then it uses select every now and then to check if anything came from server, when select returns nonzero recv is executed. If recv returns negative or zero - connection error is assumed, close is called and disconnect reported to user. This works almost properly: a) reception works fine b) when server disconnects it's detected and reported. But if network fails (for simulating i simply turn ethernet interface off) it doesn't see it for a long time. so between socket and connect i added a=1; setsockopt(serverconnfd,SOL_SOCKET,SO_KEEPALIVE,&a,sizeof(a)); a=5; //KEEPALIVE co 5 sekund setsockopt(serverconnfd,SOL_SOCKET,TCP_KEEPIDLE,&a,sizeof(a)); setsockopt(serverconnfd,SOL_SOCKET,TCP_KEEPINTVL,&a,sizeof(a)); a=2; //2 próby nim uzna że rozł±czony setsockopt(serverconnfd,SOL_SOCKET,TCP_KEEPCNT,&a,sizeof(a)); and i assumed it will keepalive every 5 seconds and after 2 failures behave as disconnect. But even after minute of waiting i don't get disconnect. What i am doing wrong? From owner-freebsd-hackers@freebsd.org Fri Jul 5 06:39:58 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CED6715E6987 for ; Fri, 5 Jul 2019 06:39:58 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [173.228.5.8]) by mx1.freebsd.org (Postfix) with ESMTP id B60D3885A3 for ; Fri, 5 Jul 2019 06:39:57 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 74E3E156E424; Thu, 4 Jul 2019 23:39:36 -0700 (PDT) To: Wojciech Puchar cc: freebsd-hackers@freebsd.org Subject: Re: quite simple network question In-reply-to: Your message of "Fri, 05 Jul 2019 08:28:20 +0200." References: Comments: In-reply-to Wojciech Puchar message dated "Fri, 05 Jul 2019 08:28:20 +0200." From: Bakul Shah MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22596.1562308776.1@bitblocks.com> Date: Thu, 04 Jul 2019 23:39:36 -0700 Message-Id: <20190705063943.74E3E156E424@mail.bitblocks.com> X-Rspamd-Queue-Id: B60D3885A3 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of bakul@bitblocks.com designates 173.228.5.8 as permitted sender) smtp.mailfrom=bakul@bitblocks.com X-Spamd-Result: default: False [-5.19 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:173.228.5.8/29]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bitblocks.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[mail.bitblocks.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.88)[-0.881,0]; IP_SCORE(-2.10)[ip: (-6.44), ipnet: 173.228.0.0/20(-3.22), asn: 46375(-0.79), country: US(-0.06)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:46375, ipnet:173.228.0.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jul 2019 06:39:59 -0000 On Fri, 05 Jul 2019 08:28:20 +0200 Wojciech Puchar wrote: > i wrote a program with client and server part - running under FreeBSD. > > Client program use socket, then connect to establish TCP connection to = > > server. > > then it uses select every now and then to check if anything came from = > > server, when select returns nonzero recv is executed. > > If recv returns negative or zero - connection error is assumed, close is = > > called and disconnect reported to user. > > > This works almost properly: > > a) reception works fine > b) when server disconnects it's detected and reported. > > > But if network fails (for simulating i simply turn ethernet interface off) > it doesn't see it for a long time. > > so between socket and connect i added > > a=3D1; > setsockopt(serverconnfd,SOL_SOCKET,SO_KEEPALIVE,&a,sizeof(a)); > a=3D5; //KEEPALIVE co 5 sekund > setsockopt(serverconnfd,SOL_SOCKET,TCP_KEEPIDLE,&a,sizeof(a)); > setsockopt(serverconnfd,SOL_SOCKET,TCP_KEEPINTVL,&a,sizeof(a)); > a=3D2; //2 pr=F3by nim uzna =BFe roz=B3=B1czony > setsockopt(serverconnfd,SOL_SOCKET,TCP_KEEPCNT,&a,sizeof(a)); > > and i assumed it will keepalive every 5 seconds and after 2 failures = > > behave as disconnect. > > But even after minute of waiting i don't get disconnect. > > What i am doing wrong? I believe you have to set the exceptfds argument to select() properly. From owner-freebsd-hackers@freebsd.org Fri Jul 5 10:04:00 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 925E915E9A66 for ; Fri, 5 Jul 2019 10:04:00 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5D9468EE92 for ; Fri, 5 Jul 2019 10:03:59 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id x65A3g2N067353 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 5 Jul 2019 12:03:42 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id x65A3ggE067350; Fri, 5 Jul 2019 12:03:42 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) Date: Fri, 5 Jul 2019 12:03:42 +0200 (CEST) From: Wojciech Puchar To: Bakul Shah cc: Wojciech Puchar , freebsd-hackers@freebsd.org Subject: Re: quite simple network question In-Reply-To: <20190705063943.74E3E156E424@mail.bitblocks.com> Message-ID: References: <20190705063943.74E3E156E424@mail.bitblocks.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 5D9468EE92 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-6.54 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[puchar.net]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: puchar.net]; NEURAL_HAM_SHORT(-0.76)[-0.761,0]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-3.47)[ip: (-9.16), ipnet: 194.1.144.0/24(-4.58), asn: 43476(-3.66), country: PL(0.06)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jul 2019 10:04:00 -0000 >> But even after minute of waiting i don't get disconnect. >> >> What i am doing wrong? > > I believe you have to set the exceptfds argument to select() properly. > > added. same effects. From owner-freebsd-hackers@freebsd.org Fri Jul 5 10:06:39 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4FB715E9B49 for ; Fri, 5 Jul 2019 10:06:39 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3105B8F008 for ; Fri, 5 Jul 2019 10:06:39 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id x65A6QGG069221 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 5 Jul 2019 12:06:26 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id x65A6Q2X069218; Fri, 5 Jul 2019 12:06:26 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) Date: Fri, 5 Jul 2019 12:06:26 +0200 (CEST) From: Wojciech Puchar To: Wojciech Puchar cc: Bakul Shah , freebsd-hackers@freebsd.org Subject: Re: quite simple network question In-Reply-To: Message-ID: References: <20190705063943.74E3E156E424@mail.bitblocks.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 3105B8F008 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-6.68 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[puchar.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: puchar.net]; NEURAL_HAM_SHORT(-0.90)[-0.899,0]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-3.47)[ip: (-9.17), ipnet: 194.1.144.0/24(-4.58), asn: 43476(-3.67), country: PL(0.06)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jul 2019 10:06:40 -0000 problem found for setting TCP options second parameter of setsockopt should be IPPROTO_TCP not SOL_SOCKET On Fri, 5 Jul 2019, Wojciech Puchar wrote: >>> But even after minute of waiting i don't get disconnect. >>> >>> What i am doing wrong? >> >> I believe you have to set the exceptfds argument to select() properly. >> >> > added. same effects. > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > From owner-freebsd-hackers@freebsd.org Sat Jul 6 05:22:00 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3C8315DCAAF for ; Sat, 6 Jul 2019 05:21:59 +0000 (UTC) (envelope-from bounces+11118262-7880-freebsd-hackers=freebsd.org@sendgrid.net) Received: from o1.office.mobisystems.com (o1.office.mobisystems.com [198.37.146.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 80416732F9 for ; Sat, 6 Jul 2019 05:21:58 +0000 (UTC) (envelope-from bounces+11118262-7880-freebsd-hackers=freebsd.org@sendgrid.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.net; h=from:mime-version:subject:to:content-type; s=smtpapi; bh=qrx6hO3f752DdN1KEz2R8AqG1jU=; b=Y8iyfrpa1EXM9etqylSp8wPPyW8N4 f+G+DPDsoo+UfBh70LEvBCHlUUkcx6mfSUP0Nw1V2DgR4SNMNFK4cboCn8AgD43T JDuvsAScmWH5e7utCuzZLmXYiH7Jk7qi8ahQnXM5wT5ivJ3msQHhslVbj2DU2ilL YWdu42aAtN0CdE= Received: by filter0090p3iad2.sendgrid.net with SMTP id filter0090p3iad2-14183-5D202FB9-19 2019-07-06 05:20:57.699533299 +0000 UTC m=+209128.465499984 Received: from unidef.org (241.238.94.34.bc.googleusercontent.com [34.94.238.241]) by ismtpd0002p1las1.sendgrid.net (SG) with ESMTP id NZbNSO_7SG-nQNZ9NZ_lRQ for ; Sat, 06 Jul 2019 05:20:57.309 +0000 (UTC) Received: from [192.168.0.127] (c-67-169-22-104.hsd1.ca.comcast.net [67.169.22.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by unidef.org (Postfix) with ESMTPSA id 2D61E81C5B for ; Sat, 6 Jul 2019 05:20:57 +0000 (UTC) From: Unidef Mime-Version: 1.0 (1.0) Date: Sat, 06 Jul 2019 05:21:57 +0000 (UTC) Subject: Secure urls in kernel? Message-Id: To: freebsd-hackers@freebsd.org X-Mailer: iPhone Mail (16F203) X-SG-EID: W2XBZA0V/n0voZZ6SjDkgjXvzGvkLIaljy40FLIRIHQLVXvrt/tQ9m+2qXPUE36BRwQDSb4j77kwTl s6iylwtPf97Fsu74wQEVlYwpSii+LyVnpqmqof3YJGFU5wU2KmfqeQ7dZOLIRyasGzSxPMBuziF2jL rlXboub/5izLU2dP9O2lg5gRAsR4P/5aTRgbNOe4aDaKGEXSjz/1nEUjqiEItBVZJUHGfqKx9D90E+ 4= X-Rspamd-Queue-Id: 80416732F9 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sendgrid.net header.s=smtpapi header.b=Y8iyfrpa; spf=pass (mx1.freebsd.org: domain of bounces@sendgrid.net designates 198.37.146.154 as permitted sender) smtp.mailfrom=bounces@sendgrid.net X-Spamd-Result: default: False [-1.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:198.37.144.0/20]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mx.sendgrid.net]; DKIM_TRACE(0.00)[sendgrid.net:+]; NEURAL_HAM_SHORT(-0.66)[-0.664,0]; FORGED_SENDER(0.30)[unidef@unidef.org,bounces@sendgrid.net]; RCVD_TLS_LAST(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:11377, ipnet:198.37.144.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[11118262-7880-freebsd-hackers=freebsd.org]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.978,0]; R_DKIM_ALLOW(0.00)[sendgrid.net:s=smtpapi]; FROM_NEQ_ENVFROM(0.00)[unidef@unidef.org,bounces@sendgrid.net]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[unidef.org]; URIBL_GREY(1.50)[sendgrid.net.multi.uribl.com]; RCPT_COUNT_ONE(0.00)[1]; BAD_REP_POLICIES(0.10)[]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_IN_DNSWL_NONE(0.00)[154.146.37.198.list.dnswl.org : 127.0.15.0]; IP_SCORE(-1.75)[ipnet: 198.37.144.0/20(-4.90), asn: 11377(-3.78), country: US(-0.06)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2019 05:22:00 -0000 I was thinking about embedding encrypted JavaScript in a :a h ref ; tag and= thought about an injection hack, so is it hard to implement some kind of p= ointer function exception handling in the kernel? I have to read the FreeBS= D kernel book :( Sent from my iPhone