Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • vala vala
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 776
    • Issues 776
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 71
    • Merge requests 71
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • valavala
  • Merge requests
  • !79

glib-2.0: fix g_stat () binding.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed philippejer requested to merge philippejer/vala:fix/glib-gstat into master Sep 01, 2019
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

The data type should be GStatBuf, not struct stat.

The documentation of g_stat () (https://developer.gnome.org/glib/unstable/glib-File-Utilities.html#g-stat) states:

In Microsoft's compiler, by default struct stat means one with 64-bit time fields while in MinGW struct stat is the legacy one with 32-bit fields.

To hopefully clear up this messs, the gstdio.h header defines a type GStatBuf which is the appropriate struct type depending on the platform and/or compiler being used. On POSIX it is just struct stat, but note that even on POSIX platforms, stat() might be a macro.

Edited Sep 01, 2019 by philippejer
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/glib-gstat