summaryrefslogtreecommitdiff
path: root/nacl/curvecp/die.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-13 10:09:38 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-13 10:09:38 -0400
commitd4fe483efd3e0062f12430efe9deb66d43d914d7 (patch)
treee6aa9ac716ae82cdb15c6e6cb5d9d1d9d29f053b /nacl/curvecp/die.c
parent835ef0320d47372eac14bef31c979b8217d04498 (diff)
NaCl moved to other repo.
Diffstat (limited to 'nacl/curvecp/die.c')
-rw-r--r--nacl/curvecp/die.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/nacl/curvecp/die.c b/nacl/curvecp/die.c
deleted file mode 100644
index 2220cf38..00000000
--- a/nacl/curvecp/die.c
+++ /dev/null
@@ -1,42 +0,0 @@
1#include <unistd.h>
2#include "writeall.h"
3#include "die.h"
4
5void die_9(int e
6 ,const char *s0
7 ,const char *s1
8 ,const char *s2
9 ,const char *s3
10 ,const char *s4
11 ,const char *s5
12 ,const char *s6
13 ,const char *s7
14 ,const char *s8
15)
16{
17 const char *s[9];
18 const char *x;
19 char buf[1024];
20 int buflen = 0;
21 int i;
22
23 s[0] = s0;
24 s[1] = s1;
25 s[2] = s2;
26 s[3] = s3;
27 s[4] = s4;
28 s[5] = s5;
29 s[6] = s6;
30 s[7] = s7;
31 s[8] = s8;
32 for (i = 0;i < 9;++i) {
33 x = s[i];
34 if (!x) continue;
35 while (*x) {
36 if (buflen == sizeof buf) { writeall(2,buf,buflen); buflen = 0; }
37 buf[buflen++] = *x++;
38 }
39 }
40 writeall(2,buf,buflen);
41 _exit(e);
42}