Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
84f79fea
Commit
84f79fea
authored
Jan 17, 1998
by
Jeffrey A Law
Committed by
Jeff Law
Jan 17, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* choose-temp.c: Sync with gcc.
From-SVN: r17394
parent
51549d76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
libiberty/ChangeLog
+4
-0
libiberty/choose-temp.c
+8
-9
No files found.
libiberty/ChangeLog
View file @
84f79fea
Sat Jan 17 22:25:53 1998 Jeffrey A Law (law@cygnus.com)
* choose-temp.c: Sync with gcc version.
Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com)
* strsignal.c (sys_nsig): Try NSIG and _NSIG.
...
...
libiberty/choose-temp.c
View file @
84f79fea
/* Utility to pick a temporary filename prefix.
Copyright (C) 1996 Free Software Foundation, Inc.
Copyright (C) 1996
, 1997
Free Software Foundation, Inc.
This file is part of the libiberty library.
Libiberty is free software; you can redistribute it and/or
...
...
@@ -22,7 +22,11 @@ Boston, MA 02111-1307, USA. */
/* This file lives in at least two places: libiberty and gcc.
Don't change one without the other. */
#ifndef NO_SYS_FILE_H
#ifdef IN_GCC
#include "config.h"
#endif
#ifdef HAVE_SYS_FILE_H
#include <sys/types.h>
#include <sys/file.h>
/* May get R_OK, etc. on some systems. */
#endif
...
...
@@ -36,7 +40,6 @@ Boston, MA 02111-1307, USA. */
#include <stdio.h>
/* May get P_tmpdir. */
#ifdef IN_GCC
#include "config.h"
#include "gansidecl.h"
extern
char
*
xmalloc
();
#else
...
...
@@ -54,7 +57,7 @@ extern char *xmalloc ();
/* On MSDOS, write temp files in current dir
because there's no place else we can expect to use. */
/* ??? Although the current directory is tried as a last resort,
this is left in so that on MSDOS it is prefered to /tmp on the
this is left in so that on MSDOS it is prefer
r
ed to /tmp on the
off chance that someone requires this, since that was the previous
behaviour. */
#ifdef __MSDOS__
...
...
@@ -68,7 +71,7 @@ extern char *xmalloc ();
#define TEMP_FILE "ccXXXXXX"
/* Subroutine of choose_temp_base.
If BASE is non-NULL, retur
h
it.
If BASE is non-NULL, retur
n
it.
Otherwise it checks if DIR is a usable directory.
If success, DIR is returned.
Otherwise NULL is returned. */
...
...
@@ -114,11 +117,7 @@ choose_temp_base ()
/* If all else fails, use the current directory! */
if
(
base
==
0
)
#ifdef VMS
base
=
"["
;
#else
base
=
"."
;
#endif
#else
/* MPW */
base
=
":"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment