[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

789.0. "Want to rewrite assign" by 16BITS::KRUGER () Sun Oct 11 1987 17:08

    I do a lot of assigns on startup. As a result, I have wanted to
    write a multiple assign command for a while, but haven't found a
    DOS, Exec or any other call that does the job. Does anyone have
    the answer?
    
    Thanks,
    dov
T.RTitleUserPersonal
Name
DateLines
789.1DEFDISK does this...LEDS::ACCIARDIMon Oct 12 1987 02:129
    This may not be of much help, but there is a PD command called DEFDISK
    which assigns C, SYS, S, FONTS, L, LIBS, to any mounted volume in
    one fell swoop.
    
    I have the executable in my C directory, but I can check to see
    if the source is available.   
    
    Ed.
    
789.2A lot of trouble?TLE::RMEYERSRandy MeyersTue Oct 13 1987 02:4916
Re: .0

There is no system function to do an assign.  Instead, the Assign command
knows the format of the list of device assignments hanging off the
DOS.library positive vector.  It just creates entries and sticks them in
the list.

There is a PD reimplementation of the Assign command that made it to a
fish disk, I believe.  Getting it right is somewhat subtle: the CLI/Assign
command assumes that the list entry was allocated using the BCPL memory
allocator, for example.

Are you sure you want to *really* get into all of this for less than
a second speedup in your bootup time?  (I am assuming to have enough
disk buffers so that loading the assign command doesn't go to the disk
for each invocation of the assign command.)