linux_sysvec.c (5f77b8a88b5e22cb5068f2e8d3ab3518634b1f45) | linux_sysvec.c (cbf7e0cba7d47c20c73122e8dbefb98bf89fedad) |
---|---|
1/*- 2 * Copyright (c) 2013 Dmitry Chagin 3 * Copyright (c) 2004 Tim J. Robbins 4 * Copyright (c) 2003 Peter Wemm 5 * Copyright (c) 2002 Doug Rabson 6 * Copyright (c) 1998-1999 Andrew Gallatin 7 * Copyright (c) 1994-1996 Søren Schmidt 8 * All rights reserved. --- 269 unchanged lines hidden (view full) --- 278 AUXARGS_ENTRY(pos, LINUX_AT_RANDOM, imgp->canary); 279 if (imgp->execpathp != 0) 280 AUXARGS_ENTRY(pos, LINUX_AT_EXECFN, imgp->execpathp); 281 if (args->execfd != -1) 282 AUXARGS_ENTRY(pos, AT_EXECFD, args->execfd); 283 AUXARGS_ENTRY(pos, AT_NULL, 0); 284 free(imgp->auxargs, M_TEMP); 285 imgp->auxargs = NULL; | 1/*- 2 * Copyright (c) 2013 Dmitry Chagin 3 * Copyright (c) 2004 Tim J. Robbins 4 * Copyright (c) 2003 Peter Wemm 5 * Copyright (c) 2002 Doug Rabson 6 * Copyright (c) 1998-1999 Andrew Gallatin 7 * Copyright (c) 1994-1996 Søren Schmidt 8 * All rights reserved. --- 269 unchanged lines hidden (view full) --- 278 AUXARGS_ENTRY(pos, LINUX_AT_RANDOM, imgp->canary); 279 if (imgp->execpathp != 0) 280 AUXARGS_ENTRY(pos, LINUX_AT_EXECFN, imgp->execpathp); 281 if (args->execfd != -1) 282 AUXARGS_ENTRY(pos, AT_EXECFD, args->execfd); 283 AUXARGS_ENTRY(pos, AT_NULL, 0); 284 free(imgp->auxargs, M_TEMP); 285 imgp->auxargs = NULL; |
286 KASSERT((pos - argarray) / sizeof(*pos) <= LINUX_AT_COUNT, 287 ("Too many auxargs")); | 286 KASSERT(pos - argarray <= LINUX_AT_COUNT, ("Too many auxargs")); |
288 289 error = copyout(argarray, auxbase, sizeof(*argarray) * LINUX_AT_COUNT); 290 free(argarray, M_TEMP); 291 if (error != 0) 292 return (error); 293 294 base--; 295 if (suword(base, (uint64_t)imgp->args->argc) == -1) --- 627 unchanged lines hidden --- | 287 288 error = copyout(argarray, auxbase, sizeof(*argarray) * LINUX_AT_COUNT); 289 free(argarray, M_TEMP); 290 if (error != 0) 291 return (error); 292 293 base--; 294 if (suword(base, (uint64_t)imgp->args->argc) == -1) --- 627 unchanged lines hidden --- |