annotate return__.c @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents 6cd84461e17b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
1 /* svn://svn.kuehne.cn/dstress/return__.c
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
2 *
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
3 * execute the first argument and print the return code
251
6cd84461e17b enabled new "dstress.c" test tool
thomask
parents: 239
diff changeset
4 * [deprecated: use dstress.c]
82
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
5 *
239
c2a96b326f61 repos & copyright maintenance
thomask
parents: 82
diff changeset
6 * Copyright (C) 2004, 2005 Thomas Kuehne
82
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
7 *
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
8 * This program is free software; you can redistribute it and/or modify
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
9 * it under the terms of the GNU General Public License as published by
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
11 * (at your option) any later version.
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
12 *
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
13 * This program is distributed in the hope that it will be useful,
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
16 * GNU General Public License for more details.
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
17 *
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
18 * You should have received a copy of the GNU General Public License
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
19 * along with this program; if not, write to the Free Software
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
21 */
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
22
72
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
23 #include <stdio.h>
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
24 #include <stdlib.h>
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
25
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
26 int main(int argc, char *argv[]){
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
27 int returnCode = system(argv[1]);
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
28 printf("%d\n", returnCode);
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
29 return 0;
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
30 }