From owner-freebsd-current@freebsd.org Mon Aug 20 00:33:16 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55B67107D395 for ; Mon, 20 Aug 2018 00:33:16 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EBBB07193C for ; Mon, 20 Aug 2018 00:33:15 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x234.google.com with SMTP id 72-v6so18368703itw.3 for ; Sun, 19 Aug 2018 17:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=wLk/7qoaf8yYkq3z2N0fZPnlpOxHsmfklWGxH+eHTJo=; b=NUjx885O1D4ND2NscnFyD3afGOAkOjEFFM7SEbMxqKaoQHGPXXhFAf8+sYowi+kJYJ UT7vorrOQlY37Hb+1IfDqcVyoP2oPXf6JT0rGiIPJKTj/lb4Hdkw4P8XcklkK/llirRQ 3B3P7sSXVa1hTE8DFPSC6ef4S3U4OFXZ3v0NDgBEQOle40nH96muaM8EG9zP9JBTo6IN nc8CoiP1o1004YOywuCWBmKX95B7og4fdrGn5AxrqTnn8OSJ0lDyO5dSwGv/xtEt685q GuQgXeX2Sa0VEAJsrbs3K8stF57jUlwaq5/QRtaJJRHrJ7LnpKwSRIfYit6IjAdc1TOF 9+2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wLk/7qoaf8yYkq3z2N0fZPnlpOxHsmfklWGxH+eHTJo=; b=LvqF7Ho1Oq//bcMu5/KWBI7VjU489jiat7sKrzsGyOpOYyou6OcEDa5K/9vESL1Xjz opR6dJ02K/Ep96haWDHVjvt6YrmpGp6zlXszYAGr3YTgHoeKPk4iuFthKXGE8AuiA+8P boOGGD9IYwnvPIHisUf9eWNos7vX+ElipWPL+7MLjyu4ZB1CTeP69BYgcvjI7lTZDbbx urt4CI/fWmD1ZqWwM0ta01DlHMwQU708ve6/PGNRhgaZ52KEy0w7LIAXbyjMOOJ/oyU6 mpWrudDrmikdNSDr0Sfb+NctG+PdSLq4y9X/1ndwWHGDtlldNpuOJxqhpsG5GzgYVZjI +z6Q== X-Gm-Message-State: AOUpUlFz/Cho71X2v1iNfiOt16T0e+ti2tbLyk8NPCTOAWUUP64nyMxw IhTazB32cal2Rtm15Gm/oEBgY2SocIUsOIQLxS8UQTcj X-Google-Smtp-Source: AA+uWPxlSpV9YOyVmzMapCfav3jB4aVNxRoUqxIPUwWw/aKOaG85FnDGJHZBoDGXwgWI8/ydfDup4tJ3xBtGFJbrHcw= X-Received: by 2002:a02:1643:: with SMTP id a64-v6mr12212138jaa.133.1534725195153; Sun, 19 Aug 2018 17:33:15 -0700 (PDT) MIME-Version: 1.0 From: blubee blubeeme Date: Mon, 20 Aug 2018 08:33:04 +0800 Message-ID: Subject: What's this gregset_t gregs thing To: FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2018 00:33:16 -0000 Linux has gregset_t gregs; https://github.com/lattera/glibc/blob/master/sysdeps/unix/sysv/linux/x86/sys/ucontext.h Defined above, I also see it in the RISC-V glibc stuff as well. FreeBSD doesn't seem to have this field defined, I see FreeBSD uses /usr/include/x86/ucontext.h but there's no gregs; If I wanted to return mcontext.gregs How could I implement that on FreeBSD? Best, Owen