From f75259c44cb21b0fee7b8f0166b279389ef9bc47 Mon Sep 17 00:00:00 2001 From: Robert Millan Date: Sat, 5 Oct 2002 14:06:45 +0000 Subject: none --- Distrib/PortingIssues.mdwn | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) (limited to 'Distrib') diff --git a/Distrib/PortingIssues.mdwn b/Distrib/PortingIssues.mdwn index 2688ac17..2e0a1a46 100644 --- a/Distrib/PortingIssues.mdwn +++ b/Distrib/PortingIssues.mdwn @@ -6,9 +6,9 @@ This is a recompilation of common porting problems and their solutions. Information is gathered from the following sources: -[Debian Hurd port guidelines](http://www.debian.org/ports/hurd/hurd-devel-debian/) +[Debian GNU/Hurd port guidelines](http://www.debian.org/ports/hurd/hurd-devel-debian/) -[James Morrison's Hurd pages](http://hurd.dyndns.org/) +[James Morrison's GNU/Hurd pages](http://hurd.dyndns.org/) as well as other misc. sources. @@ -16,7 +16,7 @@ First of all, see [BtsFiling](http://www.vmlinux.org/twikihttp://LOCATIONHurd/Bt ## Missing pthreads -You can try out Neal Walfields implementation of libpthreads. It will server as our pthreads library until "the one pthreads that will rule them all" in [[GLibC]] has nativ support in the Hurd. Quote is from the mailing lists by Roland [[McGrath]]. +You can try out Neal Walfields implementation of libpthreads. It will server as our pthreads library until "the one pthreads that will rule them all" in [[GLibC]] has native support on the Hurd. Quote is from the mailing lists by Roland [[McGrath]]. Neal's lastest tar balls of libpthreads is available at: @@ -36,15 +36,15 @@ Every unconditionalized use of PATH\_MAX is a POSIX incompatibility. If there is ## MAX\_PATH -see PATH\_MAX +same as PATH\_MAX -## MAXHOSTNAMELEN +## MAXPATHLEN -see PATH\_MAX +same as PATH\_MAX -## MAXPATHLEN +## MAXHOSTNAMELEN -see PATH\_MAX +same as PATH\_MAX. Neal's [xgethostname function](http://ftp.walfield.org/pub/people/neal/xgethostname/) can help. ## NOFILE @@ -56,7 +56,7 @@ If you need to include specific code for the Hurd using #if...#endif, then you c ## sys\_errlist[] vs. strerror() -If a program has only support for sys\_errlist[] you will have to do some work to make it compile on the Hurd, which has dropped support for it and does only provide strerror(). Steinar Hamre writes about strerror(): +If a program has only support for sys\_errlist[] you will have to do some work to make it compile on GNU, which has dropped support for it and does only provide strerror(). Steinar Hamre writes about strerror(): strerror() should be used because: @@ -95,12 +95,24 @@ You can for example look in the latest fileutils (the above is a simplified vers Of course, if you don't care about broken systems (like MS-DOG) not supporting strerror() you can just replace sys\_errlist[] directly (upstream might not accept your patch, but debian should have no problem) -\* Filenames ending in a slash \`/' +## Filenames ending in a slash \`/' + +Those are evil if they don't exist and you want to name a directory this way. For example, mkdir foobar/ will not work on GNU. This is POSIX compatible. POSIX says that the path of a directory may have slashes appended to it. But the directory does not exist yet, so the path does not refer to a directory, and hence trailing slashes are not guaranteed to work. Just drop the slashes, and you're fine. -Those are evil if they don't exist and you want to name a directory this way. For example, mkdir foobar/ will not work on the Hurd. This is POSIX compatible. POSIX says that the path of a directory may have slashes appended to it. But the directory does not exist yet, so the path does not refer to a directory, and hence trailing slashes are not guaranteed to work. Just drop the slashes, and you're fine. +## Missing termio.h + +Change it to use termios.h (check for it properly with autoconf HAVE\_TERMIOS\_H or the **_GLIBC_** macro) + +## AC\_HEADER\_TERMIO + +The autoconf check for AC\_HEADER\_TERMIO tryes to check tfor termios, but it's only really checking for termio in termios.h. It is better to use AC\_CHECK\_HEADERS(termio.h termios.h) -- [[Main/RobertMillan]] - 22 Jul 2002 Formatting and minor grammatical fixes. -- [[Main/JoachimNilsson]] - 09 Sep 2002 + +Added more examples and misc semantical fixes. + +-- [[Main/RobertMillan]] - 05 Oct 2002 -- cgit v1.2.3