You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1665 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: David Brown
Version: 3.05 (CVS too)
OS: Linux
Submission from: 66-75-152-1.san.rr.com (66.75.152.1)
The function stat_aux in otherlibs/unix/stat.c has a GC problem when using 64
bit file offsets. The following patch seems to fix the problem.
Original bug ID: 1665
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: David Brown
Version: 3.05 (CVS too)
OS: Linux
Submission from: 66-75-152-1.san.rr.com (66.75.152.1)
The function stat_aux in otherlibs/unix/stat.c has a GC problem when using 64
bit file offsets. The following patch seems to fix the problem.
Index: stat.c
RCS file: /caml/ocaml/otherlibs/unix/stat.c,v
retrieving revision 1.14
diff -u -r1.14 stat.c
--- stat.c 2002/09/27 08:32:28 1.14
+++ stat.c 2003/05/01 04:40:26
@@ -48,11 +48,13 @@
{
value v;
value atime = Val_unit, mtime = Val_unit, ctime = Val_unit;
atime = copy_double((double) buf->st_atime);
mtime = copy_double((double) buf->st_mtime);
ctime = copy_double((double) buf->st_ctime);
v = alloc_small(12, 0);
Field (v, 0) = Val_int (buf->st_dev);
Field (v, 1) = Val_int (buf->st_ino);
@@ -63,8 +65,7 @@
Field (v, 5) = Val_int (buf->st_uid);
Field (v, 6) = Val_int (buf->st_gid);
Field (v, 7) = Val_int (buf->st_rdev);
Field (v, 9) = atime;
Field (v, 10) = mtime;
Field (v, 11) = ctime;
The text was updated successfully, but these errors were encountered: