From owner-p4-projects@FreeBSD.ORG Thu Jun 28 11:21:35 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D6AA916A46C; Thu, 28 Jun 2007 11:21:34 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8601F16A469 for ; Thu, 28 Jun 2007 11:21:34 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 7522413C44B for ; Thu, 28 Jun 2007 11:21:34 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l5SBLYpR040938 for ; Thu, 28 Jun 2007 11:21:34 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l5SBLYwl040932 for perforce@freebsd.org; Thu, 28 Jun 2007 11:21:34 GMT (envelope-from rdivacky@FreeBSD.org) Date: Thu, 28 Jun 2007 11:21:34 GMT Message-Id: <200706281121.l5SBLYwl040932@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rdivacky@FreeBSD.org using -f From: Roman Divacky To: Perforce Change Reviews Cc: Subject: PERFORCE change 122476 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jun 2007 11:21:35 -0000 http://perforce.freebsd.org/chv.cgi?CH=122476 Change 122476 by rdivacky@rdivacky_witten on 2007/06/28 11:20:37 return x -> return (x) Suggested by: rwatson Affected files ... .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#37 edit Differences ... ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#37 (text+ko) ==== @@ -965,15 +965,15 @@ int openat(struct thread *td, struct openat_args *args) { - return kern_openat(td, args->fd, args->path, UIO_USERSPACE, - args->flag, args->mode); + return (kern_openat(td, args->fd, args->path, UIO_USERSPACE, + args->flag, args->mode)); } int kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags, int mode) { - return kern_openat(td, AT_FDCWD, (const char *)path, pathseg, flags, mode); + return (kern_openat(td, AT_FDCWD, (const char *)path, pathseg, flags, mode)); } static int @@ -1223,15 +1223,15 @@ int mknodat(struct thread *td, struct mknodat_args *args) { - return kern_mknodat(td, args->fd, args->path, UIO_USERSPACE, args->mode, - args->dev); + return (kern_mknodat(td, args->fd, args->path, UIO_USERSPACE, args->mode, + args->dev)); } int kern_mknod(struct thread *td, char *path, enum uio_seg pathseg, int mode, int dev) { - return kern_mknodat(td, AT_FDCWD, (const char *)path, pathseg, mode, dev); + return (kern_mknodat(td, AT_FDCWD, (const char *)path, pathseg, mode, dev)); } int @@ -1385,13 +1385,13 @@ int mkfifoat(struct thread *td, struct mkfifoat_args *args) { - return kern_mkfifoat(td, args->fd, args->path, UIO_USERSPACE, args->mode); + return (kern_mkfifoat(td, args->fd, args->path, UIO_USERSPACE, args->mode)); } int kern_mkfifo(struct thread *td, char *path, enum uio_seg pathseg, int mode) { - return kern_mkfifoat(td, AT_FDCWD, (const char *)path, pathseg, mode); + return (kern_mkfifoat(td, AT_FDCWD, (const char *)path, pathseg, mode)); } int @@ -1510,11 +1510,11 @@ return (EINVAL); if (args->flag & AT_SYMLINK_FOLLOW) - return kern_linkat(td, args->fd1, args->fd2, args->path1, - args->path2, UIO_USERSPACE, FOLLOW); + return (kern_linkat(td, args->fd1, args->fd2, args->path1, + args->path2, UIO_USERSPACE, FOLLOW)); else - return kern_linkat(td, args->fd1, args->fd2, args->path1, - args->path2, UIO_USERSPACE, 0); + return (kern_linkat(td, args->fd1, args->fd2, args->path1, + args->path2, UIO_USERSPACE, 0)); } static int hardlink_check_uid = 0; @@ -1559,8 +1559,8 @@ int kern_link(struct thread *td, char *path, char *link, enum uio_seg segflg) { - return kern_linkat(td, AT_FDCWD, AT_FDCWD, (const char *)path, - (const char *)link, segflg, FOLLOW); + return (kern_linkat(td, AT_FDCWD, AT_FDCWD, (const char *)path, + (const char *)link, segflg, FOLLOW)); } int @@ -1679,14 +1679,14 @@ int symlinkat(struct thread *td, struct symlinkat_args *args) { - return kern_symlinkat(td, args->path1, args->fd, args->path2, UIO_USERSPACE); + return (kern_symlinkat(td, args->path1, args->fd, args->path2, UIO_USERSPACE)); } int kern_symlink(struct thread *td, char *path, char *link, enum uio_seg segflg) { - return kern_symlinkat(td, (const char *)path, AT_FDCWD, (const char *)link, - segflg); + return (kern_symlinkat(td, (const char *)path, AT_FDCWD, (const char *)link, + segflg)); } int @@ -1857,15 +1857,15 @@ return (EINVAL); if (args->flag & AT_REMOVEDIR) - return kern_rmdirat(td, args->fd, args->path, UIO_USERSPACE); + return (kern_rmdirat(td, args->fd, args->path, UIO_USERSPACE)); else - return kern_unlinkat(td, args->fd, args->path, UIO_USERSPACE); + return (kern_unlinkat(td, args->fd, args->path, UIO_USERSPACE)); } int kern_unlink(struct thread *td, char *path, enum uio_seg pathseg) { - return kern_unlinkat(td, AT_FDCWD, (const char *)path, pathseg); + return (kern_unlinkat(td, AT_FDCWD, (const char *)path, pathseg)); } int @@ -2135,13 +2135,13 @@ if (args->flag & ~AT_EACCESS) return (EINVAL); /* XXX: what about mode? */ - return kern_accessat(td, args->fd, args->path, UIO_USERSPACE, args->flag); + return (kern_accessat(td, args->fd, args->path, UIO_USERSPACE, args->flag)); } int kern_access(struct thread *td, char *path, enum uio_seg pathseg, int flags) { - return kern_accessat(td, AT_FDCWD, (const char *)path, pathseg, flags); + return (kern_accessat(td, AT_FDCWD, (const char *)path, pathseg, flags)); } int @@ -2366,15 +2366,15 @@ return (EINVAL); if (args->flag & AT_SYMLINK_NOFOLLOW) - return kern_lstatat(td, args->fd, args->path, UIO_USERSPACE, args->buf); + return (kern_lstatat(td, args->fd, args->path, UIO_USERSPACE, args->buf)); else - return kern_statat(td, args->fd, args->path, UIO_USERSPACE, args->buf); + return (kern_statat(td, args->fd, args->path, UIO_USERSPACE, args->buf)); } int kern_stat(struct thread *td, char *path, enum uio_seg pathseg, struct stat *sbp) { - return kern_statat(td, AT_FDCWD, (const char *)path, pathseg, sbp); + return (kern_statat(td, AT_FDCWD, (const char *)path, pathseg, sbp)); } int @@ -2443,7 +2443,7 @@ int kern_lstat(struct thread *td, char *path, enum uio_seg pathseg, struct stat *sbp) { - return kern_lstatat(td, AT_FDCWD, (const char *)path, pathseg, sbp); + return (kern_lstatat(td, AT_FDCWD, (const char *)path, pathseg, sbp)); } int @@ -2641,16 +2641,16 @@ ssize_t readlinkat(struct thread *td, struct readlinkat_args *args) { - return kern_readlinkat(td, args->fd, args->path, UIO_USERSPACE, - args->buf, UIO_USERSPACE, args->bufsize); + return (kern_readlinkat(td, args->fd, args->path, UIO_USERSPACE, + args->buf, UIO_USERSPACE, args->bufsize)); } int kern_readlink(struct thread *td, char *path, enum uio_seg pathseg, char *buf, enum uio_seg bufseg, int count) { - return kern_readlinkat(td, AT_FDCWD, (const char *)path, pathseg, buf, - bufseg, count); + return (kern_readlinkat(td, AT_FDCWD, (const char *)path, pathseg, buf, + bufseg, count)); } int @@ -2913,17 +2913,17 @@ return (EINVAL); if (args->flag & AT_SYMLINK_NOFOLLOW) - return kern_lchmodat(td, args->fd, args->path, UIO_USERSPACE, - args->mode); + return (kern_lchmodat(td, args->fd, args->path, UIO_USERSPACE, + args->mode)); else - return kern_chmodat(td, args->fd, args->path, UIO_USERSPACE, - args->mode); + return (kern_chmodat(td, args->fd, args->path, UIO_USERSPACE, + args->mode)); } int kern_chmod(struct thread *td, char *path, enum uio_seg pathseg, int mode) { - return kern_chmodat(td, AT_FDCWD, (const char *)path, pathseg, mode); + return (kern_chmodat(td, AT_FDCWD, (const char *)path, pathseg, mode)); } int @@ -2971,7 +2971,7 @@ int mode; } */ *uap; { - return kern_lchmodat(td, AT_FDCWD, uap->path, UIO_USERSPACE, uap->mode); + return (kern_lchmodat(td, AT_FDCWD, uap->path, UIO_USERSPACE, uap->mode)); } @@ -3102,18 +3102,18 @@ return (EINVAL); if (args->flag & AT_SYMLINK_NOFOLLOW) - return kern_lchownat(td, args->fd, args->path, UIO_USERSPACE, - args->uid, args->gid); + return (kern_lchownat(td, args->fd, args->path, UIO_USERSPACE, + args->uid, args->gid)); else - return kern_chownat(td, args->fd, args->path, UIO_USERSPACE, - args->uid, args->gid); + return (kern_chownat(td, args->fd, args->path, UIO_USERSPACE, + args->uid, args->gid)); } int kern_chown(struct thread *td, char *path, enum uio_seg pathseg, int uid, int gid) { - return kern_chownat(td, AT_FDCWD, (const char *)path, pathseg, uid, gid); + return (kern_chownat(td, AT_FDCWD, (const char *)path, pathseg, uid, gid)); } int @@ -3171,7 +3171,7 @@ kern_lchown(struct thread *td, char *path, enum uio_seg pathseg, int uid, int gid) { - return kern_lchownat(td, AT_FDCWD, (const char *)path, pathseg, uid, gid); + return (kern_lchownat(td, AT_FDCWD, (const char *)path, pathseg, uid, gid)); } int @@ -3346,16 +3346,16 @@ int futimesat(struct thread *td, struct futimesat_args *args) { - return kern_utimesat(td, args->fd, args->path, UIO_USERSPACE, - args->times, UIO_USERSPACE); + return (kern_utimesat(td, args->fd, args->path, UIO_USERSPACE, + args->times, UIO_USERSPACE)); } int kern_utimes(struct thread *td, char *path, enum uio_seg pathseg, struct timeval *tptr, enum uio_seg tptrseg) { - return kern_utimesat(td, AT_FDCWD, (const char *)path, pathseg, - (const struct timeval *)tptr, tptrseg); + return (kern_utimesat(td, AT_FDCWD, (const char *)path, pathseg, + (const struct timeval *)tptr, tptrseg)); } int @@ -3744,15 +3744,15 @@ int renameat(struct thread *td, struct renameat_args *args) { - return kern_renameat(td, args->oldfd, args->old, args->newfd, args->new, - UIO_USERSPACE); + return (kern_renameat(td, args->oldfd, args->old, args->newfd, args->new, + UIO_USERSPACE)); } int kern_rename(struct thread *td, char *from, char *to, enum uio_seg pathseg) { - return kern_renameat(td, AT_FDCWD, (const char *)from, AT_FDCWD, - (const char *)to, pathseg); + return (kern_renameat(td, AT_FDCWD, (const char *)from, AT_FDCWD, + (const char *)to, pathseg)); } int @@ -3921,13 +3921,13 @@ int mkdirat(struct thread *td, struct mkdirat_args *args) { - return kern_mkdirat(td, args->fd, args->path, UIO_USERSPACE, args->mode); + return (kern_mkdirat(td, args->fd, args->path, UIO_USERSPACE, args->mode)); } int kern_mkdir(struct thread *td, char *path, enum uio_seg segflg, int mode) { - return kern_mkdirat(td, AT_FDCWD, (const char *)path, segflg, mode); + return (kern_mkdirat(td, AT_FDCWD, (const char *)path, segflg, mode)); } int @@ -4036,7 +4036,7 @@ int kern_rmdir(struct thread *td, char *path, enum uio_seg pathseg) { - return kern_rmdirat(td, AT_FDCWD, (const char *)path, pathseg); + return (kern_rmdirat(td, AT_FDCWD, (const char *)path, pathseg)); } int