aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/global.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-03-26 15:48:12 +0200
committerSverker Eriksson <[email protected]>2018-03-26 15:48:12 +0200
commit39cf4e75f31e9abe46c9fe39000368c1243fdcf3 (patch)
tree962323787c184be03d18cbe93a8a8de1757204b4 /erts/emulator/beam/global.h
parentb48df378266717e1f6b79b96eb0f69cb08081585 (diff)
downloadotp-39cf4e75f31e9abe46c9fe39000368c1243fdcf3.tar.gz
otp-39cf4e75f31e9abe46c9fe39000368c1243fdcf3.tar.bz2
otp-39cf4e75f31e9abe46c9fe39000368c1243fdcf3.zip
erts: Include foreign static linked drivers in taints
That is, driver added with config option --enable-static-drivers.
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r--erts/emulator/beam/global.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h
index 8a746ea4b1..c8354f9fcf 100644
--- a/erts/emulator/beam/global.h
+++ b/erts/emulator/beam/global.h
@@ -1152,7 +1152,7 @@ typedef struct {
#define ERTS_SPAWN_DRIVER 1
#define ERTS_SPAWN_EXECUTABLE 2
#define ERTS_SPAWN_ANY (ERTS_SPAWN_DRIVER | ERTS_SPAWN_EXECUTABLE)
-int erts_add_driver_entry(ErlDrvEntry *drv, DE_Handle *handle, int driver_list_locked);
+int erts_add_driver_entry(ErlDrvEntry *drv, DE_Handle *handle, int driver_list_locked, int taint);
void erts_destroy_driver(erts_driver_t *drv);
int erts_save_suspend_process_on_port(Port*, Process*);
Port *erts_open_driver(erts_driver_t*, Eterm, char*, SysDriverOpts*, int *, int *);
@@ -1177,6 +1177,10 @@ void erts_lcnt_update_port_locks(int enable);
#endif
/* driver_tab.c */
+typedef struct {
+ ErlDrvEntry* de;
+ int taint;
+} ErtsStaticDriver;
typedef void *(*ErtsStaticNifInitFPtr)(void);
typedef struct ErtsStaticNifEntry_ {
const char *nif_name;