freebsd.so

来自「berkeley db 4.6.21的源码。berkeley db是一个简单的数」· SO 代码 · 共 69 行

SO
69
字号
m4_comment([$Id: freebsd.so,v 11.18 2003/04/01 17:21:45 bostic Exp $])m4_ref_title(Building m4_db for UNIX/POSIX systems,    FreeBSD, @FreeBSD, build_unix/aix, build_unix/hpux)m4_nlistbeginm4_nlist([dnlm4_bold([I can't compile and run multithreaded applications.])m4_p([dnlSpecial compile-time flags are required when compiling threadedapplications on FreeBSD.  If you are compiling a threaded application,you must compile with the _THREAD_SAFE and -pthread flags:])m4_indent([cc -D_THREAD_SAFE -pthread ...])m4_p([dnlThe m4_db library will automatically build with the correct options.])])m4_hlm4_nlist([dnlm4_bold([I get occasional failures when running RPC-based programs underFreeBSD clients.])m4_p([dnlThere is a known bug in the XDR implementation in the FreeBSD C libraryfrom version 2.2 up to version 4.0-RELEASE, that causes certain-sizedmessages to fail and return a zero-filled reply to the client.  A bugreport (#16028) has been filed with FreeBSD.  The following patch is theFreeBSD fix:])m4_indent([dnl*** /usr/src/lib/libc/xdr/xdr_rec.c.orig	Mon Jan 10 10:20:42 2000--- /usr/src/lib/libc/xdr/xdr_rec.c	Wed Jan 19 10:53:45 2000****************** 558,564 ****  	 * but we don't have any way to be certain that they aren't  	 * what the client actually intended to send us.  	 */! 	if ((header & (~LAST_FRAG)) == 0)  		return(FALSE);  	rstrm-__GT__fbtbc = header & (~LAST_FRAG);  	return (TRUE);--- 558,564 ----  	 * but we don't have any way to be certain that they aren't  	 * what the client actually intended to send us.  	 */! 	if (header == 0)  		return(FALSE);  	rstrm-__GT__fbtbc = header & (~LAST_FRAG);  	return (TRUE);])])m4_hlm4_nlist([dnlm4_bold([I see fsync and close system call failures when accessingdatabases or log files on NFS-mounted filesystems.])m4_p([dnlSome FreeBSD releases are known to return ENOLCK from fsync and closecalls on NFS-mounted filesystems, even though the call has succeeded.The m4_db code should be modified to ignore ENOLCK errors, or no m4_dbfiles should be placed on NFS-mounted filesystems on these systems.])])m4_nlistendm4_page_footer

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?