Skip to content
/ ftok Public

Package ftok provides a way to generate a System V IPC key, suitable for using with msgget, semget, or shmget.

License

Notifications You must be signed in to change notification settings

hslam/ftok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ftok

PkgGoDev Build Status codecov Go Report Card LICENSE

Package ftok provides a way to generate a System V IPC key, suitable for using with msgget, semget, or shmget.

Get started

Install

go get github.com/hslam/ftok

Import

import "github.com/hslam/ftok"

Usage

Example

package main

import (
	"fmt"
	"github.com/hslam/ftok"
)

func main() {
	key, err := ftok.Ftok("/tmp", 0x22)
	if err != nil {
		return
	}
	fmt.Printf("%x", key)
}

License

This package is licensed under a MIT license (Copyright (c) 2020 Meng Huang)

Author

ftok was written by Meng Huang.

About

Package ftok provides a way to generate a System V IPC key, suitable for using with msgget, semget, or shmget.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages