Project

General

Profile

Actions

Feature #2426

closed

lighty on minix

Added by awelzel over 12 years ago. Updated about 9 years ago.

Status:
Invalid
Priority:
Normal
Category:
-
Target version:
-
ASK QUESTIONS IN Forums:

Description

hi,

lighty does not compile on minix currently. the attached patches show some of the changes needed.

basically:

1) add setrlimit to AC_CHECK_FUNCS as minix has no support for setrlimit()
2) In addition to HAVE_GETRLIMIT check HAVE_SETRLIMIT for code including both, getrlimit() and setrlimit()
3) mmap() on minix can't map files, change stream.c to load the whole file into a buffer if neither
mmap() is there, nor __WIN32 is set.
4) same defines for minix in sys-mmap.h as for __WIN32, but skip windows.h, obviously.

#ifdef __minix is only used in sys-mmap.h, so if minix comes to the point to mmap() files, this would be the only file that needs to be changed.
there are probably other ways to add support, so take the patches as an idea of what is needed to support minix.

thanks,
arne


Files

patch-configure.ac (521 Bytes) patch-configure.ac awelzel, 2012-07-31 13:10
patch-src_server.c (922 Bytes) patch-src_server.c awelzel, 2012-07-31 13:10
patch-src_stream.c (1.86 KB) patch-src_stream.c awelzel, 2012-07-31 13:10
patch-src_sys-mmap.h (408 Bytes) patch-src_sys-mmap.h awelzel, 2012-07-31 13:10
Actions #1

Updated by gstrauss about 9 years ago

A quick glance at https://github.com/minix3/minix and it appears to have implementations for mmap() and setrlimit() (even though the setrlimit() implementation is a do-nothing stub)

Is this RFE still relevant? It probably can be closed.

Actions #2

Updated by awelzel about 9 years ago

Hi,

gstrauss wrote:

A quick glance at https://github.com/minix3/minix and it appears to have implementations for mmap() and setrlimit() (even though the setrlimit() implementation is a do-nothing stub)

Is this RFE still relevant? It probably can be closed.

the Internet never forgets...

There have been many changes to Minix since this ticket was created - including memory mapped files and maybe setrlimit(). This issue is likely irrelevant these days.

Thanks,
Arne

Actions #3

Updated by stbuehler about 9 years ago

  • Status changed from New to Invalid
Actions

Also available in: Atom