~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to erts/emulator/test/ddll_SUITE_data/noinit_drv.c

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
static ErlDrvPort erlang_port;
5
5
static ErlDrvData easy_start(ErlDrvPort, char*);
6
 
static void easy_stop(ErlDrvData), easy_read(ErlDrvData, char*, int);
 
6
static void easy_stop(ErlDrvData), easy_read(ErlDrvData, char*, ErlDrvSizeT);
7
7
 
8
8
static ErlDrvEntry easy_driver_entry =
9
9
{
14
14
    NULL,
15
15
    NULL,
16
16
    "easy",
 
17
    NULL,
 
18
    NULL,
 
19
    NULL,
 
20
    NULL,
 
21
    NULL,
 
22
    NULL,
 
23
    NULL,
 
24
    NULL,
 
25
    NULL,
 
26
    ERL_DRV_EXTENDED_MARKER,
 
27
    ERL_DRV_EXTENDED_MAJOR_VERSION,
 
28
    ERL_DRV_EXTENDED_MINOR_VERSION,
 
29
    0,
 
30
    NULL,
 
31
    NULL,
17
32
    NULL
18
33
};
19
34
 
28
43
/*
29
44
 * Provoke an error when loading the module.
30
45
 */
31
 
int no_driver_init(void *handle)
 
46
ErlDrvEntry* no_driver_init(void *handle)
32
47
#endif
33
48
{
34
49
    erlang_port = (ErlDrvPort)-1;
46
61
    return (ErlDrvData)port;
47
62
}
48
63
 
49
 
static void easy_read(ErlDrvData port, char *buf, int count)
 
64
static void easy_read(ErlDrvData port, char *buf, ErlDrvSizeT count)
50
65
{
51
66
    driver_output(erlang_port, buf, count);
52
67
}