summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/cmd2.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Modernize allocation by:mmcc2015-10-161-4/+4
| | | | | | | | | * removing unneeded casts of void* return values * replacing varied and creative error messages with the allocation function's name * replacing errx() with err() so that the errno string is reported ok beck@, jung@, millert@
* lint is dead (long live the lint!), so stop using it as a cpp conditionalguenther2014-03-161-2/+2
| | | | | | (namespace pollution!) or talking about its opinion on code. ok krw@
* ctype and other sign extension fixes.okan2014-01-171-4/+4
| | | | with deraadt and millert, ok millert
* use F_OK macro instead of 0 in access() when checking by file existence. make the code easier to read.gsoares2012-11-141-2/+2
| | | | | | no functional change. OK millert@
* Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'miod2011-04-061-11/+11
| | | | for chars.
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-9/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* remove core / tilde C. it's useless, doesn't work, never has beenmartynas2009-07-281-29/+2
| | | | documented, ^\ should be used instead. ok millert@
* avoid aliasing against libc symbolsderaadt2004-09-151-3/+3
|
* Get rid of the ancient "clobber" command. It was really only for debuggingmillert2004-05-101-36/+2
| | | | purposes. Noticed and OK by deraadt@
* dont compare int to NULL, millert@ okavsm2003-10-241-5/+5
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* o kill strcpy()millert2001-11-211-4/+7
| | | | | o check return values of malloc and friends o use strdup() when sensible
* o ANSIfymillert2001-11-211-61/+27
| | | | | | | | | o Style nits o Use const to silent stupid -Wall warnings o strnc{py,at} -> strlc{py,at} o Use strpbrk() instead of homegrown anyof() o Use NULL instead of #defines with 0 cast to a pointer This still could use a proper audit
* Change the name of mail's send() function to sendmessages() tomillert2000-04-261-3/+3
| | | | avoid shadowing the libc send(2); gadams@avernus.com
* NetBSD changes (mostly comsmetic):millert1997-11-141-22/+19
| | | | | | | | replace panic() with calls to err()/errx() use S_IS* instead of doing by hand with S_IF*. Use TIMESPEC_TO_TIMEVAL() and gettimeofday instead of time(2) Use _POSIX_VDISABLE, not 0 Kill register
* Kill union wait.millert1997-08-311-4/+4
|
* Make istrcpy() take a size (not length) field, now called istrncpy().millert1997-07-301-3/+3
| | | | Change some strcpy() -> strncpy() out of paranoia.
* NOSTR -> NULLmillert1997-07-141-9/+9
| | | | Use sigsetjmp/siglongjmp instead of sigjmp/longjmp for portability.
* bcopy() -> memcpy() and fix some casts.millert1997-07-131-7/+6
|
* Merge in NetBSD and 4.4BSD-lite2 changes as well as some of my own.millert1997-07-131-38/+38
| | | | | | | | - handle long lines safely (from NetBSD) - use puts/fputs and putchar/putc when it makes sense - use err/errx and warn/warnx when it makes sense - make return() and sizeof() style consisten - some more buffer safety
* from christos;deraadt1996-06-111-29/+48
| | | | | | | | - Fix PR/105: Implement dot locking protocol and check return value of flock. - Fix PR/2247: Don't call unknown users "ubluit". Issue an error message. - Fix/add prototypes. - Fix warnings. - Use POSIX signal mask calls.
* initial import of NetBSD treederaadt1995-10-181-0/+531