vfs.c Could not parse

2001-09-27 Thread Christian Gennerat

220 xxx FTP server (SunOS 5.7) ready.

This FTP server outputs the file dates with Frech format:

150 ASCII data connection for /bin/ls (139.54.66.187,1071) (0 bytes).
total 15740
drwxr-xr-x   6 root other512 sep  26 16:52 .
drwxr-xr-x   3 root other512 sep  25 14:43 ..
drwxr-xr-x  13 root other512 sep  26 15:23 apache
drwxrwsr-x  28 root bin 1024 fév   8  2001 ghost
drwxr-xr-x   5 999  999  512 nov  27  2000 perl560
drwxr-xr-x   9 999  999  512 nov   3  2000 tomcat
-rw-r--r--   1 root other8042496 sep  26 16:51 TOMCAT.03.01.sol.tar
226 ASCII Transfer complete.

The table in
static int
is_month (char *str, struct tm *tim)
{
static char *month = JanFebMarAprMayJunJulAugSepOctNovDec;

is obviously an English table, and is good for most servers.
what can we do ?


___
Mc-devel mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/mc-devel



vfs/ftpfs New feature on Solaris 2.7

2001-09-27 Thread Christian Gennerat

# 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 door.h

 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



Re: vfs/ftpfs New feature on Solaris 2.7

2001-09-27 Thread Andrew V. Samoilov

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 door.h

 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



Re: vfs/ftpfs New feature on Solaris 2.7

2001-09-27 Thread Andrew V. Samoilov

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: Re: vfs/ftpfs New feature on Solaris 2.7

2001-09-27 Thread Andrew V. Samoilov

 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

2001-09-27 Thread Andrew V. Samoilov

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: vfs/ftpfs New feature on Solaris 2.7

2001-09-27 Thread Christian Gennerat

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: Moving from ~/.cedit to ~/.mc

2001-09-27 Thread Miguel de Icaza


 I suggest that MC doesn't use the .cedit directory and uses .mc for
 the files that it currently looks for in .cedit.  The main reason is
 that the Syntax file conflicts with Cooledit.

Do we have any words from Paul on integrating maybe the new cooledit
with MC?

Miguel.

___
Mc-devel mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/mc-devel



Re: vfs/ftpfs New feature on Solaris 2.7

2001-09-27 Thread Pavel Roskin

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