~ubuntu-branches/debian/squeeze/binutils/squeeze

« back to all changes in this revision

Viewing changes to libiberty/make-temp-file.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-09-10 17:05:30 UTC
  • mfrom: (1.4.5 upstream) (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090910170530-wa6gpju9pq5c56on
Tags: 2.19.91.20090910-1
* Snapshot, taken from the 2.20 release branch 20090910, corresponding
  to the 2.19.90 upstream snapshot.
* Fix Thumb-2 shared libraries (Daniel Jacobowitz), patch taken
  from the trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Utility to pick a temporary filename prefix.
2
 
   Copyright (C) 1996, 1997, 1998, 2001 Free Software Foundation, Inc.
 
2
   Copyright (C) 1996, 1997, 1998, 2001, 2009 Free Software Foundation, Inc.
3
3
 
4
4
This file is part of the libiberty library.
5
5
Libiberty is free software; you can redistribute it and/or
111
111
      char *tmpdir;
112
112
      unsigned int len;
113
113
      
 
114
#ifdef VMS
 
115
      /* Try VMS standard temp logical.  */
 
116
      base = try_dir ("/sys$scratch", base);
 
117
#else
114
118
      base = try_dir (getenv ("TMPDIR"), base);
115
119
      base = try_dir (getenv ("TMP"), base);
116
120
      base = try_dir (getenv ("TEMP"), base);
 
121
#endif
117
122
      
118
123
#ifdef P_tmpdir
119
124
      base = try_dir (P_tmpdir, base);