[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] save_cwd: save/restore all CWDs of each drive on EMX
From: |
KO Myung-Hun |
Subject: |
Re: [PATCH] save_cwd: save/restore all CWDs of each drive on EMX |
Date: |
Tue, 16 Dec 2014 14:18:31 +0900 |
User-agent: |
Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.6esrpre) Gecko/20120715 Firefox/10.0.6esrpre SeaMonkey/2.7.2 |
KO Myung-Hun wrote:
> On OS/2, there are maximum 26 CWDs, one CWD per drive[A to Z]. So
> it is needed to save and restore all of them as well as a CWD of a
> current drive.
>
> For examples,
>
> 1. CWD is C:\CWD
> 2. Call save_cwd()
> 3. Change drive to drive D: whose CWD was D:\
> 4. Change directory to D:\CWD
> 5. Now, CWD is D:\CWD
> 6. Call restore_cwd()
> 7. Now CWD is C:\CWD. But CWD of drive D: is still D:\CWD not D:\.
>
> * lib/save-cwd.c (save_cwd): Save all CWDs of each drive.
> (restore_cwd): Restore all CWDs of each drive.
> (free_cwd): Free allocated name_with_drvie.
> * lib/save-cwd.h (struct save_cwd): Add current_drive and
> name_with_drive member.
Updated to suppress hard error pop-ups.
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
0001-save_cwd-save-restore-all-CWDs-of-each-drive-on-EMX.patch
Description: Text document