Name

SPVM::Sys::IO::Flock - struct flock in the C language

Description

Sys::IO::Flock class in SPVM is the class for struct flock in the C language.

Usage

use Sys::IO::Flock;
my $flock = Sys::IO::Flock->new;

Details

This is a pointer class. The pointer of the instance is set to a struct flock object.

Class Methods

new

native static method new : Sys::IO::Flock ();

Create a new Sys::IO::Flock object.

Instance Methods

DESTROY

native method DESTROY : void ();

The destructor.

l_type

native method l_type : int ();

Returns l_type.

set_l_type

native method set_l_type : void ($type : int);

Sets l_type.

l_whence

native method l_whence : int ();

Returns l_whence.

set_l_whence

native method set_l_whence : void ($whence : int);

Sets l_whence.

l_start

native method l_start : long ();

Returns l_start.

set_l_start

native method set_l_start : void ($start : long);

Sets l_start.

l_len

native method l_len : long ();

Returns l_len.

set_l_len

native method set_l_len : void ($len : long);

Sets l_len.

l_pid

native method l_pid : int ();

Returns l_pid.

set_l_pid

native method set_l_pid : void ($pid : int);

Sets l_pid.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License