write.c (200160) | write.c (202200) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Jef Poskanzer and Craig Leres of the Lawrence Berkeley Laboratory. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 33 unchanged lines hidden (view full) --- 42 43#if 0 44#ifndef lint 45static char sccsid[] = "@(#)write.c 8.1 (Berkeley) 6/6/93"; 46#endif 47#endif 48 49#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Jef Poskanzer and Craig Leres of the Lawrence Berkeley Laboratory. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 33 unchanged lines hidden (view full) --- 42 43#if 0 44#ifndef lint 45static char sccsid[] = "@(#)write.c 8.1 (Berkeley) 6/6/93"; 46#endif 47#endif 48 49#include <sys/cdefs.h> |
50__FBSDID("$FreeBSD: head/usr.bin/write/write.c 200160 2009-12-05 20:22:26Z ed $"); | 50__FBSDID("$FreeBSD: head/usr.bin/write/write.c 202200 2010-01-13 18:09:54Z ed $"); |
51 52#include <sys/param.h> 53#include <sys/signal.h> 54#include <sys/stat.h> 55#include <sys/file.h> 56#include <sys/time.h> 57#include <ctype.h> 58#include <err.h> 59#include <locale.h> 60#include <paths.h> 61#include <pwd.h> 62#include <stdio.h> 63#include <stdlib.h> 64#include <string.h> | 51 52#include <sys/param.h> 53#include <sys/signal.h> 54#include <sys/stat.h> 55#include <sys/file.h> 56#include <sys/time.h> 57#include <ctype.h> 58#include <err.h> 59#include <locale.h> 60#include <paths.h> 61#include <pwd.h> 62#include <stdio.h> 63#include <stdlib.h> 64#include <string.h> |
65#define _ULOG_POSIX_NAMES 66#include <ulog.h> | |
67#include <unistd.h> | 65#include <unistd.h> |
66#include <utmpx.h> |
|
68 69void done(int); 70void do_write(char *, char *, uid_t); 71static void usage(void); 72int term_chk(char *, int *, time_t *, int); 73void wr_fputs(unsigned char *s); 74void search_utmp(char *, char *, char *, uid_t); 75int utmp_chk(char *, char *); --- 248 unchanged lines hidden --- | 67 68void done(int); 69void do_write(char *, char *, uid_t); 70static void usage(void); 71int term_chk(char *, int *, time_t *, int); 72void wr_fputs(unsigned char *s); 73void search_utmp(char *, char *, char *, uid_t); 74int utmp_chk(char *, char *); --- 248 unchanged lines hidden --- |