Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement __aligned_malloc() and __aligned_free() #59

Merged
merged 6 commits into from
May 9, 2024
Merged

Commits on May 8, 2024

  1. implement __aligned_malloc() and __aligned_free()

    Call posix_memalign() if building with `-mzos-target=zosv3r1` on z/OS 3.1,
    in which case `__aligned_free()` calls `free()`. Otherwise use a local
    implementation to align memory from `malloc()`.
    gabylb committed May 8, 2024
    Configuration menu
    Copy the full SHA
    2c06e96 View commit details
    Browse the repository at this point in the history
  2. fix include_next typo

    On LE 3.1 zos-io.cc fails to pick up LOCK_* definitions from the
    system's sys/file.h.
    gabylb committed May 8, 2024
    Configuration menu
    Copy the full SHA
    3178c2e View commit details
    Browse the repository at this point in the history
  3. fix conflicts with system's time.h

    __clockid_t is defined in sys/types.h if >= v2r5,
    CLOCK_REALTIME and CLOCK_MONOTONIC are already defined
    in the system's time.h if >= v2r5.
    gabylb committed May 8, 2024
    Configuration menu
    Copy the full SHA
    e29fb70 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. add assert for offset in __aligned_malloc

    Also remove unneeded include of features.h since other
    system headers already include it.
    gabylb committed May 9, 2024
    Configuration menu
    Copy the full SHA
    19a0e41 View commit details
    Browse the repository at this point in the history
  2. check size and alignment values

    This is for the local implementation to behave the same
    way in terms of the argument values and return.
    gabylb committed May 9, 2024
    Configuration menu
    Copy the full SHA
    a8634ee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    51fe556 View commit details
    Browse the repository at this point in the history