OLD | NEW |
| 1 // +build !plan9 |
| 2 |
1 /* | 3 /* |
2 Plan 9 from User Space src/lib9/sysfatal.c | 4 Plan 9 from User Space src/lib9/sysfatal.c |
3 http://code.swtch.com/plan9port/src/tip/src/lib9/sysfatal.c | 5 http://code.swtch.com/plan9port/src/tip/src/lib9/sysfatal.c |
4 | 6 |
5 Copyright 2001-2007 Russ Cox. All Rights Reserved. | 7 Copyright 2001-2007 Russ Cox. All Rights Reserved. |
6 | 8 |
7 Permission is hereby granted, free of charge, to any person obtaining a copy | 9 Permission is hereby granted, free of charge, to any person obtaining a copy |
8 of this software and associated documentation files (the "Software"), to deal | 10 of this software and associated documentation files (the "Software"), to deal |
9 in the Software without restriction, including without limitation the rights | 11 in the Software without restriction, including without limitation the rights |
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | 12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
(...skipping 27 matching lines...) Expand all Loading... |
38 if(_sysfatal) | 40 if(_sysfatal) |
39 (*_sysfatal)(fmt, arg); | 41 (*_sysfatal)(fmt, arg); |
40 vseprint(buf, buf+sizeof buf, fmt, arg); | 42 vseprint(buf, buf+sizeof buf, fmt, arg); |
41 va_end(arg); | 43 va_end(arg); |
42 | 44 |
43 __fixargv0(); | 45 __fixargv0(); |
44 fprint(2, "%s: %s\n", argv0 ? argv0 : "<prog>", buf); | 46 fprint(2, "%s: %s\n", argv0 ? argv0 : "<prog>", buf); |
45 exits("fatal"); | 47 exits("fatal"); |
46 } | 48 } |
47 | 49 |
OLD | NEW |