Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys - Adjust function signatures



details:   https://anonhg.NetBSD.org/src/rev/26f018b365fc
branches:  trunk
changeset: 454394:26f018b365fc
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Sep 15 20:26:27 2019 +0000

description:
- Adjust function signatures
- whitespace

diffstat:

 sys/sys/exec.h |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 50c8a4021d19 -r 26f018b365fc sys/sys/exec.h
--- a/sys/sys/exec.h    Sun Sep 15 20:25:48 2019 +0000
+++ b/sys/sys/exec.h    Sun Sep 15 20:26:27 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec.h,v 1.154 2019/01/27 02:08:50 pgoyette Exp $      */
+/*     $NetBSD: exec.h,v 1.155 2019/09/15 20:26:27 christos Exp $      */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -188,7 +188,8 @@
 
 struct exec_package {
        const char *ep_kname;           /* kernel-side copy of file's name */
-       char *ep_resolvedname;          /* fully resolved path from namei */
+       char    *ep_resolvedname;       /* fully resolved path from namei */
+       int     ep_xfd;                 /* fexecve file descriptor */
        void    *ep_hdr;                /* file's exec header */
        u_int   ep_hdrlen;              /* length of ep_hdr */
        u_int   ep_hdrvalid;            /* bytes of ep_hdr that are valid */
@@ -268,7 +269,7 @@
 int    check_veriexec          (struct lwp *, struct vnode *,
                                     struct exec_package *, int);
 int    check_exec              (struct lwp *, struct exec_package *,
-                                    struct pathbuf *);
+                                    struct pathbuf *, char **);
 int    exec_init               (int);
 int    exec_read_from          (struct lwp *, struct vnode *, u_long off,
                                    void *, size_t);
@@ -301,7 +302,7 @@
        new_vmcmd(evsp,lwp,len,addr,vp,offset,prot,flags)
 
 typedef        int (*execve_fetch_element_t)(char * const *, size_t, char **);
-int    execve1(struct lwp *, const char *, char * const *, char * const *,
+int    execve1(struct lwp *, const char *, int, char * const *, char * const *,
     execve_fetch_element_t);
 
 struct posix_spawn_file_actions;



Home | Main Index | Thread Index | Old Index