📄 readme
字号:
The file system.c included herein is taken directly from Apple's Darwinopen-source CVS archives, and is redistributed under the BSD copyrightnotice it bears. (According to Apple's CVS logs, their version isidentical to the FreeBSD original.) It provides our own implementation ofthe system(3) function, which ought by all rights to be identical to theone provided in libc on Darwin machines. Nonetheless, this version works,whereas the one that actually ships with Mac OS X 10.1 doesn't. Theshipped version appears to disconnect the calling process from any sharedmemory segments it is attached to. (The symptom seen in PostgreSQL isthat a backend attempting to execute CREATE DATABASE core-dumps.) I wouldlove to know why there is a discrepancy between the published source andthe actual behavior --- tgl 7-Nov-2001.Appropriate bug reports have been filed with Apple --- see Radar Bug#s 2767956, 2683531, 2805147. One hopes we can retire thiskluge in the not too distant future.As of PostgreSQL 7.3 and Mac OS X 10.1, one should expect warningslike these while linking the backend:/usr/bin/ld: warning unused multiple definitions of symbol _systemport/SUBSYS.o definition of _system in section (__TEXT,__text)/usr/lib/libm.dylib(system.o) unused definition of _systemThese are due to overriding system() per the above-described hack.The bug appears to be repaired in OS X 10.2.6 and later (possibly inearlier 10.2.* as well, but no systems handy to check). We #ifdef outthe substitute system() definition on 10.3 and later.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -