From owner-freebsd-arch@freebsd.org Thu May 26 06:30:35 2016 Return-Path: Delivered-To: freebsd-arch@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 E9461B4AF93 for ; Thu, 26 May 2016 06:30:35 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yw0-x22b.google.com (mail-yw0-x22b.google.com [IPv6:2607:f8b0:4002:c05::22b]) (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 AB9BA11C7 for ; Thu, 26 May 2016 06:30:35 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yw0-x22b.google.com with SMTP id c127so68040688ywb.1 for ; Wed, 25 May 2016 23:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuxi-nl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=S2pASZAoE98s+nazjRm41IVTDCjdYrkCC7DPv2dfuQ0=; b=jR5FRfBg6PdB/bs5boNoPTcMMRIFWdL7/p8XynVZG7AqPzIoL0tN87k2wiChRj9fmT 9HEgewF3ZW1EJ4cXAvzVC+FM/QiDDNZqPjQQ3i1WLxxylkmzjn+GqsW1AN3sqcAWL2cn kDYVerlU91lmLVTrDyTUJkzeStGy2M6u5NPwIGHT1sf6Z6gVYmfjE4hb5eAGNK3jn3lu W3KeAKcKaIMrJPyzFAxQRy8uyKh0SGZAxHmeop6wvqel8Y7bhuOdJa9ERGOzsX4Z0zzy cr+F6QXzKriRnL3LYVflceEYBDjKfzTTKjXcX11NMHdE1T87jil2Xe9iD2KqiseUNc7v Xjzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=S2pASZAoE98s+nazjRm41IVTDCjdYrkCC7DPv2dfuQ0=; b=WajvQFXi3b37VjDiwZ+6GSeTE5/CSCj6y6nAQPnsvzUx3umtwR1rqiDwM18dRj596c RpY7G+siKDdteJdq8yk+QQ3kv7XIkNEZqLGsT/aFVerGeZ3l0bP/k2UlCQ//amxsF4LL k+BOsIhfePOnDepCmFMCA54LaH8tedUmc20e+RUoT8eEUQ484HWI5QjWYy28ujZscSlF GK2SKI90g5NTJ+kNjpBpcEDdLS4wan0DCb1U0Sh1WCTlku6q3B50WmYVkxr1KrCA7u34 S9jhgla25r0cUxL5CAZMRydFY3wxrkURFu+FphaXn0WFvB6I2FHI2yHo5AMe1djL3ARS AyTQ== X-Gm-Message-State: ALyK8tLtE2WO5lCxV6j5ggNKl8MKjFLCfZqn0mKFE3mmwON+5LKE9fZtay7GNPx2j5AnAeExo8zJAVTEPrFisA== MIME-Version: 1.0 X-Received: by 10.129.162.141 with SMTP id z135mr4700940ywg.50.1464244234372; Wed, 25 May 2016 23:30:34 -0700 (PDT) Received: by 10.13.201.199 with HTTP; Wed, 25 May 2016 23:30:34 -0700 (PDT) In-Reply-To: <201605252149.u4PLnaoG007496@gw.catspoiler.org> References: <201605252149.u4PLnaoG007496@gw.catspoiler.org> Date: Thu, 26 May 2016 08:30:34 +0200 Message-ID: Subject: Re: is ut_user[] in struct utmpx NUL terminated? From: Ed Schouten To: Don Lewis Cc: freebsd-arch@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2016 06:30:36 -0000 2016-05-25 23:49 GMT+02:00 Don Lewis : > We should probably document this in the man page. This specific aspect is already documented in the man page: The ut_user, ut_line and ut_host fields of the structure returned by the library functions are also guaranteed to be null-terminated in this implementation. Be sure to send me a code review if you can think of ways to improve the man page. -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717