From owner-cvs-all Mon Jan 1 5:29:22 2001 From owner-cvs-all@FreeBSD.ORG Mon Jan 1 05:29:19 2001 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CA93437B400; Mon, 1 Jan 2001 05:29:19 -0800 (PST) Received: (from deischen@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f01DTJT00789; Mon, 1 Jan 2001 05:29:19 -0800 (PST) (envelope-from deischen) Message-Id: <200101011329.f01DTJT00789@freefall.freebsd.org> From: Daniel Eischen Date: Mon, 1 Jan 2001 05:29:19 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen getlogin.c src/lib/libc/sys getlogin.2 X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG deischen 2001/01/01 05:29:19 PST Modified files: lib/libc/gen getlogin.c lib/libc/sys getlogin.2 Log: Change the interface of getlogin_r to return an int. The former interface was based on a draft version of POSIX whereas the final (1996) version of POSIX specified that the error is returned. While I'm here, fix getlogin_r so that it works for more than just the first time it's called. Reviewed by: wes, wollman (man page) Revision Changes Path 1.5 +51 -18 src/lib/libc/gen/getlogin.c 1.16 +19 -6 src/lib/libc/sys/getlogin.2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message