Commit Graph

171226 Commits

Author SHA1 Message Date
ad
a00bd89dab Replace references to getsock/getvnode. 2008-06-24 11:18:14 +00:00
gmcgarry
7085b9f922 Array range designated initializers are a gcc extension. Replace with
explicit initialization with zeros, although it probably isn't necessary.
2008-06-24 10:57:45 +00:00
gmcgarry
79fede3354 The forward declation in the parameter list for a variable-length array is
another gcc extension.  Pass the array as a pointer to blob.

See: http://developer.apple.com/documentation/DeveloperTools/gcc-4.0.1/gcc/Variable-Length.html
2008-06-24 10:55:48 +00:00
gmcgarry
838d34e828 fcntl(4) says the command is type int. lfs_fcntl() comment says u_long. The implementation says int. Synchronise comment with documentation and cast to int before comparison. 2008-06-24 10:47:32 +00:00
jmcneill
72b22f7c71 Define PMAP_FORK -- this was lost in the vmlocking merge, and is required
by options USER_LDT.
2008-06-24 10:42:43 +00:00
gmcgarry
95c7011935 Remove gcc variadic macros with comma elimination. 2008-06-24 10:37:19 +00:00
gmcgarry
4bb1ed1308 ioctl commands are unsigned long. ABI change to mrt6_ioctl() will affect 64-bit platforms. 2008-06-24 10:35:14 +00:00
gmcgarry
d2ed2a72ab Replace gcc-style designated initialisers with c99-style. 2008-06-24 10:33:46 +00:00
gmcgarry
43950e78ba Fix uses of #ifdef/#endif inside macro expansions. 2008-06-24 10:33:08 +00:00
gmcgarry
ccd9038096 ioctl commands are unsigned long. 2008-06-24 10:32:14 +00:00
gmcgarry
8cead24f2a The conversion to c99-style designated initialisers brought in the gcc
extension of specifying an array range.  Revert to runtime initialization
of limit0.

See here for details: http://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
2008-06-24 10:31:05 +00:00
gmcgarry
a7edd5ccdd Replace gcc-style designated initialisers with c99-style. 2008-06-24 10:27:35 +00:00
gmcgarry
8b957c9d45 ioctl commands are unsigned long. Changes ABI for fsetown() and fgetown() on 64-bit architectures. 2008-06-24 10:26:26 +00:00
gmcgarry
fb6bc48511 ioctl commands are unsigned long. 2008-06-24 10:24:21 +00:00
gmcgarry
92d3d70827 Remove gcc extension of variadic macros with comma elimination. 2008-06-24 10:23:48 +00:00
gmcgarry
1571ea373c Both legs of a digraph must return the same type. Therefore, replace digraph. 2008-06-24 10:22:03 +00:00
gmcgarry
c1cd5c98e9 Ragge says that 6.5.4 clause 2 says:
"Unless the type name specifies a void type, the type name shall specify
qualified or unqualified scalar type and the operand shall have scalar
type."

Therefore, don't cast to a union.
2008-06-24 10:20:41 +00:00
gmcgarry
50323d63e5 Replace gcc variadic macros with c99 variadic macros. 2008-06-24 10:17:45 +00:00
gmcgarry
39cc1fe282 pcc doesn't like empty structures for initialisation. Fill with zeros. 2008-06-24 10:17:00 +00:00
gmcgarry
59f6f4f552 Replace gcc variadic macros with c99 variadic macros. 2008-06-24 10:14:41 +00:00
gmcgarry
b8d5478df6 Replace gcc extension of comma-elimination variadic macros with aprint_debug_ifnet(). 2008-06-24 10:13:51 +00:00
gmcgarry
8f786d7556 Digraphs as lvalues must return the same type. 2008-06-24 10:12:42 +00:00
gmcgarry
7bb601e861 Rearrange pdq_boolean_t, pdq_type_t and pdq_state_t so that enums are defined
before their typedefs and prototypes.  Fixes compilation with pcc.
2008-06-24 10:12:06 +00:00
gmcgarry
cb3e0547b7 Change gcc variadic macros to c99 variadic macros. 2008-06-24 10:09:24 +00:00
gmcgarry
7d3d745b26 status is unsigned. 2008-06-24 10:08:43 +00:00
gmcgarry
1a58d52748 Fix prototype of ahd_send_async(). Pull in dev/ic/aic7xxx_cam.h to get ac_code. 2008-06-24 10:07:40 +00:00
gmcgarry
333aec56cb Both legs of a diagraph must return the same type. 2008-06-24 10:05:01 +00:00
gmcgarry
035e707304 ioctl commands are defined unsigned long, so cast cmd to unsigned long before comparison. 2008-06-24 10:03:17 +00:00
gmcgarry
70603b1966 Move #ifdef/#endif outside macro arguments. Fixes compile with pcc. 2008-06-24 10:00:26 +00:00
njoly
0fe964b56f Fix SIOCGIFCONF ioctl under compat linux32. 2008-06-24 09:00:04 +00:00
kiyohara
b4161c5190 Change SYMTAB_SPACE=400000 from 380000. 2008-06-24 07:13:21 +00:00
njoly
0237fe6def Update compat netbsd32 SIOCGIFCONF ioctls definitions to follow native
ones.
2008-06-23 23:14:42 +00:00
rmind
59a180ac8f sysctl_proc_stop: fix a lock-leak when kauth returns an error.
From <kefren>.
2008-06-23 20:04:36 +00:00
christos
14a6095c32 don't initialize fetch twice. 2008-06-23 18:10:26 +00:00
matt
29731f5c84 Make acorn26 kernels build again. 2008-06-23 17:58:17 +00:00
christos
362bb1e6c4 don't initialize the same variable twice. 2008-06-23 17:54:01 +00:00
matt
132c411a9a Fix a race condition -j. Don't do SUBDIRS= include/arm include/arm/...
since the latter might be done before the former which mtree doesn't like.
Instead have arm recurse into its own subdirs.
2008-06-23 17:43:21 +00:00
christos
34244a4587 we cannot use pthreads here because we are statically linked. 2008-06-23 14:53:06 +00:00
christos
0ec2ee405f No need for pthread anymore. 2008-06-23 14:52:11 +00:00
christos
a494eea816 Add an ifdef to disable the AES_CTR_MT cipher because static binaries don't
work with -pthread, and /rescue is linked against libssh.
2008-06-23 14:51:31 +00:00
reinoud
71eb4d1ddd Fix pmap.c compilation issues when PMAP_FORK is defined. The locking code was not adapted to the indexing of pmap->pm_obj[] 2008-06-23 14:47:51 +00:00
pooka
4de5567459 Allow KAUTH_SYSTEM_MKNOD in kauth_authorize_generic() to make it
possible to execute sys_mknod().

from Arnaud Ysmal
2008-06-23 12:58:12 +00:00
plunky
3b18cdef88 hold bt_lock when sending data via sco_send() 2008-06-23 12:34:38 +00:00
ad
aed68d2d63 getvnode -> fd_getvnode 2008-06-23 11:30:41 +00:00
ad
29957bec2e sys_fcntl: use l_fd, not p_fd. 2008-06-23 11:26:53 +00:00
ad
7756789d3a PR kern/38990: Unmounting a disk fails the first time
vflush: process vrele_list at least once before looking at the mount.
2008-06-23 11:23:39 +00:00
ad
10ba267505 Split cond_signal/cond_broadcast into inline and non-inline parts, like
the kernel.
2008-06-23 11:01:19 +00:00
ad
d9a30823e2 Move call to pthread__self() later. 2008-06-23 11:00:53 +00:00
ad
380c3da007 Split choose_arena() back out into inline and non-inline portions. 2008-06-23 10:46:25 +00:00
ad
3e1711d6de pthread__threadreg_get: mark it const. 2008-06-23 10:39:38 +00:00