From owner-p4-projects@FreeBSD.ORG Thu Apr 26 12:39:23 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 4669F16A404; Thu, 26 Apr 2007 12:39:23 +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 18EB216A400 for ; Thu, 26 Apr 2007 12:39:23 +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 085EC13C455 for ; Thu, 26 Apr 2007 12:39:23 +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 l3QCdMFb011050 for ; Thu, 26 Apr 2007 12:39:22 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3QCdMwe011047 for perforce@freebsd.org; Thu, 26 Apr 2007 12:39:22 GMT (envelope-from rdivacky@FreeBSD.org) Date: Thu, 26 Apr 2007 12:39:22 GMT Message-Id: <200704261239.l3QCdMwe011047@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 118826 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, 26 Apr 2007 12:39:23 -0000 http://perforce.freebsd.org/chv.cgi?CH=118826 Change 118826 by rdivacky@rdivacky_witten on 2007/04/26 12:38:54 Introduce AT_SYMLINK_NOFOLLOW and it's strange semantics. Add linux_file.h and move the AT_FDCWD definition there. Affected files ... .. //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/linux32/linux.h#2 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_file.c#3 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_file.h#1 add .. //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_stats.c#3 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/i386/linux/linux.h#2 edit Differences ... ==== //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/linux32/linux.h#2 (text+ko) ==== @@ -566,8 +566,6 @@ #define LINUX_F_WRLCK 1 #define LINUX_F_UNLCK 2 -#define LINUX_AT_FDCWD -100 - /* * mount flags */ ==== //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_file.c#3 (text+ko) ==== @@ -67,6 +67,7 @@ #include #endif #include +#include int linux_creat(struct thread *td, struct linux_creat_args *args) ==== //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_stats.c#3 (text+ko) ==== @@ -57,6 +57,7 @@ #endif #include +#include #include @@ -587,6 +588,9 @@ int fd, dfd; struct stat buf; + if (args->flag & ~LINUX_AT_SYMLINK_NOFOLLOW) + return (EINVAL); + /* open the file */ path = malloc(MAXPATHLEN, M_TEMP, M_WAITOK); error = copyinstr(args->pathname, path, MAXPATHLEN, NULL); ==== //depot/projects/soc2007/rdivacky/linux_at/sys/i386/linux/linux.h#2 (text+ko) ==== @@ -537,8 +537,6 @@ #define LINUX_F_WRLCK 1 #define LINUX_F_UNLCK 2 -#define LINUX_AT_FDCWD -100 - /* * mount flags */