* bug fix: ATANH returned incorrect results on win32 (thanks to Pierre Mai)
* bug fix: SBCL works on Linux/ppc systems with a kernel configured to use
65k pages (thanks to David Woodhouse)
+ * bug fix: fix SB-POSIX dirent and socket on NetBSD (thanks to Richard Kreuter)
changes in sbcl-1.0.1 relative to sbcl-1.0:
* new platform: FreeBSD/x86-64, including support for threading.
(define-call "rename" int minusp (oldpath filename) (newpath filename))
(define-call* "rmdir" int minusp (pathname filename))
(define-call* "unlink" int minusp (pathname filename))
-(define-call "opendir" (* t) null-alien (pathname filename))
-(define-call ("readdir" :options :largefile) (* dirent)
+(define-call #-netbsd "opendir" #+netbsd "_opendir"
+ (* t) null-alien (pathname filename))
+(define-call (#-netbsd "readdir" #+netbsd "_readdir" :options :largefile)
+ (* dirent)
;; readdir() has the worst error convention in the world. It's just
;; too painful to support. (return is NULL _and_ errno "unchanged"
;; is not an error, it's EOF).
#include <sys/sysctl.h>
#include <string.h>
#include <sys/stat.h> /* For the stat-family wrappers. */
-
+#include <dirent.h> /* For the opendir()/readdir() wrappers */
+#include <sys/socket.h> /* For the socket() wrapper */
static void netbsd_init();
#endif /* __NetBSD__ */
}
}
-/* The stat() routines in NetBSD's C library are compatibility
- wrappers for some very old version of the stat buffer structure.
- Programs must be processed by the C toolchain in order to get an
- up-to-date definition of the stat() routine. These wrappers are
- used only in sb-posix, as of 2006-10-15. -- RMK */
-int _stat(const char *path, struct stat *sb) {
- return (stat(path, sb));
+/* Various routines in NetBSD's C library are compatibility wrappers
+ for old versions. Programs must be processed by the C toolchain in
+ order to get up-to-date definitions of such routines. */
+/* The stat-family, opendir, and readdir are used only in sb-posix, as
+ of 2007-01-16. -- RMK */
+int
+_stat(const char *path, struct stat *sb)
+{
+ return stat(path, sb);
}
-
-int _lstat(const char *path, struct stat *sb) {
- return (lstat(path, sb));
+int
+_lstat(const char *path, struct stat *sb)
+{
+ return lstat(path, sb);
}
-
-int _fstat(int fd, struct stat *sb) {
- return (fstat(fd, sb));
+int
+_fstat(int fd, struct stat *sb)
+{
+ return fstat(fd, sb);
}
+DIR *
+_opendir(const char *filename)
+{
+ return opendir(filename);
+}
+struct dirent *
+_readdir(DIR *dirp)
+{
+ return readdir(dirp);
+}
+/* Used in sb-bsd-sockets. */
+int
+_socket(int domain, int type, int protocol)
+{
+ return socket(domain, type, protocol);
+}
#endif /* __NetBSD__ */
#ifdef __FreeBSD__