Skip to main content

Problem with semctl

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

When calling semctl from a COBOL program the fourth parameter is always zero.  

Resolution:

The interface for semctl() passes a union by value.

We do not support passing a union or struct by value to a C program.

From SX 4.0 SP2 the shared memory demo programs in $COBDIR/demo/sharedmem have been corrected to reflect this. See sharemem.cbl and smipc.c in this directory for further details.

Old KB# 1993

0 replies

Be the first to reply!