Lines 1-5
Link Here
|
1 |
--- freebsd/oci8stub.c.orig 2007-11-11 12:25:01.000000000 +0600 |
1 |
--- freebsd/oci8stub.c.orig 2007-11-11 09:25:01.000000000 +0300 |
2 |
+++ freebsd/oci8stub.c 2007-11-28 05:03:13.000000000 +0600 |
2 |
+++ freebsd/oci8stub.c 2016-07-14 11:07:18.873132000 +0300 |
3 |
@@ -2,6 +2,7 @@ |
3 |
@@ -2,6 +2,7 @@ |
4 |
#include <sys/param.h> |
4 |
#include <sys/param.h> |
5 |
#include <sys/stat.h> |
5 |
#include <sys/stat.h> |
Lines 8-14
Link Here
|
8 |
#include <assert.h> |
8 |
#include <assert.h> |
9 |
#include <errno.h> |
9 |
#include <errno.h> |
10 |
#include <dlfcn.h> |
10 |
#include <dlfcn.h> |
11 |
@@ -119,6 +120,13 @@ |
11 |
@@ -119,6 +120,14 @@ |
12 |
|
12 |
|
13 |
int __l_sigprocmask(int how, const sigset_t *set, sigset_t *oldset); |
13 |
int __l_sigprocmask(int how, const sigset_t *set, sigset_t *oldset); |
14 |
|
14 |
|
Lines 18-28
Link Here
|
18 |
+}; |
18 |
+}; |
19 |
+ |
19 |
+ |
20 |
+int __l_connect(int s, const struct l_sockaddr *l_sa, socklen_t addrlen); |
20 |
+int __l_connect(int s, const struct l_sockaddr *l_sa, socklen_t addrlen); |
|
|
21 |
+int __l_sigaction(int signum, const struct sigaction *l_act, struct sigaction *oldact); |
21 |
+ |
22 |
+ |
22 |
#ifdef stdin |
23 |
#ifdef stdin |
23 |
#undef stdin |
24 |
#undef stdin |
24 |
#undef stdout |
25 |
#undef stdout |
25 |
@@ -528,3 +536,14 @@ |
26 |
@@ -528,3 +537,27 @@ |
26 |
|
27 |
|
27 |
return sigprocmask(how, set, oldset); |
28 |
return sigprocmask(how, set, oldset); |
28 |
} |
29 |
} |
Lines 37-39
Link Here
|
37 |
+ sa.sa_family = l_sa->sa_family; |
38 |
+ sa.sa_family = l_sa->sa_family; |
38 |
+ return connect(s, &sa, addrlen); |
39 |
+ return connect(s, &sa, addrlen); |
39 |
+} |
40 |
+} |
|
|
41 |
+ |
42 |
+int |
43 |
+__l_sigaction(int signum, const struct sigaction *l_act, struct sigaction *oldact) |
44 |
+{ |
45 |
+ struct sigaction act; |
46 |
+ |
47 |
+ act.sa_handler = l_act->sa_handler; |
48 |
+ act.sa_flags = l_act->sa_flags & (SA_ONSTACK | SA_RESTART | SA_RESETHAND | |
49 |
+ SA_NOCLDSTOP | SA_NODEFER | SA_NOCLDWAIT | SA_SIGINFO); |
50 |
+ act.sa_mask = l_act->sa_mask; |
51 |
+ return sigaction(signum, &act, oldact); |
52 |
+} |
53 |
+ |