Commit Graph

171292 Commits

Author SHA1 Message Date
reinoud
06993e5f51 Make readsymlink bug-tolerant to MacOS X symlink construction bug. It puts
the name ".." on a parent path component. To prevent other similar errors,
name length checking is not done but the passed name that shouldn't be
passed is ignored.
2008-06-24 15:57:13 +00:00
reinoud
dc6314f8ae We are not allowed zero length names in softlinks. 2008-06-24 15:42:07 +00:00
reinoud
0cbd9f8bcc Use the new macros defined in ecma167-udf.h and also calculate the extended
attribute header crc check; not just the tag sum.
2008-06-24 15:37:42 +00:00
reinoud
a88cc8528f Support the creation of extended attributes for file creation in the
kernel and check and update them when found.

Note that it won't *insert* an extended attribute yet if it hasn't found it
while updating the birthtime.
2008-06-24 15:35:57 +00:00
reinoud
31c0e74b8e If we're fixing up the internal attributes, is it then wise to check if
they are valid first? Might be on the safe side in the end but disabled for
now.
2008-06-24 15:32:52 +00:00
reinoud
826b10cc95 Fix attribute length calculation and fix naming convention. 2008-06-24 15:30:33 +00:00
pooka
3129a376df Fix location of postcall() in ukfs_chdir().
from Arnaud Ysmal
2008-06-24 14:16:37 +00:00
pooka
281bc3d490 retire rumpuser_usleep() in favor of rumpuser_nanosleep() 2008-06-24 14:14:57 +00:00
pooka
441a8c67a3 Make kpause() use nanosleep() instead of usleep(). Fixes >=1s sleeps
to actually sleep a bit too.

from Arnaud Ysmal
2008-06-24 14:11:44 +00:00
ad
e7bd22925c A few more POSIX defs for threads. 2008-06-24 14:06:55 +00:00
ad
6d153667e5 pthread_kill, pthread_sigmask: return errno, not the return from the system
call. Found by VSTHlite.
2008-06-24 13:45:07 +00:00
matt
60271c61c4 Need for machine-links to finish before building ${PROG} 2008-06-24 13:02:25 +00:00
he
dfcadaa439 Fix alignment of fields for "vmstat -m" when KMEMSTATS are available:
o Make "prop dictionary" fit in the "Type" coloumn
 o Ensure that fields don't run into each other (adds a space between fields)
 o Ensure that a Limit of >100000K fits in the field width
2008-06-24 12:47:23 +00:00
ad
a8ced4f0d0 Set up the sysctl tree correctly when loaded as a file system. 2008-06-24 11:25:05 +00:00
ad
9993bc6d33 Nothing uses getsock/getvnode any more. 2008-06-24 11:21:46 +00:00
ad
79873daf65 Make it compile. 2008-06-24 11:20:37 +00:00
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