syscall.c (f46a6804135795f77d096ab0128f27531c7d051c) syscall.c (c7887325230aec47d47a32562a6e26014a0fafca)
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1995, 1996, 1997, 2000, 2001, 05 by Ralf Baechle
7 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
8 * Copyright (C) 2001 MIPS Technologies, Inc.

--- 240 unchanged lines hidden (view full) ---

249/*
250 * sys_execve() executes a new program.
251 */
252asmlinkage int sys_execve(nabi_no_regargs struct pt_regs regs)
253{
254 int error;
255 char * filename;
256
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1995, 1996, 1997, 2000, 2001, 05 by Ralf Baechle
7 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
8 * Copyright (C) 2001 MIPS Technologies, Inc.

--- 240 unchanged lines hidden (view full) ---

249/*
250 * sys_execve() executes a new program.
251 */
252asmlinkage int sys_execve(nabi_no_regargs struct pt_regs regs)
253{
254 int error;
255 char * filename;
256
257 filename = getname((char __user *) (long)regs.regs[4]);
257 filename = getname((const char __user *) (long)regs.regs[4]);
258 error = PTR_ERR(filename);
259 if (IS_ERR(filename))
260 goto out;
261 error = do_execve(filename, (char __user *__user *) (long)regs.regs[5],
262 (char __user *__user *) (long)regs.regs[6], &regs);
263 putname(filename);
264
265out:

--- 197 unchanged lines hidden ---
258 error = PTR_ERR(filename);
259 if (IS_ERR(filename))
260 goto out;
261 error = do_execve(filename, (char __user *__user *) (long)regs.regs[5],
262 (char __user *__user *) (long)regs.regs[6], &regs);
263 putname(filename);
264
265out:

--- 197 unchanged lines hidden ---