Mercurial > hg > CbC > CbC_gcc
comparison libiberty/choose-temp.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 77e2b8dfacca |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Utility to pick a temporary filename prefix. | 1 /* Utility to pick a temporary filename prefix. |
2 Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. | 2 Copyright (C) 1996-2017 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of the libiberty library. | 4 This file is part of the libiberty library. |
5 Libiberty is free software; you can redistribute it and/or | 5 Libiberty is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
32 #ifdef HAVE_STRING_H | 32 #ifdef HAVE_STRING_H |
33 #include <string.h> | 33 #include <string.h> |
34 #endif | 34 #endif |
35 | 35 |
36 #include "libiberty.h" | 36 #include "libiberty.h" |
37 extern char *choose_tmpdir (void); | |
38 | 37 |
39 /* Name of temporary file. | 38 /* Name of temporary file. |
40 mktemp requires 6 trailing X's. */ | 39 mktemp requires 6 trailing X's. */ |
41 #define TEMP_FILE "ccXXXXXX" | 40 #define TEMP_FILE "ccXXXXXX" |
42 #define TEMP_FILE_LEN (sizeof(TEMP_FILE) - 1) | 41 #define TEMP_FILE_LEN (sizeof(TEMP_FILE) - 1) |