1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/usr.bin/mail
Ed Schouten 902d9eafbf Rework all non-contributed files that use `struct timezone'.
This structure is not part of POSIX. According to POSIX, gettimeofday()
has the following prototype:

	int gettimeofday(struct timeval *restrict tp, void *restrict tzp);

Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is
not used). Remove dead error handling code. Also use NULL for a
nul-pointer instead of integer 0.

While there, change all pieces of code that only use tv_sec to use
time(3), as this provides less overhead.
2012-09-01 14:45:15 +00:00
..
misc
cmd1.c In usr.bin/mail/cmd1.c, use the correct printf length modifier for a 2011-12-17 16:30:42 +00:00
cmd2.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
cmd3.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
cmdtab.c
collect.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
def.h
edit.c fgets(3) returns a pointer, so compare against NULL, not integer 0. 2012-01-13 06:51:15 +00:00
extern.h Replace __const by const in all non-contributed source code. 2011-12-13 13:32:56 +00:00
fio.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
getname.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
glob.h
head.c Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
lex.c Replace __const by const in all non-contributed source code. 2011-12-13 13:32:56 +00:00
list.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
mail.1 o Fix -u flag description: it takes a username as an argument. 2010-12-25 17:35:30 +00:00
main.c Touch up some more small typos missed in the previous round. 2012-01-05 21:36:45 +00:00
Makefile
names.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
pathnames.h
popen.c Fix likely race condition if wait_child() is interrupted by sigchild() 2012-05-30 03:55:44 +00:00
quit.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
rcv.h
send.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
strings.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
temp.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
tty.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
util.c Rework all non-contributed files that use `struct timezone'. 2012-09-01 14:45:15 +00:00
v7.local.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
vars.c Add __unused. Ansi prototypes. 2010-12-19 16:25:23 +00:00
version.c