fixOptns()  getFileName()

Chapter 5: General Objects and Methods

fixPerms()

Description

Programmatically clears an I/O file object’s current create permissions settings and sets new permissions.

NoteThis method does not perform error checking. Use fixprop() to modify an I/O file object’s create permissions without clearing the permissions first.

Syntax

fixPerms(int perm);

Parameter

Description

perm

The mnemonic associated with the permissions being set. For any mnemonic not passed in the parameter, the permission is set to off. To set multiple permissions, place a pipe symbol ( | ) between each mnemonic. See Table 5-2 for a list of mnemonics.

Return value

None.

Usage

Table 5-2 lists available mnemonics for the perm parameter. Each description corresponds to an option on the user interface screens.

Table 5-2: perm argument mnemonics

Mnemonic

Description

RD_OWNER

Read - Owner

WR_OWNDER

Write - Owner

EX_OWNER

Execute - Owner

RD_GROUP

Read - Group

WR_GROUP

Write - Group

EX_GROUP

Execute - Group

RD_OTHER

Read - Other

WR_OTHER

Writer - Other

EX_OTHER

Execute - Other

Pointer to object

Object

piof->fixPerms(EX_GROUP);

my_iofobj.fixPerms(RD_OTHER|WR_OTHER);





Copyright © 2005. Sybase Inc. All rights reserved. getFileName()

View this book as PDF