• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • Projects
  • Repositories
    • View all public repositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
David Young
  1. David Young

vchoi_fork

Vailin Choi
my_hdf5_fork
Public
Actions
  • Clone
  • Download

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Graphs
  • Branches
  • Network
  • Latest Activities

Commits

Thomas Radke
78365de55f2
Thomas Radke committed f39c5d7985228 Oct 2000
[svn-r2746] 
Purpose:
    Port to Windows platform
    Bug fix
Description:
    The Stream VFD is ported to Windows now.
    Also fixed a bug where an application terminated when it got a SIGPIPE
    due to sending/receiving on a closed socket.
Solution:
    The socket stuff is treated different under Windows when using
    the MS compilers to build HDF5. They define their own socket datatype
    and have closesocket() instead of close(2) to close sockets.
    Also there are different header files for all the socket stuff.

    So I introduced my own socket decriptor datatype in H5FDstream.h
    which should be used to pass in external sockets. This datatype
    is mapped to either 'int' (UNIX-type sockets) or 'SOCKET' (Windows).
    In the code the error code checking was adapted according to the
    socket datatype used. Also, for Windows you have to call a routine
    to initialize the Socket layer before using it.

    As a kind of bug fix, the process signal mask is now set to ignore
    SIGPIPE signals which otherwise cause the application to terminate.
    The driver read/write routines catch this and return an error code.

Platforms tested:
    Windows NT, both with MS Visual C++ compiler and with GNU cc

    It is interesting that when compiling with GNU cc under Windows
    it is possible to use both Windows and UNIX-type sockets (either
    one or the other). So I check for GNU cc and go for UNIX sockets
    if possible.

Changed files

  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v4.4.1
  • Documentation
  • Contact Support
  • Request a feature
  • About
  • Contact Atlassian
Atlassian