The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Help with a Unix-ish project?
@ 2016-07-15 22:56 Warren Toomey
  2016-07-16  1:32 ` Random832
  0 siblings, 1 reply; 5+ messages in thread
From: Warren Toomey @ 2016-07-15 22:56 UTC (permalink / raw)


Hi all, I'm working on a Unix-related project, and I thought I'd ask if
anybody here might help.

There's a pared-down Unix-like system, xv6, which is inspired by 6th Edition
Unix and the Lions Commentary. Its purpose is to teach OS principles.
The website and book are here:
https://pdos.csail.mit.edu/6.828/2014/xv6.html
https://pdos.csail.mit.edu/6.828/2014/xv6/book-rev8.pdf

Unfortunately, while the kernel is nice, they don't provide much of
a run-time environment, so it feels too much of a toy to use. I had the
idea of porting a small set of libraries and commands over to get it to
the point where it feels a bit like 7th Edition.

I've made a start by using the Minix 2.0 libraries and commands, see
https://github.com/DoctorWkt/xv6-minix2 and the NOTES file. I now realise
that bringing up a libc plus associated commands will involve a fair bit of
work.

So, if anybody is interested in helping, let me know.

Thanks in advance, Warren


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [TUHS] Help with a Unix-ish project?
  2016-07-15 22:56 [TUHS] Help with a Unix-ish project? Warren Toomey
@ 2016-07-16  1:32 ` Random832
  2016-07-16  1:44   ` Warren Toomey
  0 siblings, 1 reply; 5+ messages in thread
From: Random832 @ 2016-07-16  1:32 UTC (permalink / raw)


On Fri, Jul 15, 2016, at 18:56, Warren Toomey wrote:
> Unfortunately, while the kernel is nice, they don't provide much of
> a run-time environment, so it feels too much of a toy to use. I had the
> idea of porting a small set of libraries and commands over to get it to
> the point where it feels a bit like 7th Edition.
> 
> I've made a start by using the Minix 2.0 libraries and commands, see
> https://github.com/DoctorWkt/xv6-minix2 and the NOTES file. I now realise
> that bringing up a libc plus associated commands will involve a fair bit
> of
> work.

https://github.com/DoctorWkt/xv6-minix2/commit/f6159743fd9d7dd13a1a4c2285a16629176931da

Wouldn't it be easier to simply change the xv6 stat structure itself,
and possibly the filesystem structure as well?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [TUHS] Help with a Unix-ish project?
  2016-07-16  1:32 ` Random832
@ 2016-07-16  1:44   ` Warren Toomey
  2016-07-16  1:56     ` Ronald Natalie
  2016-08-14  3:37     ` Random832
  0 siblings, 2 replies; 5+ messages in thread
From: Warren Toomey @ 2016-07-16  1:44 UTC (permalink / raw)


On Fri, Jul 15, 2016 at 09:32:42PM -0400, Random832 wrote:
> Wouldn't it be easier to simply change the xv6 stat structure itself,
> and possibly the filesystem structure as well?

Yes, but the xv6 book from MIT is something that I can't change, and I
want to keep their goals of a minimalist OS.

I've just committed a change where the syscall is now called _Fstat(),
and I've written a fstat() function to convert the minimal struct stat
into a more POSIX stat structure.

I don't want to use this list as the discussion area for the project.
I'll set another one up and we can move the conversation there.

Cheers, Warren


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [TUHS] Help with a Unix-ish project?
  2016-07-16  1:44   ` Warren Toomey
@ 2016-07-16  1:56     ` Ronald Natalie
  2016-08-14  3:37     ` Random832
  1 sibling, 0 replies; 5+ messages in thread
From: Ronald Natalie @ 2016-07-16  1:56 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

BRL modified our kernel to support both the V6 and V7 file systems.   Yes there were indeed two versions of stat with hacky-conversions between the two.
We already had the kludge of “JHU Ownership” which allowed the V6 systems to work in an instrucitonal situation with more than 256 users.
If your GID >=200, your “effective” uid was the combination of the UID and GID.


> On Jul 15, 2016, at 9:44 PM, Warren Toomey <wkt at tuhs.org> wrote:
> 
> On Fri, Jul 15, 2016 at 09:32:42PM -0400, Random832 wrote:
>> Wouldn't it be easier to simply change the xv6 stat structure itself,
>> and possibly the filesystem structure as well?
> 
> Yes, but the xv6 book from MIT is something that I can't change, and I
> want to keep their goals of a minimalist OS.
> 
> I've just committed a change where the syscall is now called _Fstat(),
> and I've written a fstat() function to convert the minimal struct stat
> into a more POSIX stat structure.
> 
> I don't want to use this list as the discussion area for the project.
> I'll set another one up and we can move the conversation there.
> 
> Cheers, Warren



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [TUHS] Help with a Unix-ish project?
  2016-07-16  1:44   ` Warren Toomey
  2016-07-16  1:56     ` Ronald Natalie
@ 2016-08-14  3:37     ` Random832
  1 sibling, 0 replies; 5+ messages in thread
From: Random832 @ 2016-08-14  3:37 UTC (permalink / raw)


On Fri, Jul 15, 2016, at 21:44, Warren Toomey wrote:
> I don't want to use this list as the discussion area for the project.
> I'll set another one up and we can move the conversation there.

Did this ever materialize?


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-14  3:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-15 22:56 [TUHS] Help with a Unix-ish project? Warren Toomey
2016-07-16  1:32 ` Random832
2016-07-16  1:44   ` Warren Toomey
2016-07-16  1:56     ` Ronald Natalie
2016-08-14  3:37     ` Random832

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).