You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/04/28 10:10:57 UTC
svn commit: r769281 - in /commons/sandbox/runtime/trunk/src/main/native:
include/arch/darwin/acr_arch_private.h os/unix/file.c os/unix/user.c
Author: mturk
Date: Tue Apr 28 08:10:56 2009
New Revision: 769281
URL: http://svn.apache.org/viewvc?rev=769281&view=rev
Log:
Add few settings for Mac
Modified:
commons/sandbox/runtime/trunk/src/main/native/include/arch/darwin/acr_arch_private.h
commons/sandbox/runtime/trunk/src/main/native/os/unix/file.c
commons/sandbox/runtime/trunk/src/main/native/os/unix/user.c
Modified: commons/sandbox/runtime/trunk/src/main/native/include/arch/darwin/acr_arch_private.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/arch/darwin/acr_arch_private.h?rev=769281&r1=769280&r2=769281&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/arch/darwin/acr_arch_private.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/arch/darwin/acr_arch_private.h Tue Apr 28 08:10:56 2009
@@ -24,6 +24,7 @@
#include <sys/utsname.h>
#include <mach/machine.h>
#include <mach-o/arch.h>
+#include <sys/stat.h>
#ifdef __cplusplus
extern "C" {
Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/file.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/file.c?rev=769281&r1=769280&r2=769281&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/file.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/file.c Tue Apr 28 08:10:56 2009
@@ -25,7 +25,6 @@
* Posix file functions
*
*/
-
#if defined(_LARGEFILE64_SOURCE)
#define stat(f,b) stat64(f,b)
#define lstat(f,b) lstat64(f,b)
Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/user.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/user.c?rev=769281&r1=769280&r2=769281&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/user.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/user.c Tue Apr 28 08:10:56 2009
@@ -123,7 +123,10 @@
SET_IFIELD_S(0000, usr, pw->pw_name);
SET_IFIELD_S(0001, usr, pw->pw_gecos);
- /* Comment is unknown */
+#ifdef DARWIN
+ /* Use user class name for comment */
+ SET_IFIELD_N(0002, usr, pw->pw_class);
+#endif
SET_IFIELD_S(0003, usr, pw->pw_dir);
SET_IFIELD_S(0004, usr, pw->pw_shell);
sid = ACR_Ltoa((acr_long_t)pw->pw_uid);