mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +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
|
* Source/NSTask.m: Tidied code a little, added safety checks for
|
||||||
usePseudoTerminal method.
|
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.
|
* Documentation/gsdoc/NSTask.gsdoc: documentation fleshed out.
|
||||||
|
|
||||||
2001-04-16 Adam Fedor <fedor@gnu.org>
|
2001-04-16 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
|
@ -707,6 +707,7 @@ failure:
|
||||||
if (useAuxiliaryFile)
|
if (useAuxiliaryFile)
|
||||||
{
|
{
|
||||||
int desc;
|
int desc;
|
||||||
|
int mask;
|
||||||
|
|
||||||
strcpy(thePath, theRealPath);
|
strcpy(thePath, theRealPath);
|
||||||
strcat(thePath, "XXXXXX");
|
strcat(thePath, "XXXXXX");
|
||||||
|
@ -715,6 +716,9 @@ failure:
|
||||||
NSLog(@"mkstemp (%s) failed - %s", thePath, strerror(errno));
|
NSLog(@"mkstemp (%s) failed - %s", thePath, strerror(errno));
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
mask = umask(0);
|
||||||
|
umask(mask);
|
||||||
|
fchmod(desc, 0644 & ~mask);
|
||||||
if ((theFile = fdopen(desc, "w")) == 0)
|
if ((theFile = fdopen(desc, "w")) == 0)
|
||||||
{
|
{
|
||||||
close(desc);
|
close(desc);
|
||||||
|
|
825
Tools/gsdoc.m
825
Tools/gsdoc.m
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue