Skip to content

Commit

Permalink
remove unneeded file
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Nov 1, 2023
1 parent b849f9b commit ebb89ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
18 changes: 0 additions & 18 deletions unix/fcntl_openbsd.go

This file was deleted.

11 changes: 11 additions & 0 deletions unix/syscall_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,17 @@ func Getresgid() (rgid, egid, sgid int) {
//sys fcntl(fd int, cmd int, arg int) (n int, err error)
//sys fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) = SYS_FCNTL

// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
return fcntl(int(fd), cmd, arg)
}

// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
_, err := fcntlPtr(int(fd), cmd, unsafe.Pointer(lk))
return err
}

//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error)

func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
Expand Down

0 comments on commit ebb89ab

Please sign in to comment.