Index of  //starlet.deltatelecom.ru/~laishev/work/*.*

MBOX V1.6 15-MAY-1995 Neill Clift (neill@macro.demon.co.uk)

I have worked on a number of real time systems under VMS and I have always
meant to write a peek into mailbox's program. About a year ago I finally got
round to it. The program knows about mailbox message formats for V5.4 thru
G7.0. It will need changing if/when DEC ever change it in a future release.

To run the program define it as a foreign command:

mbox :== $fullfilespec:mbox.exe

*NOTE*

If you do make any changes, find any bugs or even just have some good ideas
about the program *PLEASE* let me know about them. If you think there are
synchronization problems with the code let me know.

Problems:

In Jul 1994 I said:

   It does not see the first few mailbox's in the system as these are not
   returned by sys$device_scan.

Since then Ian Miller of Softel Systems pointed out to me that the reason for
this was that the hard coded mailboxes had the wrong device type. I modified
the program to use $device_scan based not on device class and type but device
class and device name. The kernel code allows mailboxes with types of either
zero or one. Its a hack really but I consider the bug to be within VMS.

Deassigning a channel to a mailbox seems to cause all processes in RWMBX to
become computable. So in order to see processes in RWMBX the program does an
arbitrary wait after deassigning mailbox channels to full mailboxes. This may
be subject to timing windows

Mailbox messages written by drivers seem to have rubbish PIDs (for example the
mailbox written to JOB_CONTROL (MBA1) by TTDRIVER on unsolicited input to an
unassigned terminal. I have since added code to filter these out based on the
function field of these messages being zero. I am greatfull to Greg Bernard
(gbernard@dbc.com) for providing this info and some good ideas.

I don't like the output format that much but I just don't have the brains to
come up with anything better.

In Jul 1994 I said:

   It all seems to work on the AXP but I am very much less sure that its
   synchronized correctly (I don't have the VMS source CD for the AXP so I
   can't check). /RWMBX does not work as R5 no longer contains the UCB address
   during these waits. There is probably another way of obtaining the info but
   I don't know what it is yet.

I have now seen a DSNLINK article that shows how to do this on the AXP via R2
(the channel). I will need to get access to P1 space of the target but this is
something I might do in the future.

Whats new:

I added details of the table in which the logical name is defined.

MBOX now displays the creator of the mailbox for temporary mailboxes.

I modified the code not to place explicit  pairs in the output file. It
was doing this because I was being lazy and using !/ directives in FAO. In fact
I am still being lazy but I added some code to break the lines before calling
$put.

Have fun.
                                   Neill.
       Name                                 Created         Size  Description
[DIR] amqp/ 4-Dec-2008 17:26 512 subdirectory [DIR] arp/ 3-Mar-2009 14:58 512 subdirectory [DIR] bbs-rdb/ 31-May-2007 16:01 8,704 subdirectory [DIR] cms/ 21-Jan-2001 16:06 512 subdirectory [DIR] dcpp/ 17-Jun-2009 15:59 5,120 subdirectory [DIR] dhcp/ 1-Nov-2008 10:21 1,536 subdirectory [DIR] dnews/ 21-Jan-2001 16:17 3,584 subdirectory [DIR] freetds/ 21-Jan-2001 16:17 3,072 subdirectory [DIR] icq/ 21-Dec-2007 17:18 2,048 subdirectory [DIR] irc/ 10-Oct-2003 13:29 512 subdirectory [DIR] isup/ 14-Jun-2001 22:51 512 subdirectory [DIR] iupop3/ 21-Jan-2001 16:19 4,096 subdirectory [DIR] libidl/ 4-Apr-2006 15:09 2,560 subdirectory [DIR] lua/ 24-Jul-2009 12:31 5,632 subdirectory [DIR] mbill/ 3-Jun-2011 11:50 10,240 subdirectory [DIR] mra/ 1-Sep-2011 13:31 512 subdirectory [DIR] mx/ 13-Dec-2005 16:12 2,048 subdirectory [DIR] ncs_convert/ 14-Sep-2009 16:37 512 subdirectory [DIR] netflow/ 5-Dec-2002 16:57 6,656 subdirectory [DIR] netpwd/ 21-Jan-2001 16:06 512 subdirectory [DIR] obimp/ 12-May-2010 11:32 1,024 subdirectory [DIR] orbit/ 4-Apr-2006 14:19 512 subdirectory [DIR] persona/ 19-Nov-2002 14:07 512 subdirectory [DIR] pop3/ 23-Mar-2005 11:34 3,584 subdirectory [DIR] pop3rad/ 11-Aug-2003 16:06 2,048 subdirectory [DIR] proto/ 6-Nov-2002 16:09 1,536 subdirectory [DIR] redir/ 6-Oct-2009 11:04 5,632 subdirectory [DIR] retracker/ 31-Mar-2010 14:37 2,560 subdirectory [DIR] rpop/ 14-Apr-2010 11:47 2,560 subdirectory [DIR] rtp/ 2-Jun-2001 18:43 2,048 subdirectory [DIR] s-lang/ 18-Mar-2009 14:44 1,536 subdirectory [DIR] sctp/ 2-Nov-2009 12:46 512 subdirectory [DIR] sdl/ 1-Feb-2006 13:34 5,632 subdirectory [DIR] sip/ 26-Apr-2009 11:15 6,656 subdirectory [DIR] slfax/ 22-Jan-2004 16:01 2,048 subdirectory [DIR] smpp/ 17-Apr-2002 12:59 7,680 subdirectory [DIR] ssl/ 6-May-2009 23:43 512 subdirectory [DIR] stunnel/ 26-Aug-2011 11:49 1,024 subdirectory [DIR] syslog/ 4-Feb-2004 12:08 1,024 subdirectory [DIR] tessco/ 5-Mar-2002 12:20 1,024 subdirectory [DIR] tftp/ 24-May-2004 11:54 2,560 subdirectory [DIR] tiff/ 21-Jan-2001 16:17 512 subdirectory [DIR] vtl/ 19-Mar-2009 12:47 6,144 subdirectory [TXT] aaareadme.txt 27-Nov-1995 16:02 2,929 plain text [TXT] acc_dump.c 2-Mar-2002 16:38 7,380 C source [TXT] acc_dump_cld.cld 2-Mar-2002 15:42 862 VMS Command Line Definition [TXT] bob.c 24-Sep-1998 20:34 2,744 C source [TXT] build.com 29-Jul-1994 23:55 293 DCL procedure [TXT] cdate.c 20-May-2000 02:10 2,122 C source [TXT] cod.c 3-Sep-1997 14:37 394 C source [TXT] cod_org.c 28-Nov-1996 09:25 3,384 C source [TXT] daily.com 28-Jan-1988 09:34 5,996 DCL procedure [TXT] daily_start.com 28-Jan-1988 09:39 1,280 DCL procedure [TXT] decuserve.dtr 28-Jan-1988 13:58 25,286 DEC DATATRIEVE source [TXT] descrip.mms 29-Jul-1994 23:55 326 Module Management System rules [TXT] fastio_exmp.c 29-Sep-1998 14:12 2,431 C source [TXT] fix_acct.c 21-Apr-2000 20:14 1,948 C source [TXT] floodd.c 28-Jan-1997 21:13 6,530 C source [TXT] fs.c 10-Oct-1997 21:40 2,039 C source [TXT] gblsec.c 7-Sep-1998 20:55 4,890 C source [TXT] gblsec1.c 7-Sep-1998 21:16 4,738 C source [TXT] gblsec_exmp.c 29-Sep-1998 14:15 2,070 C source [TXT] getpcb.c 19-Aug-2000 18:23 1,261 C source [TXT] hw_health.c 27-Sep-2000 19:18 7,814 C source [TXT] invisible.c 10-Mar-1998 19:35 5,767 C source [TXT] ipcli.c 4-Nov-1997 18:02 2,382 C source [TXT] ipcli_net.c 4-Nov-1997 13:42 11,552 C source [TXT] ipsrv.c 20-Nov-1995 16:01 3,796 C source [TXT] ip_ioctl.c 23-Oct-1996 15:51 3,527 C source [TXT] lat.c 30-Sep-1998 16:16 29,678 C source [TXT] lck.c 9-Jun-1998 13:03 1,498 C source [TXT] ldrset.c 13-May-1998 04:59 5,219 C source [TXT] lgiexample.c 2-Oct-1999 23:08 8,922 C source [TXT] link.com 30-Jul-1994 00:00 294 DCL procedure [TXT] lock_example.c 24-Feb-1998 16:21 3,112 C source [TXT] lock_examples.c 17-Oct-1997 20:54 2,906 C source [TXT] ltc.c 16-Mar-1998 18:47 1,804 C source [TXT] lts.c 16-Mar-1998 18:26 1,994 C source [TXT] mail.c 20-Dec-1995 12:56 3,197 C source [TXT] mail0.c 20-Dec-1995 13:16 2,342 C source [TXT] mail_l.c 25-Oct-1995 16:02 3,258 C source [TXT] mail_r.c 25-Oct-1995 15:53 5,655 C source [TXT] mail_s.c 25-Oct-1995 15:51 3,546 C source [TXT] mbxr.c 21-Nov-1994 14:35 2,867 C source [TXT] mbxw.c 21-Nov-1994 14:35 5,014 C source [TXT] mtx.c 13-May-1998 04:59 29,081 C source [TXT] orange_req.c 15-Jun-2000 13:34 8,111 C source [TXT] orange_req_cld.cld 15-Jun-2000 01:53 1,126 VMS Command Line Definition [TXT] overl.c 3-Feb-2000 15:28 1,520 C source [TXT] overl_test.c 3-Feb-2000 15:26 2,136 C source [TXT] pai.c 31-Aug-1995 17:50 7,404 C source [TXT] pai0.c 6-Jan-1997 12:11 12,200 C source [TXT] paitest.c 25-Nov-1994 13:48 6,716 C source [TXT] pai_ip.c 19-Feb-1996 11:14 12,200 C source [TXT] pai_ip_io.c 13-Feb-1997 16:18 11,186 C source [TXT] pai_net.c 17-Mar-1997 17:16 11,488 C source [TXT] pcb.c 18-Jan-2000 15:03 1,313 C source [TXT] pcbmod.c 17-Aug-2000 12:54 1,692 C source [TXT] rmsloc_exmp.c 18-Sep-1998 22:02 1,530 C source [TXT] rur_in_sym.c 20-Feb-1997 17:02 10,066 C source [TXT] setuic.c 19-Jan-2000 07:17 1,691 C source [TXT] share_access.c 17-Oct-1997 17:12 2,826 C source [TXT] share_array.c 17-Oct-1997 20:56 198 C source [TXT] tar2vms.c 8-Dec-1995 20:57 12,504 C source [TXT] telnetsym.c 31-Oct-1995 13:26 29,965 C source [TXT] test_gblsec.c 7-Sep-1998 21:55 3,548 C source [TXT] ucx_ioctl.c 26-Apr-1996 12:27 5,154 C source [TXT] ver_ip_sym.c 5-Jan-1996 16:23 11,980 C source [TXT] zz.c 7-Nov-2000 13:38 770 C source