From owner-svn-src-all@freebsd.org Mon Feb 5 18:58:56 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61766EE6FDC; Mon, 5 Feb 2018 18:58:56 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17F0983C02; Mon, 5 Feb 2018 18:58:56 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0E1344DBC; Mon, 5 Feb 2018 18:58:56 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w15Iwtci009736; Mon, 5 Feb 2018 18:58:55 GMT (envelope-from brooks@FreeBSD.org) Received: (from brooks@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w15IwtjP009735; Mon, 5 Feb 2018 18:58:55 GMT (envelope-from brooks@FreeBSD.org) Message-Id: <201802051858.w15IwtjP009735@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brooks set sender to brooks@FreeBSD.org using -f From: Brooks Davis Date: Mon, 5 Feb 2018 18:58:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328898 - head/sys/kern X-SVN-Group: head X-SVN-Commit-Author: brooks X-SVN-Commit-Paths: head/sys/kern X-SVN-Commit-Revision: 328898 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Feb 2018 18:58:56 -0000 Author: brooks Date: Mon Feb 5 18:58:55 2018 New Revision: 328898 URL: https://svnweb.freebsd.org/changeset/base/328898 Log: ANSIfy syscall implementations. Reviewed by: rwatson Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14172 Modified: head/sys/kern/vfs_extattr.c Modified: head/sys/kern/vfs_extattr.c ============================================================================== --- head/sys/kern/vfs_extattr.c Mon Feb 5 18:56:34 2018 (r328897) +++ head/sys/kern/vfs_extattr.c Mon Feb 5 18:58:55 2018 (r328898) @@ -56,16 +56,17 @@ __FBSDID("$FreeBSD$"); * * Currently this is used only by UFS1 extended attributes. */ +#ifndef _SYS_SYSPROTO_H_ +struct extattrctl_args { + const char *path; + int cmd; + const char *filename; + int attrnamespace; + const char *attrname; +}; +#endif int -sys_extattrctl(td, uap) - struct thread *td; - struct extattrctl_args /* { - const char *path; - int cmd; - const char *filename; - int attrnamespace; - const char *attrname; - } */ *uap; +sys_extattrctl(struct thread *td, struct extattrctl_args *uap) { struct vnode *filename_vp; struct nameidata nd; @@ -206,16 +207,17 @@ done: return (error); } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_set_fd_args { + int fd; + int attrnamespace; + const char *attrname; + void *data; + size_t nbytes; +}; +#endif int -sys_extattr_set_fd(td, uap) - struct thread *td; - struct extattr_set_fd_args /* { - int fd; - int attrnamespace; - const char *attrname; - void *data; - size_t nbytes; - } */ *uap; +sys_extattr_set_fd(struct thread *td, struct extattr_set_fd_args *uap) { struct file *fp; char attrname[EXTATTR_MAXNAMELEN]; @@ -241,16 +243,17 @@ sys_extattr_set_fd(td, uap) return (error); } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_set_file_args { + const char *path; + int attrnamespace; + const char *attrname; + void *data; + size_t nbytes; +}; +#endif int -sys_extattr_set_file(td, uap) - struct thread *td; - struct extattr_set_file_args /* { - const char *path; - int attrnamespace; - const char *attrname; - void *data; - size_t nbytes; - } */ *uap; +sys_extattr_set_file(struct thread *td, struct extattr_set_file_args *uap) { struct nameidata nd; char attrname[EXTATTR_MAXNAMELEN]; @@ -276,16 +279,17 @@ sys_extattr_set_file(td, uap) return (error); } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_set_link_args { + const char *path; + int attrnamespace; + const char *attrname; + void *data; + size_t nbytes; +}; +#endif int -sys_extattr_set_link(td, uap) - struct thread *td; - struct extattr_set_link_args /* { - const char *path; - int attrnamespace; - const char *attrname; - void *data; - size_t nbytes; - } */ *uap; +sys_extattr_set_link(struct thread *td, struct extattr_set_link_args *uap) { struct nameidata nd; char attrname[EXTATTR_MAXNAMELEN]; @@ -381,16 +385,17 @@ done: return (error); } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_get_fd_args { + int fd; + int attrnamespace; + const char *attrname; + void *data; + size_t nbytes; +}; +#endif int -sys_extattr_get_fd(td, uap) - struct thread *td; - struct extattr_get_fd_args /* { - int fd; - int attrnamespace; - const char *attrname; - void *data; - size_t nbytes; - } */ *uap; +sys_extattr_get_fd(struct thread *td, struct extattr_get_fd_args *uap) { struct file *fp; char attrname[EXTATTR_MAXNAMELEN]; @@ -416,16 +421,17 @@ sys_extattr_get_fd(td, uap) return (error); } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_get_file_args { + const char *path; + int attrnamespace; + const char *attrname; + void *data; + size_t nbytes; +}; +#endif int -sys_extattr_get_file(td, uap) - struct thread *td; - struct extattr_get_file_args /* { - const char *path; - int attrnamespace; - const char *attrname; - void *data; - size_t nbytes; - } */ *uap; +sys_extattr_get_file(struct thread *td, struct extattr_get_file_args *uap) { struct nameidata nd; char attrname[EXTATTR_MAXNAMELEN]; @@ -450,16 +456,17 @@ sys_extattr_get_file(td, uap) return (error); } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_get_link_args { + const char *path; + int attrnamespace; + const char *attrname; + void *data; + size_t nbytes; +}; +#endif int -sys_extattr_get_link(td, uap) - struct thread *td; - struct extattr_get_link_args /* { - const char *path; - int attrnamespace; - const char *attrname; - void *data; - size_t nbytes; - } */ *uap; +sys_extattr_get_link(struct thread *td, struct extattr_get_link_args *uap) { struct nameidata nd; char attrname[EXTATTR_MAXNAMELEN]; @@ -527,14 +534,15 @@ done: return (error); } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_delete_fd_args { + int fd; + int attrnamespace; + const char *attrname; +}; +#endif int -sys_extattr_delete_fd(td, uap) - struct thread *td; - struct extattr_delete_fd_args /* { - int fd; - int attrnamespace; - const char *attrname; - } */ *uap; +sys_extattr_delete_fd(struct thread *td, struct extattr_delete_fd_args *uap) { struct file *fp; char attrname[EXTATTR_MAXNAMELEN]; @@ -559,14 +567,15 @@ sys_extattr_delete_fd(td, uap) return (error); } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_delete_file_args { + const char *path; + int attrnamespace; + const char *attrname; +}; +#endif int -sys_extattr_delete_file(td, uap) - struct thread *td; - struct extattr_delete_file_args /* { - const char *path; - int attrnamespace; - const char *attrname; - } */ *uap; +sys_extattr_delete_file(struct thread *td, struct extattr_delete_file_args *uap) { struct nameidata nd; char attrname[EXTATTR_MAXNAMELEN]; @@ -589,14 +598,15 @@ sys_extattr_delete_file(td, uap) return(error); } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_delete_link_args { + const char *path; + int attrnamespace; + const char *attrname; +}; +#endif int -sys_extattr_delete_link(td, uap) - struct thread *td; - struct extattr_delete_link_args /* { - const char *path; - int attrnamespace; - const char *attrname; - } */ *uap; +sys_extattr_delete_link(struct thread *td, struct extattr_delete_link_args *uap) { struct nameidata nd; char attrname[EXTATTR_MAXNAMELEN]; @@ -684,15 +694,16 @@ done: } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_list_fd_args { + int fd; + int attrnamespace; + void *data; + size_t nbytes; +}; +#endif int -sys_extattr_list_fd(td, uap) - struct thread *td; - struct extattr_list_fd_args /* { - int fd; - int attrnamespace; - void *data; - size_t nbytes; - } */ *uap; +sys_extattr_list_fd(struct thread *td, struct extattr_list_fd_args *uap) { struct file *fp; cap_rights_t rights; @@ -712,15 +723,16 @@ sys_extattr_list_fd(td, uap) return (error); } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_list_file_args { + const char *path; + int attrnamespace; + void *data; + size_t nbytes; +} +#endif int -sys_extattr_list_file(td, uap) - struct thread*td; - struct extattr_list_file_args /* { - const char *path; - int attrnamespace; - void *data; - size_t nbytes; - } */ *uap; +sys_extattr_list_file(struct thread *td, struct extattr_list_file_args *uap) { struct nameidata nd; int error; @@ -739,15 +751,16 @@ sys_extattr_list_file(td, uap) return (error); } +#ifndef _SYS_SYSPROTO_H_ +struct extattr_list_link_args { + const char *path; + int attrnamespace; + void *data; + size_t nbytes; +}; +#endif int -sys_extattr_list_link(td, uap) - struct thread*td; - struct extattr_list_link_args /* { - const char *path; - int attrnamespace; - void *data; - size_t nbytes; - } */ *uap; +sys_extattr_list_link(struct thread *td, struct extattr_list_link_args *uap) { struct nameidata nd; int error;