A jumbo checkin, consisting of:
1. Ports to older revisions of some Unix variants, e.g., BSD/OS 1.1,
OSF1 V2.0, etc., contributed by Brian Ostrom <briano@netscape.com>.
2. QNX port, also contributed by Brian Ostrom.
3. New macro USE_MACH_DYLD to represent the dynamic library loading
API of NEXTSTEP and Rhapsody.
4. On platforms whose socket address has the sa_len field, make a
copy of the PRNetAddr argument for PR_Bind, PR_Connect, and PR_SendTo
and set its sa_len before passing it to the system calls. This
fix is suggested by Bert Driehuis <driehuis@playbeing.org>.
5. Removed the unused field _lockf64 of struct _MD_IOVector. Not
every Unix platform has lockf, and the POSIX file locking API
uses fcntl.
1998-11-23 06:33:00 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
1999-04-21 21:40:44 +00:00
|
|
|
* Version 1.1 (the "NPL"); you may not use this file except in
|
A jumbo checkin, consisting of:
1. Ports to older revisions of some Unix variants, e.g., BSD/OS 1.1,
OSF1 V2.0, etc., contributed by Brian Ostrom <briano@netscape.com>.
2. QNX port, also contributed by Brian Ostrom.
3. New macro USE_MACH_DYLD to represent the dynamic library loading
API of NEXTSTEP and Rhapsody.
4. On platforms whose socket address has the sa_len field, make a
copy of the PRNetAddr argument for PR_Bind, PR_Connect, and PR_SendTo
and set its sa_len before passing it to the system calls. This
fix is suggested by Bert Driehuis <driehuis@playbeing.org>.
5. Removed the unused field _lockf64 of struct _MD_IOVector. Not
every Unix platform has lockf, and the POSIX file locking API
uses fcntl.
1998-11-23 06:33:00 +00:00
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nspr_cpucfg___
|
|
|
|
#define nspr_cpucfg___
|
|
|
|
|
|
|
|
#ifndef XP_UNIX
|
|
|
|
#define XP_UNIX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef QNX
|
|
|
|
#define QNX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define IS_LITTLE_ENDIAN 1
|
|
|
|
#undef IS_BIG_ENDIAN
|
|
|
|
#undef HAVE_LONG_LONG
|
|
|
|
#undef HAVE_ALIGNED_DOUBLES
|
|
|
|
#undef HAVE_ALIGNED_LONGLONGS
|
|
|
|
|
|
|
|
#define PR_BYTES_PER_BYTE 1
|
|
|
|
#define PR_BYTES_PER_SHORT 2
|
|
|
|
#define PR_BYTES_PER_INT 4
|
|
|
|
#define PR_BYTES_PER_INT64 8
|
|
|
|
#define PR_BYTES_PER_LONG 4
|
|
|
|
#define PR_BYTES_PER_FLOAT 4
|
|
|
|
#define PR_BYTES_PER_DOUBLE 8
|
|
|
|
#define PR_BYTES_PER_WORD 4
|
|
|
|
#define PR_BYTES_PER_DWORD 8
|
|
|
|
|
|
|
|
#define PR_BITS_PER_BYTE 8
|
|
|
|
#define PR_BITS_PER_SHORT 16
|
|
|
|
#define PR_BITS_PER_INT 32
|
|
|
|
#define PR_BITS_PER_INT64 64
|
|
|
|
#define PR_BITS_PER_LONG 32
|
|
|
|
#define PR_BITS_PER_FLOAT 32
|
|
|
|
#define PR_BITS_PER_DOUBLE 64
|
|
|
|
#define PR_BITS_PER_WORD 32
|
|
|
|
|
|
|
|
#define PR_BITS_PER_BYTE_LOG2 3
|
|
|
|
#define PR_BITS_PER_SHORT_LOG2 4
|
|
|
|
#define PR_BITS_PER_INT_LOG2 5
|
|
|
|
#define PR_BITS_PER_INT64_LOG2 6
|
|
|
|
#define PR_BITS_PER_LONG_LOG2 5
|
|
|
|
#define PR_BITS_PER_FLOAT_LOG2 5
|
|
|
|
#define PR_BITS_PER_DOUBLE_LOG2 6
|
|
|
|
#define PR_BITS_PER_WORD_LOG2 5
|
|
|
|
|
|
|
|
#define PR_ALIGN_OF_SHORT 1
|
|
|
|
#define PR_ALIGN_OF_INT 1
|
|
|
|
#define PR_ALIGN_OF_LONG 1
|
|
|
|
#define PR_ALIGN_OF_INT64 1
|
|
|
|
#define PR_ALIGN_OF_FLOAT 1
|
|
|
|
#define PR_ALIGN_OF_DOUBLE 1
|
|
|
|
#define PR_ALIGN_OF_POINTER 1
|
|
|
|
#define PR_ALIGN_OF_WORD 1
|
|
|
|
|
|
|
|
#define PR_BYTES_PER_WORD_LOG2 2
|
|
|
|
#define PR_BYTES_PER_DWORD_LOG2 3
|
|
|
|
#define PR_WORDS_PER_DWORD_LOG2 1
|
|
|
|
|
|
|
|
#endif /* nspr_cpucfg___ */
|