Path: utzoo!utgpu!attcan!uunet!mcvax!hp4nl!philmds!prle!cstw01!meulenbr From: meulenbr@cstw01.UUCP (Frans Meulenbroeks) Newsgroups: comp.os.minix Subject: Minix/ST problems. Message-ID: <249@cstw01.UUCP> Date: 21 Oct 88 08:47:19 GMT Reply-To: meulenbr@cst.UUCP () Organization: Centre for Software Technology, Philips Eindhoven Lines: 24 Hi! I've encountered a number of problems using Minix/ST . The major problem is that it defines NULL as 0. This is a killer on an ST since sizeof(char *) == 32 and sizeof(int) == 16. Solution: change the 0 in (char *)0 Some other problems are encountered when a program tries to access the private part of a FILE struct (e.g. the count field, which is normally called cnt), or when someone refers to _iob (which is _io_table on Minix). I have a quick and dirty fix using defines, which fixes most of these problems. The question is: should I post it (is there interest), and can I post it (context diffs will be greater than the complete file; however, I'm also a little reluctant to post the complete file without permission of Dr. Tanenbaum). A side note: don't expect that _doprintf uses the parameter order you're used to. It doesn't. Of course decent programs don't call _doprintf directly (but dirty ones like the curses lib do. -- Frans Meulenbroeks (meulenbr@cst.prl.philips.nl) Centre for Software Technology ( or try: ...!mcvax!philmds!prle!cst!meulenbr)