先决条件POSIX.12008specifiessetrlimit()和getrlimit()函数。为resource参数提供了各种常量,其中一些在下面复制以便更容易理解我的问题。Thefollowingresourcesaredefined:(...)RLIMIT_DATAThisisthemaximumsizeofadatasegmentoftheprocess,inbytes.Ifthislimitisexceeded,themalloc()functionshallfailwitherrnosetto[ENOMEM].(...)RLIMIT_STACKThisisthemaxi