| plan 9 kernel history: overview | file list | diff list |
1990/11211/port/sysproc.c (diff list | history)
| 1990/1009/sys/src/9/port/sysproc.c:183,189 – 1990/11211/sys/src/9/port/sysproc.c:183,189 (short | long | prev | next) | ||
| 1990/0227 | n = (*devtab[tc->type].read)(tc, &exec, sizeof(Exec)); if(n < 2) Err: | |
| 1990/11211 | error(Ebadexec); | |
| 1990/0227 | if(n==sizeof(Exec) && exec.magic==V_MAGIC){ if((exec.text&KZERO) || (ulong)exec.entry < UTZERO+sizeof(Exec) | |
| 1990/1009/sys/src/9/port/sysproc.c:223,229 – 1990/11211/sys/src/9/port/sysproc.c:223,229 | ||
| 1990/0227 | d = (t + exec.data) & ~(BY2PG-1); b = (t + exec.data + exec.bss + (BY2PG-1)) & ~(BY2PG-1); if((t|d|b) & KZERO) | |
| 1990/11211 | error(Ebadexec); | |
| 1990/0227 | /* * Args: pass 1: count | |
| 1990/1009/sys/src/9/port/sysproc.c:446,486 – 1990/11211/sys/src/9/port/sysproc.c:446,464 | ||
| 1990/0227 | } long | |
| 1990/11211 | sysdeath(ulong *arg) | |
| 1990/0227 | { | |
| 1990/11211 | pprint("deprecated system call"); pexit("Suicide", 0); | |
| 1990/0227 | } long syserrstr(ulong *arg) { | |
| 1990/11211 | validaddr(arg[0], ERRLEN, 1); memcpy((char*)arg[0], u->error, ERRLEN); | |
| 1990/0227 | return 0; } | |
| 1990/1009/sys/src/9/port/sysproc.c:515,521 – 1990/11211/sys/src/9/port/sysproc.c:493,499 | ||
| 1990/0227 | sysnoted(ulong *arg) { if(u->notified == 0) | |
| 1990/11211 | error(Egreg); | |
| 1990/0227 | return 0; } | |
| 1990/1009/sys/src/9/port/sysproc.c:526,531 – 1990/11211/sys/src/9/port/sysproc.c:504,509 | ||
| 1990/0227 | sysbrk_(ulong *arg) { if(segaddr(&u->p->seg[BSEG], u->p->seg[BSEG].minva, arg[0]) == 0) | |
| 1990/11211 | error(Esegaddr); | |
| 1990/0227 | return 0; } | |