189 |
SystemTime.tv_usec = newtime.tv_usec; |
SystemTime.tv_usec = newtime.tv_usec; |
190 |
} |
} |
191 |
|
|
192 |
|
/* setup_corefile() |
193 |
|
* |
194 |
|
* inputs - nothing |
195 |
|
* output - nothing |
196 |
|
* side effects - setups corefile to system limits. |
197 |
|
* -kre |
198 |
|
*/ |
199 |
|
void |
200 |
|
setup_corefile(void) |
201 |
|
{ |
202 |
|
#ifdef HAVE_SYS_RESOURCE_H |
203 |
|
struct rlimit rlim; /* resource limits */ |
204 |
|
|
205 |
|
/* Set corefilesize to maximum */ |
206 |
|
if (!getrlimit(RLIMIT_CORE, &rlim)) |
207 |
|
{ |
208 |
|
rlim.rlim_cur = rlim.rlim_max; |
209 |
|
setrlimit(RLIMIT_CORE, &rlim); |
210 |
|
} |
211 |
|
#endif |
212 |
|
} |
213 |
|
|
214 |
void |
void |
215 |
libio_init(int daemonn) |
libio_init(int daemonn) |
216 |
{ |
{ |