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

« back to all changes in this revision

Viewing changes to lib/runtime_tools/c_src/trace_ip_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:
1
1
/*
2
2
 * %CopyrightBegin%
3
3
 * 
4
 
 * Copyright Ericsson AB 1999-2009. All Rights Reserved.
 
4
 * Copyright Ericsson AB 1999-2011. All Rights Reserved.
5
5
 * 
6
6
 * The contents of this file are subject to the Erlang Public License,
7
7
 * Version 1.1, (the "License"); you may not use this file except in
185
185
*/
186
186
static ErlDrvData trace_ip_start(ErlDrvPort port, char *buff);
187
187
static void trace_ip_stop(ErlDrvData handle);
188
 
static void trace_ip_output(ErlDrvData handle, char *buff, int bufflen);
 
188
static void trace_ip_output(ErlDrvData handle, char *buff,
 
189
                            ErlDrvSizeT bufflen);
189
190
#ifdef __WIN32__
190
191
static void trace_ip_event(ErlDrvData handle, ErlDrvEvent event);
191
192
#endif
193
194
static void trace_ip_ready_output(ErlDrvData handle, ErlDrvEvent fd);
194
195
static void trace_ip_finish(void); /* No arguments, despite what might be stated
195
196
                                     in any documentation */
196
 
static int trace_ip_control(ErlDrvData handle, unsigned int command, 
197
 
                            char* buff, int count, 
198
 
                            char** res, int res_size);
 
197
static ErlDrvSSizeT trace_ip_control(ErlDrvData handle,
 
198
                                     unsigned int command, 
 
199
                                     char* buff, ErlDrvSizeT count, 
 
200
                                     char** res, ErlDrvSizeT res_size);
199
201
 
200
202
/*
201
203
** Internal routines
382
384
/*
383
385
** Data sent from erlang to port.
384
386
*/
385
 
static void trace_ip_output(ErlDrvData handle, char *buff, int bufflen)
 
387
static void trace_ip_output(ErlDrvData handle, char *buff, ErlDrvSizeT bufflen)
386
388
{
387
389
    TraceIpData *data = (TraceIpData *) handle;
388
390
    if (data->flags & FLAG_LISTEN_PORT) {
548
550
/*
549
551
** Control message from erlang, we handle $p, which is get_listen_port.
550
552
*/
551
 
static int trace_ip_control(ErlDrvData handle, unsigned int command, 
552
 
                              char* buff, int count, 
553
 
                              char** res, int res_size)
 
553
static ErlDrvSSizeT trace_ip_control(ErlDrvData handle,
 
554
                                     unsigned int command, 
 
555
                                     char* buff, ErlDrvSizeT count, 
 
556
                                     char** res, ErlDrvSizeT res_size)
554
557
{
555
558
    register void *void_ptr; /* Soft type cast */
556
559