Skip to content

Commit 86bea8a

Browse files
Merge pull request MicrosoftDocs#4652 from MicrosoftDocs/main638259030957101132sync_temp
For protected CLA branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents c80da83 + cdbba0b commit 86bea8a

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

docs/c-runtime-library/stdin-stdout-stderr.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
---
2-
description: "Learn more about: stdin, stdout, stderr"
2+
description: "Learn more about the definitions of: stdin, stdout, stderr"
33
title: "stdin, stdout, stderr"
4-
ms.date: "10/23/2018"
4+
ms.date: "7/24/2023"
55
f1_keywords: ["CORECRT_WSTDIO/stdin", "CORECRT_WSTDIO/stderr", "CORECRT_WSTDIO/stdout", "stdin", "stderr", "stdout"]
66
helpviewer_keywords: ["stdout function", "standard output stream", "standard error stream", "stdin function", "standard input stream", "stderr function"]
7-
ms.assetid: badd4735-596d-4498-857c-ec8b7e670e4c
87
---
98
# `stdin`, `stdout`, `stderr`
109

1110
## Syntax
1211

1312
```C
14-
FILE *stdin;
15-
FILE *stdout;
16-
FILE *stderr;
17-
#include <stdio.h>
13+
#define stdin /* implementation defined */
14+
#define stdout /* implementation defined */
15+
#define stderr /* implementation defined */
1816
```
1917
2018
## Remarks

docs/sanitizers/asan-debugger-integration.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,21 @@ When you link the VCAsan library to your executable, users can enable it to gene
3434

3535
`set ASAN_SAVE_DUMPS=MyFileName.dmp`
3636

37-
The file must have a .dmp suffix to follow the Visual Studio IDE conventions.
37+
The file must have a `.dmp` extension to follow the Visual Studio IDE conventions. (Prior to 17.7)
3838

3939
Here's what happens when a dump file is specified for `ASAN_SAVE_DUMPS`: If an error gets caught by the AddressSanitizer runtime, it saves a crash dump file that has the metadata associated with the error. The debugger in Visual Studio version 16.9 and later can parse the metadata that's saved in the dump file. You can set `ASAN_SAVE_DUMPS` on a per-test basis, store these binary artifacts, and then view them in the IDE with proper source indexing.
4040

41+
Visual Studio version 17.7 and later supports the following:
42+
43+
* Quoted strings are now handled correctly. In previous versions, for environments inside of Visual Studio or when using PowerShell, setting the environment variable to contain quotes or spaces would fail to create the expected dump file.
44+
45+
* When the `.dmp` extension is explicitly specified (for example, `set ASAN_SAVE_DUMPS=MyDmp.dmp`), VCAsan uses it explicitly, and will not add an associated process ID to the dump file name.
46+
47+
* If a `.dmp` file already exists with the same name specified from the environment variable, VCAsan modifies the file name as follows:
48+
* Appends a number to the filename in parentheses. For example, `Myfile (1).dmp`.
49+
* If after several attempts appending a number in parentheses fails to generate a unique name, the file is saved to an `%APPLOCAL%` temporary path that VCAsan will print. For example, `C:\Users\~\AppData\Local\Temp\Dump.dmp`.
50+
* If saving to a temporary path fails, a diagnostic error is displayed.
51+
4152
## See also
4253

4354
[AddressSanitizer overview](./asan.md)\
@@ -47,3 +58,4 @@ Here's what happens when a dump file is specified for `ASAN_SAVE_DUMPS`: If an e
4758
[AddressSanitizer shadow bytes](./asan-shadow-bytes.md)\
4859
[AddressSanitizer cloud or distributed testing](./asan-offline-crash-dumps.md)\
4960
[AddressSanitizer error examples](./asan-error-examples.md)
61+

0 commit comments

Comments
 (0)