mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 16:28:30 +00:00
Make improvements
- Add rusage to redbean Lua API - Add more redbean documentation - Add pledge() to redbean Lua API - Polyfill OpenBSD pledge() for Linux - Increase PATH_MAX limit to 1024 characters - Untrack sibling processes after fork() on Windows
This commit is contained in:
parent
9a6bd304a5
commit
47b3274665
212 changed files with 2251 additions and 834 deletions
|
@ -292,10 +292,8 @@ update_tzname_etc(struct state const *sp, struct ttinfo const *ttisp)
|
|||
#if HAVE_TZNAME
|
||||
tzname[ttisp->tt_isdst] = (char *) &sp->chars[ttisp->tt_desigidx];
|
||||
#endif
|
||||
#if USG_COMPAT
|
||||
if (!ttisp->tt_isdst)
|
||||
timezone = - ttisp->tt_utoff;
|
||||
#endif
|
||||
#if ALTZONE
|
||||
if (ttisp->tt_isdst)
|
||||
altzone = - ttisp->tt_utoff;
|
||||
|
@ -311,10 +309,8 @@ settzname(void)
|
|||
#if HAVE_TZNAME
|
||||
tzname[0] = tzname[1] = (char *) (sp ? wildabbr : gmt);
|
||||
#endif
|
||||
#if USG_COMPAT
|
||||
daylight = 0;
|
||||
timezone = 0;
|
||||
#endif
|
||||
#if ALTZONE
|
||||
altzone = 0;
|
||||
#endif
|
||||
|
@ -333,10 +329,8 @@ settzname(void)
|
|||
&sp->ttis[
|
||||
sp->types[i]];
|
||||
update_tzname_etc(sp, ttisp);
|
||||
#if USG_COMPAT
|
||||
if (ttisp->tt_isdst)
|
||||
daylight = 1;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue