From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f54.google.com ([209.85.208.54]) by ewsd; Wed Feb 12 19:21:19 EST 2020 Received: by mail-ed1-f54.google.com with SMTP id p23so4602235edr.5 for <9front@9front.org>; Wed, 12 Feb 2020 16:21:16 -0800 (PST) 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; bh=u3MMV9CA8ESIMwJIHSIBMtVVBFW5YB93lUNFUy7FCqg=; b=tVdF4nMbpB4WsmdeICAo/QIVeQxnntY6kn47hjEjKH5AtMOSVUwyMDPveFq3nGqN4x AHT5jsdvbVztqcA3a57XoEfqn5kLr6EwK/zUqXSoRlVeAoBZAMvJ3fz6QGwq27OQYGyk 3Lt/JhkJJ041/qhlPc9Zn87/XyPTB+egXlr4trPiMKwyywYr75IwN/85Hdh0f+tq0nuQ LLaC3NKrLwg/7lbAjBACq0rHOnX3QRfnbjdnq+JjWoNUxC2p3rmzVkA0HL+S8NycK1mO aW1xrFePh1ImPA4aenLS2nlHsmcvE83sThGdsGhj8N3zLM24V/JuP91YgAGF0Tf8Jpl1 wDwg== 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; bh=u3MMV9CA8ESIMwJIHSIBMtVVBFW5YB93lUNFUy7FCqg=; b=X9ZA8Scoc//S4GgEP9csscpyGH5nvpMOvbyem5btEqoqxp13zeFdDVIoLp6z8dgohf 7qS3zaKBl0ZyGrRYH7thV190BA/b8oIgd0+i57++VeEnQmV3nIROcBN1ZyLX5iZHllPm kz9YBKLKIZ5SKl5QhJVBHWHwDfY4KPgxNe3JSew76pOcUMiZeZ3c9TOxpV0uXShM6oIp aHevesqqgqm503/slRFleimj728Fp1l1VwMxI3C+dG9aLFbKLWpL9JPuBS4ahQRZXVdy YXV8p+mIzZ3eRxa8uc9hUzbU26VD0iGkxG6iQwyxpgEuU+llJyOOknVJ1RK8apilupJF aVPA== X-Gm-Message-State: APjAAAXdPZiRmlmjZVvPM/XlTSZsfvk3hved9cRE+4FyVvr2Hw3bzBJc opUHeScKXaJy19m2WdGTypHa1QsMYEvCtFy2JU0adI6P X-Google-Smtp-Source: APXvYqwQxfYgYTop+K5NC5xWyKfgTySN+k8ZIvzdSUatVAJaj3er5bvfTA9O8I9lwDWN/paZpRWFa9qE5/ftEKAQkN8= X-Received: by 2002:a05:6402:3191:: with SMTP id di17mr13066607edb.283.1581553275511; Wed, 12 Feb 2020 16:21:15 -0800 (PST) MIME-Version: 1.0 References: <1ba93b51-da78-8c37-f714-e354fab32b5a@qs.co.nz> In-Reply-To: <1ba93b51-da78-8c37-f714-e354fab32b5a@qs.co.nz> From: Silas McCroskey Date: Wed, 12 Feb 2020 16:21:04 -0800 Message-ID: Subject: Re: [9front] Mixfs: potential bug? To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: rails cloud http://doc.cat-v.org/plan_9/4th_edition/papers/comp The "Extensions" section goes over this compiler extension: structs-within-structs declared without a name allow their members to be accessed directly, so qlock(s) does the same thing as qlock(s->Lock) since the "locked" member used by qlock is accessible to both. This is a compiler extension rather than pointer tricks, so it does not depend on ordering within the struct (as displayed in the Extensions section itself, where Lock is the last member of the outer struct). - sam-d On Wed, Feb 12, 2020 at 4:07 PM Trevor Higgins wrote: > > Looking at the code for audio/mixfs (mixfs.c) > > The code uses qlock(s) where s is: struct Stream*. > > In the structure ,shouldn't the QLock member of the structure be the > first member in the structure? > If not so, then why does it not matter? > > Thanks. > > -- >