13 unsigned file_mode = 0;
14 int access_mode = -1, lock_mode = -1;
15 size_t file_mode_len, access_mode_len, lock_mode_len;
22 access_mode_len =
FB_STRSIZE( str_access_mode );
25 if( file_mode_len != 1 || access_mode_len>2 || lock_mode_len>2 ) {
30 if( strcasecmp(str_file_mode->
data,
"B")==0 ) {
32 }
else if( strcasecmp(str_file_mode->
data,
"I")==0 ) {
34 }
else if( strcasecmp(str_file_mode->
data,
"O")==0 ) {
36 }
else if( strcasecmp(str_file_mode->
data,
"A")==0 ) {
38 }
else if( strcasecmp(str_file_mode->
data,
"R")==0 ) {
46 if ( strcasecmp(str_access_mode->
data,
"R")==0 ) {
48 }
else if ( strcasecmp(str_access_mode->
data,
"W")==0 ) {
50 }
else if ( strcasecmp(str_access_mode->
data,
"RW")==0 ) {
58 if ( strcasecmp(str_lock_mode->
data,
"S")==0 ) {
60 }
else if ( strcasecmp(str_lock_mode->
data,
"R")==0 ) {
62 }
else if ( strcasecmp(str_lock_mode->
data,
"W")==0 ) {
64 }
else if ( strcasecmp(str_lock_mode->
data,
"RW")==0 ) {
80 if( access_mode == -1 ) {
96 if( lock_mode == -1 ) {