compatibility

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package compatibility provides a layer to cross-compile with other OS than Linux

Index

Constants

This section is empty.

Variables

View Source
var ErrExistsNotFifo = errors.New("path already exists and is not a FIFO")

ErrExistsNotFifo is returned by CreateFifo when a filesystem entry already exists at the requested path but is not a FIFO.

Functions

func AddInstanceRunCommands

func AddInstanceRunCommands(cmd *exec.Cmd)

AddInstanceRunCommands adds specific OS commands to the postgres exec.Cmd

func CreateFifo

func CreateFifo(fileName string) error

CreateFifo ensures a FIFO exists at fileName. If nothing exists there it creates one. If an entry already exists it must resolve to a FIFO — the check follows symlinks (os.Stat) so it matches how consumers open this path (os.OpenFile follows symlinks); any other type is reported as an error rather than silently left in place, and the existing entry is never modified or removed.

func Umask

func Umask(mask int) int

Umask sets the process's unix umask to prevent/allow permissions changes

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL