compatibility

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 2

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