ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/sys_unix.cpp
Revision 1.35 - (view) (annotate) - [select for diffs]
2012-03-01T04:24:45Z (12 years, 4 months ago) by asvitkine
Branch: MAIN
CVS Tags: HEAD
Changes since 1.34: +1 -1 lines
Diff to previous 1.34
fix a warning

Revision 1.34 - (view) (annotate) - [select for diffs]
2012-03-01T04:22:27Z (12 years, 4 months ago) by asvitkine
Branch: MAIN
Changes since 1.33: +54 -54 lines
Diff to previous 1.33
rename file_handle to mac_file_handle since file_handle is defined in system headers on some systems

Revision 1.33 - (view) (annotate) - [select for diffs]
2010-10-19T03:21:52Z (13 years, 9 months ago) by asvitkine
Branch: MAIN
Changes since 1.32: +100 -69 lines
Diff to previous 1.32
[Geoffrey Brown]
For my work on digital preservation it's important to have "golden"
disk images that are not corrupted by user action.  In order to enable
this, I've added support for VHD virtual disks (especially snapshots !)
to the Linux and OS X versions of BasiliskII and SheepShaver.

The support uses the open source libvhd library which is part of xen,
available here:
  http://www.xen.org/products/xen_source.html

The piece that's needed is libvhd which is in tools/blktap2 and it can
be separately compiled.
The vhd-util enables creation of vhd disks and snapshots.

Compiling libvhd for OS X is non-trivial and required  1) a new config
and 2) a number of small changes to the include files and c files.
Compiling for linux is a snap.

I use this as follows.

1) create my "golden image"  gold.dsk in the usual way
2) create a snapshot:  vhd-util snapshot -n gold.vhd -p gold.dsk -m
3) use the snapshot in my prefs file

In my work the golden images are in an AFS system which means the golden
images can reside at "universal" addresses.   The snapshots are initially
tiny, so a complete virtual machine configuration -- prefs + snapshot is
quick to download for the end user.

The snapshots are copy on write which has the pleasant side effect of
letting the end user keep any changes.

Revision 1.32 - (view) (annotate) - [select for diffs]
2010-10-06T00:30:23Z (13 years, 9 months ago) by asvitkine
Branch: MAIN
Changes since 1.31: +109 -6 lines
Diff to previous 1.31
[Geoffrey Brown]

Add bin/cue support. The following should work:

1) Basilisk and SheepShaver with sdl-audio and bincue on linux and os x
2) SheepShaver with bincue and core audio on os x

Revision 1.31 - (view) (annotate) - [select for diffs]
2010-02-21T09:58:00Z (14 years, 5 months ago) by cebix
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30
fixed missing INT_MAX

Revision 1.30 - (view) (annotate) - [select for diffs]
2008-01-01T09:40:33Z (16 years, 6 months ago) by gbeauche
Branch: MAIN
Changes since 1.29: +1 -1 lines
Diff to previous 1.29
Happy New Year!

Revision 1.29 - (view) (annotate) - [select for diffs]
2006-05-08T12:15:58Z (18 years, 2 months ago) by gbeauche
Branch: MAIN
CVS Tags: nigel-build-19
Changes since 1.28: +273 -75 lines
Diff to previous 1.28
Rewrite MacOS X CD-ROM support.

Other bugs fixed:
- CD-ROM media are polled and now can be changed without rebooting
- Buffer overflow, memory leak and extra wait in CD-ROM ejection code

Revision 1.28 - (view) (annotate) - [select for diffs]
2005-11-24T17:23:43Z (18 years, 8 months ago) by cebix
Branch: MAIN
CVS Tags: nigel-build-17
Changes since 1.27: +19 -12 lines
Diff to previous 1.27
ignore floppy device open fail in Sys_open() so the floppy drive will be
operative even if no disk was inserted at startup

Revision 1.27 - (view) (annotate) - [select for diffs]
2005-11-24T17:02:59Z (18 years, 8 months ago) by cebix
Branch: MAIN
Changes since 1.26: +12 -14 lines
Diff to previous 1.26
modernized Linux floppy detection

Revision 1.26 - (view) (annotate) - [select for diffs]
2005-08-01T05:23:02Z (18 years, 11 months ago) by gbeauche
Branch: MAIN
Changes since 1.25: +0 -31 lines
Diff to previous 1.25
Drop the old _llseek() hack. That was causing problems and we "now" use the
right approach with LFS for a few years now.

Revision 1.25 - (view) (annotate) - [select for diffs]
2005-07-10T16:42:04Z (19 years ago) by gbeauche
Branch: MAIN
Changes since 1.24: +4 -4 lines
Diff to previous 1.24
sys_darwin.cpp depends on CoreFoundation stuff, disable it for OpenDarwin

Revision 1.24 - (view) (annotate) - [select for diffs]
2005-01-30T21:42:14Z (19 years, 5 months ago) by gbeauche
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23
Happy New Year!

Revision 1.23 - (view) (annotate) - [select for diffs]
2004-06-27T22:06:02Z (20 years ago) by gbeauche
Branch: MAIN
Changes since 1.22: +7 -3 lines
Diff to previous 1.22
Add configure macros to check for -framework Carbon & -framework IOKit so
that we choose to include ../MacOSX/clip_macosx.cpp, sys_darwin.cpp or not.

Revision 1.22 - (view) (annotate) - [select for diffs]
2004-01-26T11:08:52Z (20 years, 6 months ago) by nigel
Branch: MAIN
CVS Tags: nigel-build-15, nigel-build-16
Changes since 1.21: +25 -17 lines
Diff to previous 1.21
Tidy up Aqua/Darwin specific code

Revision 1.21 - (view) (annotate) - [select for diffs]
2004-01-12T15:29:25Z (20 years, 6 months ago) by cebix
Branch: MAIN
Changes since 1.20: +1 -1 lines
Diff to previous 1.20
Happy New Year! :)

Revision 1.20 - (view) (annotate) - [select for diffs]
2003-10-12T21:55:44Z (20 years, 9 months ago) by gbeauche
Branch: MAIN
Changes since 1.19: +11 -1 lines
Diff to previous 1.19
Add hacks to disable "floppy" & "serial[ab]" entries that would cause
Basilisk II to hang on MacOS X as an X11 build. I am not sure this is
supposed to work in an Aqua build so I leave that enable there, assuming
<AvailabilityMacros.h> is included somehow, thus defining MAC_OS_X_VERSION_*
and friends.

Revision 1.19 - (view) (annotate) - [select for diffs]
2003-03-21T07:03:05Z (21 years, 4 months ago) by nigel
Branch: MAIN
CVS Tags: nigel-build-12, nigel-build-13
Changes since 1.18: +99 -1 lines
Diff to previous 1.18
Darwin-specific prefs and initial CD code. Since some of the CD code is just too weird to include here, I just call extern functions which I currently implement in a file sys_darwin.cpp

Revision 1.18 - (view) (annotate) - [select for diffs]
2002-04-28T14:06:17Z (22 years, 3 months ago) by cebix
Branch: MAIN
Changes since 1.17: +1 -3 lines
Diff to previous 1.17
default CD-ROM drive is /dev/cd0c on NetBSD

Revision 1.17 - (view) (annotate) - [select for diffs]
2002-03-29T16:24:18Z (22 years, 3 months ago) by gbeauche
Branch: MAIN
Changes since 1.16: +6 -8 lines
Diff to previous 1.16
- Clarified test of access() return value
- s/strcpy/sprintf/ for cd_dev concatenation
- Statically allocate fd_dev[] and cd_dev[]
Better testing is yet to be done

Revision 1.16 - (view) (annotate) - [select for diffs]
2002-03-27T20:11:12Z (22 years, 4 months ago) by cebix
Branch: MAIN
Changes since 1.15: +43 -5 lines
Diff to previous 1.15
support for Linux devfs

Revision 1.15 - (view) (annotate) - [select for diffs]
2002-03-20T19:03:41Z (22 years, 4 months ago) by cebix
Branch: MAIN
Changes since 1.14: +12 -0 lines
Diff to previous 1.14
added missing return values

Revision 1.14 - (view) (annotate) - [select for diffs]
2002-02-23T17:54:24Z (22 years, 5 months ago) by cebix
Branch: MAIN
Changes since 1.13: +10 -4 lines
Diff to previous 1.13
fixed floppy disk change detection problems under Linux

Revision 1.13 - (view) (annotate) - [select for diffs]
2002-02-22T17:48:31Z (22 years, 5 months ago) by cebix
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12
- default floppy device under Linux is now /dev/fd?u1440 because /dev/fd?H1440
  is deprecated

Revision 1.12 - (view) (annotate) - [select for diffs]
2002-02-07T16:10:55Z (22 years, 5 months ago) by cebix
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11
cleaned up pthread attributes [Brian Johnson]

Revision 1.11 - (view) (annotate) - [select for diffs]
2002-01-15T14:58:37Z (22 years, 6 months ago) by cebix
Branch: MAIN
CVS Tags: snapshot-15012002
Changes since 1.10: +1 -1 lines
Diff to previous 1.10
- documentation updates
- 2001 -> 2002
- version 0.9 -> 1.0

Revision 1.10 - (view) (annotate) - [select for diffs]
2001-07-31T14:10:35Z (22 years, 11 months ago) by cebix
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9
fstab parsing ignores comment lines

Revision 1.9 - (view) (annotate) - [select for diffs]
2001-02-02T20:52:58Z (23 years, 5 months ago) by cebix
Branch: MAIN
CVS Tags: release-0_9-1, snapshot-17022001, snapshot-29052001
Changes since 1.8: +1 -1 lines
Diff to previous 1.8
- bumped version number to 0.9
- updated copyright dates

Revision 1.8 - (view) (annotate) - [select for diffs]
2000-07-24T20:39:34Z (24 years ago) by cebix
Branch: MAIN
Changes since 1.7: +12 -1 lines
Diff to previous 1.7
- CD-ROM under Linux only worked when a CD was in the drive when B2 was
  started
- Unix/main_unix.cpp: 1Hz interrupt wasn't triggered

Revision 1.7 - (view) (annotate) - [select for diffs]
2000-04-10T18:53:07Z (24 years, 3 months ago) by cebix
Branch: MAIN
CVS Tags: snapshot-13072000
Changes since 1.6: +1 -1 lines
Diff to previous 1.6
- updated copyright info: 1999->2000

Revision 1.6 - (view) (annotate) - [select for diffs]
2000-02-21T20:04:17Z (24 years, 5 months ago) by cebix
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5
- Unix: changed time zone handling (again)

Revision 1.5 - (view) (annotate) - [select for diffs]
1999-10-31T23:18:37Z (24 years, 8 months ago) by cebix
Branch: MAIN
CVS Tags: release-0_8-1, snapshot-02111999, snapshot-22121999
Changes since 1.4: +6 -3 lines
Diff to previous 1.4
- removed MemoryDispatch() replacement; routine from ROM is now used if
  possible
- rom_patches.cpp: check for double PACK 4 resources; if only one is found,
  assume that the ROM requires an FPU and issue a warning if FPU emulation
  is turned off
- UAE CPU opcode routines no longer return the cycle count
- main_unix.cpp: pressing Ctrl-C dumps the UAE CPU state before entering mon
- sys_unix.cpp: under Linux, partition sizes are read with BLKGETSIZE instead
  of llseek()

Revision 1.4 - (view) (annotate) - [select for diffs]
1999-10-15T14:50:38Z (24 years, 9 months ago) by cebix
Branch: MAIN
CVS Tags: snapshot-21101999
Changes since 1.3: +28 -2 lines
Diff to previous 1.3
- some fixes for NetBSD

Revision 1.3 - (view) (annotate) - [select for diffs]
1999-10-14T11:37:47Z (24 years, 9 months ago) by cebix
Branch: MAIN
Changes since 1.2: +32 -22 lines
Diff to previous 1.2
- integrated patches for NetBSD

Revision 1.2 - (view) (annotate) - [select for diffs]
1999-10-03T17:45:08Z (24 years, 9 months ago) by cebix
Branch: MAIN
CVS Tags: release-0_7-2
Changes since 1.1: +1 -1 lines
Diff to previous 1.1
- sys_unix.cpp: changed one #ifdef that should really have been an #if
- Makefile.in: provided uninstall target

Revision 1.1 - (view) (annotate) - [select for diffs]
1999-10-03T14:16:25Z (24 years, 9 months ago) by cebix
Branch: MAIN
Branch point for: cebix
Initial revision

Convenience Links

Links to HEAD: (view) (annotate) Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a