From owner-freebsd-arm@freebsd.org Sat Sep 9 22:08:07 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5F7EFE0D89B; Sat, 9 Sep 2017 22:08:07 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-pg0-x241.google.com (mail-pg0-x241.google.com [IPv6:2607:f8b0:400e:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B41A7FA3F; Sat, 9 Sep 2017 22:08:07 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-pg0-x241.google.com with SMTP id d8so2898845pgt.3; Sat, 09 Sep 2017 15:08:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:message-id:date:subject:from :in-reply-to:references:to:cc; bh=EKV8fCc5VyDKWhoWJb6JDGSZORvNKr3idKWPzt7bF4Y=; b=K1OfHGbvLOu5GOz64Dp8UUKMtC+76FP3iVXumZMW9HGFIX21FEnyXiyIRfXa6DRN3I tS5JA1KwC++69W51nl80BaBJxjV0uAHbbIg7fgFmMrq4u+nRTpXVW13TVxvAJnX4tjXM 0LzmyUzSTG731L2D0L2gmsMtQXaz/yr46uacFeyy0MLf+nEZfTBBi0NdJoYgTsD1ZEGk m/fmrASfRk0CZWrokvYb/zuTjwiaA2GYfg1K9GKnfIzOslcuV904dGQaeXe/v+MjUrgp 2tin/1hYOzZv6vuEzhIbqnmuCyPad6t/su2MQcfI6p4j7ObenXlo68E5E7NZlV54bpzI IXSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :message-id:date:subject:from:in-reply-to:references:to:cc; bh=EKV8fCc5VyDKWhoWJb6JDGSZORvNKr3idKWPzt7bF4Y=; b=kF3eNbz/x3q/9dqdO9Aw2N5fnZbnBIc9MzruYAumpVBVFrvo318lRUlX+kfQ0Kj3uD QxUlWfAa8iktVmXQinIooGXcTmuEJE3JmyWup+uAvEe9ju3UbEQIB361g+pMlmvHZouo HBHWsXz11MCVZmK0PZ0leViZqESj+77J4UypKc1YpeXyeUKDJeIc0nNodvg6pqbABLYm m8d8Z5E8F3fLtUqvJwB8NBn/AmyTSFvdlv75mOTM76RSiQJWqXissE1MZl35Twen1/JT oQERZ8p7NYLwaf0YPlZApHc/EFpy41Lc29/ozASZ88COAi/94f1RroK96aFUD7Ovj4Aq gMPw== X-Gm-Message-State: AHPjjUgq7j07kIA25DtEfWvfnlo9iGeCibhgX5EpqSnRcKWzgx0rEzE1 ZRPzhU8aZljybA== X-Google-Smtp-Source: ADKCNb7CxJ+/kxHi8uZcIODordHDZpVdwQ9Zg0zaazdHl39iq3Rv77DmyliuVwb+fFdSzoRvZRTBUg== X-Received: by 10.99.37.66 with SMTP id l63mr7390467pgl.348.1504994886468; Sat, 09 Sep 2017 15:08:06 -0700 (PDT) Received: from [127.0.0.1] ([204.174.94.196]) by smtp.gmail.com with ESMTPSA id r11sm9944328pfg.180.2017.09.09.15.08.04 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 Sep 2017 15:08:04 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: BlackBerry Email (10.3.3.2163) Message-ID: <20170909220804.6545490.97876.31623@gmail.com> Date: Sat, 09 Sep 2017 15:08:04 -0700 Subject: Getauxval - was Re: FCP-100: armv7 plan From: Russell Haley In-Reply-To: <20170909214606.GW1700@kib.kiev.ua> References: <1504989250.32063.66.camel@freebsd.org> <20170909214606.GW1700@kib.kiev.ua> To: Konstantin Belousov , Ian Lepore Cc: freebsd-arm@freebsd.org, "freebsd-toolchain@FreeBSD.org" , Jan Beich , Jan Beich X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Sep 2017 22:08:07 -0000 Apologies for the top post.=C2=A0 Man pages indicate =E2=80=8Egetauxval is a non standard glibc function. Is = this an issue? Is there a more posix way I could compare against? I was pre= viously wondering to myself if the Linux api is now more standard than the = posix api? Looking forward to all opinions and comments.=C2=A0 Rus Sent=C2=A0from=C2=A0my=C2=A0BlackBerry=C2=A010=C2=A0smartphone=C2=A0on=C2= =A0the=C2=A0Virgin=C2=A0Mobile=C2=A0network. =C2=A0 Original Message =C2=A0 From: Konstantin Belousov Sent: Saturday, September 9, 2017 2:46 PM To: Ian Lepore Cc: freebsd-arm@freebsd.org; freebsd-toolchain@FreeBSD.org; Jan Beich; Jan = Beich Subject: Re: FCP-100: armv7 plan On Sat, Sep 09, 2017 at 02:34:10PM -0600, Ian Lepore wrote: > Adding the AT_HWCAP stuff would be relatively easy. =C2=A0I'm not as sure > what to do about getauxval(). =C2=A0To be maximally linux-compatible (whi= ch > would be good for ports) we'd put getauxval() in libc and make it work > just like the linux one. =C2=A0That's a bit at odds with the support we h= ave > now, which is=C2=A0procstat_getauxv() in libprocstat. =C2=A0It's not very > compatible with how linux getauxval() works, so using just that might > lead to a lot of patches in ports. libprocstat is for accessing other processes information and address space. Our libc already has _elf_aux_info, but it is not exported. If you have a clear description of the desired API, I can add it (I do not want to read glibc code). _______________________________________________ freebsd-arm@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-arm To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"