kern_prot.c (30cf3ac4607f4337a1f63e302ba50179ca6c82d4) | kern_prot.c (53490b7634976ae8ac98e55a64264eaec4276d0c) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_prot.c 8.6 (Berkeley) 1/21/94 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_prot.c 8.6 (Berkeley) 1/21/94 |
39 * $Id: kern_prot.c,v 1.24 1997/03/03 10:15:48 ache Exp $ | 39 * $Id: kern_prot.c,v 1.25 1997/03/03 22:46:16 ache Exp $ |
40 */ 41 42/* 43 * System calls related to processes and protection 44 */ 45 46#include <sys/param.h> 47#include <sys/acct.h> --- 609 unchanged lines hidden (view full) --- 657int 658getlogin(p, uap, retval) 659 struct proc *p; 660 struct getlogin_args *uap; 661 int *retval; 662{ 663 664 if (uap->namelen > MAXLOGNAME) | 40 */ 41 42/* 43 * System calls related to processes and protection 44 */ 45 46#include <sys/param.h> 47#include <sys/acct.h> --- 609 unchanged lines hidden (view full) --- 657int 658getlogin(p, uap, retval) 659 struct proc *p; 660 struct getlogin_args *uap; 661 int *retval; 662{ 663 664 if (uap->namelen > MAXLOGNAME) |
665 uap->namelen = MAXLOGNAME); | 665 uap->namelen = MAXLOGNAME; |
666 return (copyout((caddr_t) p->p_pgrp->pg_session->s_login, 667 (caddr_t) uap->namebuf, uap->namelen)); 668} 669 670/* 671 * Set login name. 672 */ 673#ifndef _SYS_SYSPROTO_H_ --- 25 unchanged lines hidden --- | 666 return (copyout((caddr_t) p->p_pgrp->pg_session->s_login, 667 (caddr_t) uap->namebuf, uap->namelen)); 668} 669 670/* 671 * Set login name. 672 */ 673#ifndef _SYS_SYSPROTO_H_ --- 25 unchanged lines hidden --- |