mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
Various tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9623 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d6be9f040d
commit
5c7e2204fc
3 changed files with 492 additions and 341 deletions
|
@ -2,6 +2,10 @@
|
|||
|
||||
* Source/NSTask.m: Tidied code a little, added safety checks for
|
||||
usePseudoTerminal method.
|
||||
* Source/NSData.m: ([writeToFile:atomically:]) create new files
|
||||
with permission 0644 modified by umask.
|
||||
* Tools/gsdoc.m: Use memory management macros and attempt to get
|
||||
back to something like conformance with coding standards.
|
||||
* Documentation/gsdoc/NSTask.gsdoc: documentation fleshed out.
|
||||
|
||||
2001-04-16 Adam Fedor <fedor@gnu.org>
|
||||
|
|
|
@ -707,6 +707,7 @@ failure:
|
|||
if (useAuxiliaryFile)
|
||||
{
|
||||
int desc;
|
||||
int mask;
|
||||
|
||||
strcpy(thePath, theRealPath);
|
||||
strcat(thePath, "XXXXXX");
|
||||
|
@ -715,6 +716,9 @@ failure:
|
|||
NSLog(@"mkstemp (%s) failed - %s", thePath, strerror(errno));
|
||||
goto failure;
|
||||
}
|
||||
mask = umask(0);
|
||||
umask(mask);
|
||||
fchmod(desc, 0644 & ~mask);
|
||||
if ((theFile = fdopen(desc, "w")) == 0)
|
||||
{
|
||||
close(desc);
|
||||
|
|
825
Tools/gsdoc.m
825
Tools/gsdoc.m
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue