diff options
author | Elliott Hughes <enh@google.com> | 2020-12-04 18:51:42 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2020-12-08 22:26:06 -0800 |
commit | 439ebbd3492ad3a8b8398fa80b0860baeb50a40e (patch) | |
tree | 5bcaa629808b35484cefbcda47d91c1dcbc21171 /libc/NOTICE | |
parent | 925431a072737d4c1bbf18f3da7ab24a25486870 (diff) | |
download | bionic-439ebbd3492ad3a8b8398fa80b0860baeb50a40e.tar.gz |
Simplify and improve tempnam() and tmpnam().
They're both obsolescent in POSIX.1-2008, and you really shouldn't be
using them, but since we can't actually delete them...
This change makes them both obey $TMPDIR if set, and fall back to
/data/local/tmp otherwise. That's as good as we've managed for anything
else such as tmpfile(3).
Also add some tests.
Bug: http://b/174682340
Test: treehugger
Change-Id: Ieef99dcc2062f84b2b7cbae046787fdfe975e772
Diffstat (limited to 'libc/NOTICE')
-rw-r--r-- | libc/NOTICE | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/libc/NOTICE b/libc/NOTICE index 58d66795f..f7d73d8f8 100644 --- a/libc/NOTICE +++ b/libc/NOTICE @@ -2368,38 +2368,6 @@ SUCH DAMAGE. ------------------------------------------------------------------- -Copyright (c) 1990, 1993, 1994 - The Regents of the University of California. All rights reserved. - -This code is derived from software contributed to Berkeley by -Chris Torek. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -SUCH DAMAGE. - -------------------------------------------------------------------- - Copyright (c) 1991 The Regents of the University of California. All rights reserved. |