From 02c390b3f3e87988145ed3d6fd5c0fb806271073 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 8 Oct 2016 01:31:07 -0400 Subject: Fix jrp mmap MAP_ANON calls --- .bin/jrp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bin/jrp.c b/.bin/jrp.c index 7fffe83f..c156942b 100755 --- a/.bin/jrp.c +++ b/.bin/jrp.c @@ -188,10 +188,10 @@ static char *prompt(EditLine *el __attribute((unused))) { int main(int argc, char *argv[]) { page = getpagesize(); - code.base = mmap(0, page, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, 0, 0); + code.base = mmap(0, page, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); if (code.base == MAP_FAILED) err(EX_OSERR, "mmap"); - stack.base = mmap(0, page, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, 0, 0); + stack.base = mmap(0, page, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); if (stack.base == MAP_FAILED) err(EX_OSERR, "mmap"); stack.limit = stack.base + page / sizeof(value); stack.ptr = stack.limit - 1; -- cgit 1.4.1 609a121e442bb75100a61a43f0258'>refs log tree commit diff
path: root/unscoop.1 (unfollow)
Commit message (Expand)Author
2020-05-21Expand and clarify documentationJune McEnroe
2020-05-21Execute PAGER with the SHELLJune McEnroe
2020-05-21Automatically perform database migrations in litterboxJune McEnroe
2020-05-20Don't install rc scripts on other platformsJune McEnroe
2020-05-20Rewrite build and install like pounce 1.3June McEnroe
2020-05-20Update email addressesJune McEnroe
2020-04-23Call updateConsumer from handleError 1.2p1June McEnroe
2020-04-20Use . as ${LDLIBS.$@} separatorJune McEnroe
2020-04-05Error on invalid ISUPPORT values 1.2June McEnroe
2020-04-05Only set RCS on FreeBSDJune McEnroe
2020-04-05Log bans and unbansJune McEnroe
2020-04-05Parse mode types from ISUPPORTJune McEnroe
2020-04-05Add unscoop matchers for ban/unban eventsJune McEnroe
2020-04-05Check unscoop regexps with make testJune McEnroe
2020-04-05Add unscoop -n flag for checking regexpsJune McEnroe
2020-04-05Add Ban and Unban event typesJune McEnroe
2020-04-02Update styleJune McEnroe
2020-03-31Update unscoop catgirl matchersJune McEnroe
2020-03-31Fix writing verbose to stderrJune McEnroe
2020-03-02Include <>/-/* around nicks in scoop coloring 1.1June McEnroe
2020-03-02Replace .mk files with configure scriptJune McEnroe
2020-02-28Implement the causal.agency/consumer capabilityJune McEnroe
2020-02-22Include <>/-/* around nicks in coloringJune McEnroe
2020-02-22Use (almost) the full range of IRC colors for nicksJune McEnroe