Closed
Bug 72014
Opened 24 years ago
Closed 23 years ago
DBM temporary file problems on OS/2
Categories
(SeaMonkey :: General, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.2
People
(Reporter: nelson, Assigned: rrelyea)
References
Details
(Whiteboard: critical for 0.9.2)
Attachments
(5 files)
709 bytes,
patch
|
Details | Diff | Splinter Review | |
1005 bytes,
patch
|
Details | Diff | Splinter Review | |
1.74 KB,
patch
|
Details | Diff | Splinter Review | |
1.75 KB,
patch
|
Details | Diff | Splinter Review | |
1.96 KB,
patch
|
Details | Diff | Splinter Review |
Reporter | ||
Comment 1•24 years ago
|
||
Michael Kaply <mkaply@us.ibm.com> might be willing to work on this bug.
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
This seems to be the only necessary change. Please let me know if I
missed something (OS/2 does not have a TEMPORARY flag for open()).
Also, I liked your suggestion for rewriting gettemp. I just looked
and OS/2 contains several functions that create and manipulate
temporary files, which are deleted once the process ends. Are you
still thinking of doing this?
Comment 4•24 years ago
|
||
Adding myself to cc.
Assignee | ||
Comment 5•24 years ago
|
||
Is this change just to get OS/2 to compile? It seems that this will still leave
temparary files around (though that's what the old code did as well). If you
have an OS/2 specific function that can open a temp file which automatically
gets deleted on process end or on close that would be preferable.
Nelson do we need a superreview on this (because it's DBM code?).
bob
Comment 6•24 years ago
|
||
The OS/2 code compiles fine with the patches from 69753. This patch
is just to get the temp file opened as a binary, whereas it was
defaulting to text before.
I mentioned the temp file function because nelsonb had said something
about it in 69753. In order to use it, though, would require a
rewrite of mktemp.c.
Reporter | ||
Comment 7•24 years ago
|
||
Javier and I spoke today. As I understand it, OS/2 has a function
that takes no arguments and returns a FILE * for a temporary file
that is opened binary read/write, and that will disappear when the
program terminates. If it is possible to extract the fd from the
FILE, then it should be possible to rewrite the function
mkstempflags in mktemp.c to use this OS/2 function, ignoring the
input arguments. I recoomend that.
Comment 8•24 years ago
|
||
Comment 9•24 years ago
|
||
Ok, so ignore the first patch. This second patch include a rewrite of
mkstemp, which calls the tmpfile() function. The tmpfile() function
creates a temporary file which is deleted once the program has
finished executing. I also rewrote h_page.c to make use of this
function for os/2.
I still need to study if the filename is actually used. The function
tmpfile() does not return a filename. For this reason, I also need to
keep around mktemp and gettemp (which return filenames), because
mktemp is used in the jpeg code.
Comment 10•24 years ago
|
||
Comment 11•24 years ago
|
||
Created a better patch that bypasses most of open_temp() and just sets
the hash fd.
Comment 12•24 years ago
|
||
Assignee | ||
Comment 13•24 years ago
|
||
OK, Javier, I like the patch, are we ready for a superreview?
bob
Comment 14•24 years ago
|
||
yes, i think it's ready to go...
Comment 15•24 years ago
|
||
Who is the right sr for this?
Comment 16•24 years ago
|
||
sr=blizzard
Reporter | ||
Comment 17•23 years ago
|
||
Is this bug fixed now?
Comment 18•23 years ago
|
||
a= asa@mozilla.org for checkin to the trunk.
(on behalf of drivers)
Blocks: 83989
Comment 19•23 years ago
|
||
Just to clarify this is approved for 0.9.2 too.
Whiteboard: critical for 0.9.2
Updated•23 years ago
|
Target Milestone: 3.3 → 3.2.2
Comment 20•23 years ago
|
||
I checked in Javier's last patch on the trunk (edited
to imitate the existing coding style of the modified
files). Since the tree is supposed to branch for 0.9.2
tomorrow morning, this fix will be in 0.9.2 as well.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 21•23 years ago
|
||
Comment 22•23 years ago
|
||
I am changing the product to Browser because mozilla/dbm
is not part of NSS. I am setting target milestone to
mozilla0.9.2.
Component: Libraries → Browser-General
Product: NSS → Browser
Target Milestone: 3.2.2 → mozilla0.9.2
Version: 3.0 → other
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•