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

« back to all changes in this revision

Viewing changes to lib/kernel/examples/uds_dist/c_src/uds_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:
111
111
typedef enum { 
112
112
    portTypeUnknown,      /* An uninitialized port */
113
113
    portTypeListener,     /* A listening port/socket */
114
 
    portTypeAcceptor,     /* An intermidiate stage when accepting 
 
114
    portTypeAcceptor,     /* An intermediate stage when accepting
115
115
                             on a listen port */
116
116
    portTypeConnector,    /* An intermediate stage when connecting */
117
117
    portTypeCommand,      /* A connected open port in command mode */
401
401
/*
402
402
** Protocol to control:
403
403
** 'C': Set port in command mode.
404
 
** 'I': Set port in intermidiate mode
 
404
** 'I': Set port in intermediate mode
405
405
** 'D': Set port in data mode
406
406
** 'N': Get identification number for listen port
407
407
** 'S': Get statistics
1000
1000
 
1001
1001
/*
1002
1002
** Try to open a lock file and lock the first byte write-only (advisory)
1003
 
** return the file descriptor if succesful, otherwise -1 (<0).
 
1003
** return the file descriptor if successful, otherwise -1 (<0).
1004
1004
*/ 
1005
1005
static int try_lock(char *sockname, Byte *p_creation)
1006
1006
{