GetVar() allows you to specify a device spec in front of the variable to specify which device root. ie: "ENVARC:foobar".
The default without specifying anything is of course, "ENV:". I'll update the autodocs.
Search found 189 matches
- Mon Feb 17, 2014 10:03 am
- Forum: General Developer Support
- Topic: ENV: / ENVARC: handling for prefs
- Replies: 2
- Views: 2022
- Sun Feb 16, 2014 1:27 am
- Forum: General Developer Support
- Topic: Strange error output using SystemTags()
- Replies: 9
- Views: 4532
Re: Strange error output using SystemTags()
NotifyVar() works simply by adding hook structure nodes to a list. When an environmental function is called that modifies a variable, like SetVar() or DeleteVar(), the variable with the matching name has it's hook function called, and you do what you need to in there. That's it, nice and simple and ...
- Tue Feb 04, 2014 1:50 am
- Forum: General Developer Support
- Topic: Strange error output using SystemTags()
- Replies: 9
- Views: 4532
Re: Strange error output using SystemTags() [SOLVED?]
Has enyone an explanation for such strange thing? Looking at your log, I can see a possible race problem which the priority change could affect. You will notice that line 142 Open()'s the file in "NEW" mode, which implies an EXCLUSIVE_LOCK, but immediately afterwards on line 143 a SHARED_...
- Mon Feb 03, 2014 4:36 am
- Forum: General Developer Support
- Topic: Strange error output using SystemTags()
- Replies: 9
- Views: 4532
Re: Strange error output using SystemTags()
Hi using in DateTime.docky to launch an external program (SYS:Prefs/Time) when I click on Time prefs USE|SAVE I get a requester 'Could not open input file "ENV:Sys/time.prefs".' Any ideas why I get such requester? TIA Is it a requester, or a text message in the console window you opened. ...
- Thu Jan 30, 2014 10:07 pm
- Forum: General Developer Support
- Topic: Detecting hard-disk (incl. SSD) related devices
- Replies: 3
- Views: 2207
Re: Detecting hard-disk (incl. SSD) related devices
Firstly it's; AllocDosObject(DOS_VOLUMELIST, ) [not ADO_DEVICELIST] So, for this reply, I will assume you are actually using; DOS_VOLUMELIST with the tag; ADO_Type set to LDF_DEVICES. If this is the case, you may wish to filter the devices returned first by using IDOS->IsFileSystem(), that will at l...
- Thu Jan 23, 2014 1:26 pm
- Forum: General Developer Support
- Topic: variadic function, VARARGS68K and va_list parameter
- Replies: 5
- Views: 3153
Re: variadic function, VARARGS68K and va_list parameter
char buf[512];
-> return buf;
'buf' is an auto variable, it disappears when you leave the function.
-> return buf;
'buf' is an auto variable, it disappears when you leave the function.
- Sat Nov 23, 2013 11:39 pm
- Forum: General AmigaOS
- Topic: Problems with List command
- Replies: 16
- Views: 4681
Re: Problems with List command
There are certain characters used in pattern matching, namely the ones found in the autodoc for DOS/ParsePattern(). None of which are specifically "forbidden" in filesystem object names, but their use will eventually cause you a world of hurt. Here are the current pattern matching tokens: ...
- Sat Nov 09, 2013 3:29 am
- Forum: General AmigaOS
- Topic: Ethernet communication between 2 SAM's
- Replies: 34
- Views: 9375
Re: Ethernet communication between 2 SAM's
Besides the previous 40 byte display buffer limitation, the displayed argument string will also be truncted
at the first ascii character less than value 0x20 (char 32). That's all.
at the first ascii character less than value 0x20 (char 32). That's all.
- Sat Nov 09, 2013 1:20 am
- Forum: General AmigaOS
- Topic: Ethernet communication between 2 SAM's
- Replies: 34
- Views: 9375
Re: Ethernet communication between 2 SAM's
I've just rechecked and Snoopy's argument buffer was 39 characters long, so the string was truncated for display.
I've just fixed it for the next update.
I've just fixed it for the next update.
- Sun Oct 27, 2013 3:03 am
- Forum: Platform: AmigaOne X1000
- Topic: DEVS:Mountlist-SOLVED
- Replies: 11
- Views: 6812
Re: DEVS:Mountlist
There is no supplied "devs:Mountlist" anymore, even though the c:mount command will still look for it
if the particular device info is not found in the "devs:DosDrivers" directory where individual mount files
are now the standard.
if the particular device info is not found in the "devs:DosDrivers" directory where individual mount files
are now the standard.