aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mail/getname.c
diff options
context:
space:
mode:
authorMike Heffner <mikeh@FreeBSD.org>2001-03-25 04:57:05 +0000
committerMike Heffner <mikeh@FreeBSD.org>2001-03-25 04:57:05 +0000
commit0c3a8314c00f58f16823e8cd6186757d5e8bcdcc (patch)
treef39a12d6fff4adc1f80c5db2f64276c3dc45c30f /usr.bin/mail/getname.c
parentadad9908fa0babf8a4a972f0e62e1001ba5a5d34 (diff)
downloadsrc-0c3a8314c00f58f16823e8cd6186757d5e8bcdcc.tar.gz
src-0c3a8314c00f58f16823e8cd6186757d5e8bcdcc.zip
Merge various changes from OpenBSD and NetBSD.
o remove panic() in favor of err(3) and use err(3) functions consistently throughout o use stat(2)'s S_IS* macros rather than S_IF* o [r]index -> str[r]chr o convert some static buffers to dynamic ones o use real tempfiles rather than reopening the same templates o rename some functions that clash with libc o convert wait_status from union to int and use wait(2) status macros o fix multiple potential buffer overflows o fix a few comments o add $FreeBSD$ Reviewed by: nra, nectar (earlier version)
Notes
Notes: svn path=/head/; revision=74769
Diffstat (limited to 'usr.bin/mail/getname.c')
-rw-r--r--usr.bin/mail/getname.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/mail/getname.c b/usr.bin/mail/getname.c
index 02a4131c5a50..dc812d57469c 100644
--- a/usr.bin/mail/getname.c
+++ b/usr.bin/mail/getname.c
@@ -32,7 +32,11 @@
*/
#ifndef lint
+#if 0
static char sccsid[] = "@(#)getname.c 8.1 (Berkeley) 6/6/93";
+#endif
+static const char rcsid[] =
+ "$FreeBSD$";
#endif /* not lint */
#include "rcv.h"
@@ -42,8 +46,8 @@ static char sccsid[] = "@(#)getname.c 8.1 (Berkeley) 6/6/93";
/* Getname / getuserid for those with hashed passwd data base). */
/*
- * Search the passwd file for a uid. Return name through ref parameter
- * if found, indicating success with 0 return. Return -1 on error.
+ * Search the passwd file for a uid. Return name on success,
+ * NOSTR on failure
*/
char *
getname(uid)