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