Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#amunits]

SetOwner

Set owner information for a file or directory

Declaration

Source position: amigados.pas line 1717

function SetOwner(

  const name: pCHAR;

  owner_info: LongInt

):LongBool;

function SetOwner(

  const name: string;

  owner_info: LongInt

):Boolean;

Arguments

name

  

Name of file

owner_info

  

Owner uid (31:16) and group id (15:0)

Arguments

name

  

Name of file

owner_info

  

Owner uid (31:16) and group id (15:0)

Description

SetOwner() sets the owner information for the file or directory. This value is a 32-bit value that is normally split into 16 bits of owner user id (bits 31-16), and 16 bits of owner group id (bits 15-0). However, other than returning them as shown by Examine()/ ExNext()/ExAll(), the filesystem take no interest in the values. These are primarily for use by networking software (clients and hosts), in conjunction with the FIBF_OTR_* and FIBF_GRP_* protection bits.

See also

Examine

  

Examine a directory or file associated with a lock

ExNext

  

Examine the next entry in a directory

ExAll

  

Examine an entire directory


Documentation generated on: 2021-07-30