Re: vfs/ftpfs New feature on Solaris 2.7
Hi! > Index: vfs.c > === > RCS file: /home/sav/.cvsroot/mc/vfs/vfs.c,v > retrieving revision 1.60 > diff -u -p -r1.60 vfs.c > --- vfs.c 25 May 2000 18:00:34 - 1.60 > +++ vfs.c 27 Sep 2001 12:18:48 - > @@ -1439,9 +1442,10 @@ vfs_parse_filetype (char c) > return S_IFSOCK; > #endif > case 'p': return S_IFIFO; > + case 'D': /* Solaris door */ > case 'm': case 'n': /* Don't know what these are :-) */ > case '-': case '?': return S_IFREG; > default: return -1; > } > } Looks good! Pavel -- Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt, details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html. ___ Mc-devel mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/mc-devel
Re: vfs/ftpfs New feature on Solaris 2.7
Hi, Andrew! > Well, can you send struct stat st_mode field for > this objects? Does this has own macros ala S_ISLNK > in stat.h? I don't want to quote copyrighted code, but there are macros S_IFDOOR and S_ISDOOR. A door has permission 015 (octal) after logical AND with S_IFMT. I have access to Solaris 8, so I'll add door support when I have time. -- Regards, Pavel Roskin ___ Mc-devel mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/mc-devel
Re: vfs/ftpfs New feature on Solaris 2.7
"Andrew V. Samoilov"@gnome.org, [EMAIL PROTECTED] a écrit : > Index: vfs.c > === > RCS file: /home/sav/.cvsroot/mc/vfs/vfs.c,v > retrieving revision 1.60 > diff -u -p -r1.60 vfs.c > --- vfs.c 25 May 2000 18:00:34 - 1.60 > +++ vfs.c 27 Sep 2001 12:18:48 - > @@ -1439,9 +1442,10 @@ vfs_parse_filetype (char c) > return S_IFSOCK; > #endif > case 'p': return S_IFIFO; > + case 'D': /* Solaris door */ > case 'm': case 'n':/* Don't know what these are :-) */ > case '-': case '?': return S_IFREG; > default: return -1; > } > } > > > ___ Good. with "C-x c" permissions displayed are 100444 With, http://www.linux.zp.ua:8101/mc/vfs.c.patch I got an error 500, because port 8101 is filtered by my corporate's firewall as it has been for a long time for gnome.org/mc ___ Mc-devel mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/mc-devel
Re: vfs/ftpfs New feature on Solaris 2.7
Index: vfs.c === RCS file: /home/sav/.cvsroot/mc/vfs/vfs.c,v retrieving revision 1.60 diff -u -p -r1.60 vfs.c --- vfs.c 25 May 2000 18:00:34 - 1.60 +++ vfs.c 27 Sep 2001 12:18:48 - @@ -1439,9 +1442,10 @@ vfs_parse_filetype (char c) return S_IFSOCK; #endif case 'p': return S_IFIFO; + case 'D': /* Solaris door */ case 'm': case 'n':/* Don't know what these are :-) */ case '-': case '?': return S_IFREG; default: return -1; } } ___ Mc-devel mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/mc-devel
Re: Re: vfs/ftpfs New feature on Solaris 2.7
>> This is a quick hack to accept Solaris door files. >> Enjoy! >> > >Have you forgot an attachment ? It's pity, but it seems I can't attach text files with this engine. Well, I sent this patch personally to you from my corporative address 8( Look http://www.linux.zp.ua/mc/vfs.c.patch Regards, Andrew. éÇÒÁÊ × ÛÁÈÍÁÔÙ × éÎÔÅÒÎÅÔ ÎÁ InstantChess.com! Play chess on InstantChess.com ! www.instantchess.com ___ Mc-devel mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/mc-devel
Re: vfs/ftpfs New feature on Solaris 2.7
This is a quick hack to accept Solaris door files. Enjoy! éÇÒÁÊ × ÛÁÈÍÁÔÙ × éÎÔÅÒÎÅÔ ÎÁ InstantChess.com! Play chess on InstantChess.com ! www.instantchess.com ___ Mc-devel mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/mc-devel
Re: vfs/ftpfs New feature on Solaris 2.7
Well, can you send struct stat st_mode field for this objects? Does this has own macros ala S_ISLNK in stat.h? ># ls -la /etc | grep '^D' >Dr--r--r-- 1 root root 0 Sep 25 12:49 .name_service_door >Drw-r--r-- 1 root root 0 Sep 25 12:49 .syslog_door ># > >This causes a parse error. > >man ls > >The mode printed under the -l option consists of ten charac- > ters. The first character may be one of the following: > > d the entry is a directory; > > D the entry is a door; > > l the entry is a symbolic link; > > -FMark directories with a trailing slash (/), doors > with a trailing greater-than sign (>), executable > files with a trailing asterisk (*), FIFOs with a > trailing vertical bar (|), symbolic links with a > trailing at-sign (@), and AF_UNIX address family > sockets with a trailing equals sign (=). > > >man door_info >Miscellaneous Library Functions door_info(3X) > >NAME > door_info - return information associated with a door > descriptor > >SYNOPSIS > cc [ flag ... ] file ... -ldoor [ library ... ] > #include > > int door_info(int d, struct door_info *info); > >DESCRIPTION > The door_info() function returns information associated > with a door descriptor. It obtains information about the > door descriptor d and places the information that is > relevant to the door in the structure pointed to by the info > argument. > > The structure pointed to by the info argument contains the > following members: > > pid_t di_target; /* door server pid */ > door_ptr_t di_proc;/* server function */ > door_ptr_t di_data;/* data cookie for invocation */ > door_attr_t di_attributes; /* door attributes */ > door_id_t di_uniquifier; /* unique id among all doors */ > > The di_target member is the process ID of the door server, > or -1 if the door server process has exited. > >___ >Mc-devel mailing list >[EMAIL PROTECTED] >http://mail.gnome.org/mailman/listinfo/mc-devel > -- Regards, Andrew. éÇÒÁÊ × ÛÁÈÍÁÔÙ × éÎÔÅÒÎÅÔ ÎÁ InstantChess.com! Play chess on InstantChess.com ! www.instantchess.com ___ Mc-devel mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/mc-devel
vfs/ftpfs New feature on Solaris 2.7
# ls -la /etc | grep '^D' Dr--r--r-- 1 root root 0 Sep 25 12:49 .name_service_door Drw-r--r-- 1 root root 0 Sep 25 12:49 .syslog_door # This causes a parse error. man ls The mode printed under the -l option consists of ten charac- ters. The first character may be one of the following: d the entry is a directory; D the entry is a door; l the entry is a symbolic link; -FMark directories with a trailing slash (/), doors with a trailing greater-than sign (>), executable files with a trailing asterisk (*), FIFOs with a trailing vertical bar (|), symbolic links with a trailing at-sign (@), and AF_UNIX address family sockets with a trailing equals sign (=). man door_info Miscellaneous Library Functions door_info(3X) NAME door_info - return information associated with a door descriptor SYNOPSIS cc [ flag ... ] file ... -ldoor [ library ... ] #include int door_info(int d, struct door_info *info); DESCRIPTION The door_info() function returns information associated with a door descriptor. It obtains information about the door descriptor d and places the information that is relevant to the door in the structure pointed to by the info argument. The structure pointed to by the info argument contains the following members: pid_t di_target; /* door server pid */ door_ptr_t di_proc;/* server function */ door_ptr_t di_data;/* data cookie for invocation */ door_attr_t di_attributes; /* door attributes */ door_id_t di_uniquifier; /* unique id among all doors */ The di_target member is the process ID of the door server, or -1 if the door server process has exited. ___ Mc-devel mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/mc-devel
vfs/ftpfs New feature on Solaris 2.7
# ls -la /etc | grep '^D' Dr--r--r-- 1 root root 0 Sep 25 12:49 .name_service_door Drw-r--r-- 1 root root 0 Sep 25 12:49 .syslog_door # What is this 'D' ? not a directory. But causes a parse error. ___ Mc-devel mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/mc-devel