summaryrefslogtreecommitdiff
path: root/usr.bin/mail/popen.c
Commit message (Collapse)AuthorAgeFilesLines
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Don't reference NULL pointer.Xin LI2017-01-241-1/+3
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=312683
* mail(1): Bring some fixes from other BSDs.Pedro F. Giffuni2016-07-141-9/+18
| | | | | | | | | Fix missing forked job changes from r302776 in wait_child(). Obtained from: NetBSD Notes: svn path=/head/; revision=302799
* mail(1): Bring some fixes from other BSDs.Pedro F. Giffuni2016-07-131-54/+82
| | | | | | | | | | | | - Use varargs properly - Use pid_t - Better handling of error conditions on forked jobs. - Some prototype and warning cleanups. Obtained from: NetBSD (some originaly from OpenBSD) Notes: svn path=/head/; revision=302776
* Remove unnecessary cast to pid_t.Kevin Lo2013-07-041-1/+1
| | | | Notes: svn path=/head/; revision=252679
* Fix likely race condition if wait_child() is interrupted by sigchild()Eitan Adler2012-05-301-1/+3
| | | | | | | | | | PR: bin/102834 Submitted by: Andreas Longwitz <longwitz@incore.de> Approved by: cperciva MFC after: 2 weeks Notes: svn path=/head/; revision=236286
* Add __unused. Ansi prototypes.Philippe Charnier2010-12-191-45/+20
| | | | Notes: svn path=/head/; revision=216564
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-111-4/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99112
* remove __PWarner Losh2002-03-221-3/+3
| | | | Notes: svn path=/head/; revision=92921
* Sync with most of NetBSD's changes, including:Mike Heffner2001-12-181-17/+35
| | | | | | | | | | | | | | | | | | | | *) Sync with 4.4BSD-Lite2 *) Set usecs for utimes() *) Add 'inc' command and 'autoinc' option that check for new mail manually and automatically, respectively *) Use POSIX signal handling and tty semantics *) Handle long lines correctly when paging messages *) Add ability to explicitly search 'To:' line *) Various manpage cleanups *) Support overriding '~/.mailrc' with $MAILRC *) Support 'askbcc' and 'asksub' options *) Fix various bugs Reviewed by: ru (mail.1) Obtained from: NetBSD Notes: svn path=/head/; revision=88150
* Cleanup mail(1)'s varying styles by converting to using style(9).Mike Heffner2001-05-271-65/+66
| | | | | | | | | | | | Also take a stab at cleaning up BDECFLAGS and convert all uses of NOSTR, NIL, NONE, NOVAR, NOGRP, NOGE to NULL. Also kill 'register' to get diffs somewhat closer to OpenBSD/NetBSD. There are no functional changes however. Reviewed by: nra (visual inspection) Notes: svn path=/head/; revision=77274
* Merge various changes from OpenBSD and NetBSD.Mike Heffner2001-03-251-11/+19
| | | | | | | | | | | | | | | | | | | 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: svn path=/head/; revision=74769
* vfork -> fork. This home made popen() had the same bug as the libraryBruce Evans1998-10-101-1/+1
| | | | | | | | | | popen(), but worse. The child calls execvp(), which calls malloc() a bit more than execl(), and it calls non-library functions that call malloc() and who-knows-what else (stdio is called in at least some error cases). Notes: svn path=/head/; revision=40188
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+373
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590