From: deraadt Date: Thu, 15 Jan 2015 23:59:09 +0000 (+0000) Subject: include and switch to use of LOGIN_NAME_MAX, making X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=71b119f3d80eae2d06f369dd4de107d0ecf715e0;p=openbsd include and switch to use of LOGIN_NAME_MAX, making this far more standalone. discussed with guenther ok millert --- diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 7a8937d17c2..72d684c5075 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.191 2014/11/16 05:42:21 guenther Exp $ */ +/* $OpenBSD: proc.h,v 1.192 2015/01/15 23:59:09 deraadt Exp $ */ /* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */ /*- @@ -42,6 +42,7 @@ #include /* Machine-dependent proc substruct. */ #include /* For struct selinfo */ +#include /* For LOGIN_NAME_MAX */ #include #include /* For struct timeout */ #include /* For struct klist */ @@ -62,7 +63,7 @@ struct session { struct process *s_leader; /* Session leader. */ struct vnode *s_ttyvp; /* Vnode of controlling terminal. */ struct tty *s_ttyp; /* Controlling terminal. */ - char s_login[MAXLOGNAME]; /* Setlogin() name. */ + char s_login[LOGIN_NAME_MAX]; /* Setlogin() name. */ }; /* @@ -89,7 +90,7 @@ struct emul { char e_name[8]; /* Symbolic name */ int *e_errno; /* Errno array */ /* Signal sending function */ - void (*e_sendsig)(sig_t, int, int, u_long, int, union sigval); + void (*e_sendsig)(void (*)(int), int, int, u_long, int, union sigval); int e_nosys; /* Offset of the nosys() syscall */ int e_nsysent; /* Number of system call entries */ struct sysent *e_sysent; /* System call array */