Skip to content

Commit 6825b92

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 6b98bad commit 6825b92

File tree

1 file changed

+2
-69
lines changed

1 file changed

+2
-69
lines changed

rss.xml

Lines changed: 2 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2025-07-09T11:37:47.051505</updated>
6-
<id>37125743-f912-45b9-b8ce-8d6704ffb768</id>
5+
<updated>2025-07-09T13:34:21.842222</updated>
6+
<id>f2dfecd7-8e57-4ca9-a1f6-fc00f812604f</id>
77

88

99
<entry>
@@ -233,73 +233,6 @@ index 6820bc78f..21a7221db 100644
233233

234234
-- [7.22.3 Memory management functions](https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2310.pdf)
235235
+- [C N2310: 7.22.3 Memory management functions](https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2310.pdf)
236-
&lt;/code&gt;&lt;/pre&gt;</summary>
237-
238-
<author>
239-
<name>Koichi Murase</name>
240-
<email>[email protected]</email>
241-
</author>
242-
</entry>
243-
244-
<entry>
245-
<title>system -- fix(reference/cstdlib/system): 訳の修正</title>
246-
<link href="https://cpprefjp.github.io/reference/cstdlib/system.html"/>
247-
<id>fdf806422d0b92894586126d2d753b8005dffb50:reference/cstdlib/system.md</id>
248-
<updated>2025-07-09T20:00:21+09:00</updated>
249-
250-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cstdlib/system.md b/reference/cstdlib/system.md
251-
index 6fd982735..e47491bc4 100644
252-
--- a/reference/cstdlib/system.md
253-
+++ b/reference/cstdlib/system.md
254-
@@ -11,15 +11,17 @@ namespace std {
255-
256-
## 概要
257-
258-
-ホスト環境のコマンド呼び出す。(e.g. `/bin/sh`, `cmd.exe`)
259-
+ホスト環境のコマンドを呼び出す。(e.g. `/bin/sh`, `cmd.exe`)
260-
261-
-基本の返り値はコマンドの実行結果。
262-
+処理系定義の値を返す。大抵は呼び出されたコマンドが返した終了ステータスになる。
263-
264-
-コマンドがヌルポインタの場合、ホスト環境にコマンドプロセッサが存在するか確認し、存在している場合のみに非ゼロ値を返す。
265-
+コマンドがヌルポインタの場合、ホスト環境にコマンドプロセッサが存在するか確認し、存在している場合に非ゼロ値を返す。
266-
267-
## 備考
268-
269-
-POSIXでは`WEXITSTATUS`と`WSTOPSIG`を使用、分解できる
270-
+POSIXではマクロ`WEXITSTATUS`と`WSTOPSIG`を使用して戻り値を分解できる。
271-
+`WEXITSTATUS(戻り値)` は子プロセスが正常に終了した場合に非ゼロ値を返す。
272-
+`WSTOPSIG(戻り値)` は子プロセスを停止したシグナル番号を評価する。
273-
274-
生成されるプロセスが画面の入出力を伴う場合、`std::system`を呼び出す前に、`std::cout`の明示的なフラッシュが必要になる場合がある。
275-
276-
@@ -32,12 +34,12 @@ POSIXでは`WEXITSTATUS`と`WSTOPSIG`を使用、分解できる
277-
278-
int main()
279-
{
280-
- std::system(&amp;#34;ls -l &amp;gt;test.txt&amp;#34;);//&amp;#34;ls -l &amp;gt;test.txt&amp;#34;を実行
281-
+ std::system(&amp;#34;ls -l &amp;gt;test.txt&amp;#34;); // &amp;#34;ls -l &amp;gt;test.txt&amp;#34;を実行
282-
std::cout &amp;lt;&amp;lt; std::ifstream(&amp;#34;test.txt&amp;#34;).rdbuf();
283-
}
284-
```
285-
286-
-## 出力結果
287-
+## 出力例
288-
289-
```
290-
total 16
291-
@@ -48,8 +50,6 @@ total 16
292-
293-
## 関連項目
294-
295-
-| 名前 | 説明 |
296-
-|------|------|
297-
-|[`flush`](../ostream/flush.md)|バッファをフラッシュする|
298-
-| [`WEXITSTATUS`]() | 子プロセスが正常に終了した場合、非ゼロ値を返す |
299-
-| [`WSTOPSIG`]() | 子プロセスを停止したシグナル数を評価する |
300-
+| 名前 | 説明 |
301-
+|--------------------------------|--------------------------------------------------------|
302-
+| [`flush`](../ostream/flush.md) | バッファをフラッシュする |
303236
&lt;/code&gt;&lt;/pre&gt;</summary>
304237

305238
<author>

0 commit comments

Comments
 (0)