Commit Graph

9997 Commits

Author SHA1 Message Date
mbalmer d394843f35 Remove the GPIODETACH gpio(4) ioctl (it is still available in COMPAT_50) and
the 'detach' command line option from gpioctl(8).  Drivers that are
attached to gpio pins can be detached using the drvctl(8) command.
2011-10-03 11:16:47 +00:00
mbalmer d0a114ea0b Build i2cscan, since it is the list files. 2011-10-03 07:29:33 +00:00
jmcneill f11f373e5d add userland implementation of I2C_SCAN code 2011-10-02 16:48:47 +00:00
mbalmer 44f61c8547 It's actually 'the flag locator', not 'flags' (as 'flags' can not be used
as a locator name for reasons unknown to me.)
2011-10-02 12:43:52 +00:00
mbalmer 90077b6e6d Add a ga_flags field to the gpio_attach structure to hand driver
specific flags to drivers being attached at gpio pins.  gpioiic(4)
uses this to reverse the SDA/SCL signal order.  gpioctl(8) accepts
the flag values as optional argument to the attach command.
While here, make sure we retain backwards compatability and wrap compat
code in #ifdef COMPAT_50/#endif.
2011-10-02 09:33:18 +00:00
jym afca4e3b49 Fix an implementation inconsistency with the prop_*_send_syscall() and
prop_*_recv_syscall() functions from proplib(3). They now share the
same logic as the one from prop_*_send_ioctl() functions:
- returns an int
- 0 indicates "no error", otherwise returns the error number (and
set errno)

Many consumers of the prop_*_{ioctl, syscall} expect errno to be set
on error and use err() to display the error message. As such, ensures that
errno gets set before returning from these functions.

prop_*_send_syscall() functions returned a boolean, and now return an int.
Fix all call sites to use the new paradigm (only quota2 is affected in src).

As the prop_*_{send,recv}_syscall() API appeared in -current and is only
used by the recent quota2 code, I am not bumping the lib. The API change
only affects the prop_*_send_syscall() function (recv_syscall()s were
already used correctly), so ensure you are not mixing "old" -current
quota binaries with a new proplib(3) (or the other way around). This
change will be announced via a HEADS-UP and UPDATING.

Does not affect the kernel part of proplib.

Document the correct API in prop_array(3) and prop_dictionary(3).

Thanks to Francois Tigeot for noticing the API inconsistency and
reporting it on tech-kern@.

ok bouyer@.
2011-09-30 22:08:18 +00:00
jruoho be8b5eb28c Define _PATH_CPUCTL. 2011-09-27 11:24:20 +00:00
jruoho cb6e031ff5 Fix wrong err(3) message (no such thing as IOC_CPU_GETINFO). 2011-09-26 06:51:57 +00:00
christos 0049ea08f4 Bump the queue size to 32K 2011-09-24 20:19:39 +00:00
mrg 162d7d5b76 remove an extra ".TP" that broke my build. 2011-09-22 07:30:04 +00:00
wiz bb903ea004 New sentence, new line. Remove empty EXAMPLE section. 2011-09-21 20:12:11 +00:00
christos 9a4d7431cb Add a canonicalize option to avoid disaster when one converts directories
to symlinks in the tree and back. This option is expensive, it could be
made better by cacheing, but not now.
2011-09-21 19:34:54 +00:00
christos 9525895f88 constify 2011-09-21 19:32:59 +00:00
christos 3584aaaf1c - don't use an uninitialized grouplist (from Patrick Welche)
- While here:
	* Allow all numeric users and groups
	* Error check string to number conversion
	* Factor out common code
2011-09-20 14:28:52 +00:00
joerg 6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
wiz 5f13296f84 Wording, from Snader_LB. 2011-09-15 11:52:09 +00:00
mbalmer 53d80c937c Bump (c) year. 2011-09-15 11:46:32 +00:00
plunky c8157303ac this HAVE_PCC is not (any longer) required 2011-09-13 14:00:08 +00:00
jdc f8dbae1d18 Add a cs_hwid field to cpustate and use this to store the ci_cpuid (hardware
ID).  Report this as the HwID in cpuctl.
OK jruoho@.
2011-09-11 14:54:49 +00:00
christos e1a1d844d3 merge in traceroute1.4a12. Our sources are so different that it is really
difficult to do this with an import.
2011-09-11 01:06:26 +00:00
manu 5a6d3e75bd Serialize access to file size. We already have such a thing in the
kernel, where it fixes race for PUFFS filesystems, but we need it again
in perfused since FUSE filesystems are allowed to reorder requests.

The huge issue is in the asyncrhonous SETATTR sent by fsync. It is
followed by a syncrhnous FSYNC, so if the filesystem does not reorder
requests, once the FSYNC returns, we are confident the SETATTR is done.
But since FUSE can reorder, we need to implement sync in perfused.
2011-09-09 15:45:28 +00:00
jym a0e5aa6d82 /etc/defaults/rc.conf can be modified at build time by getting additional
arch-specific hooks appended to its end (currently: i386 and amd64).

Handle this case in postinstall(8) by checking whether we are in
$SOURCEMODE or not, and generate the correct rc.conf file on the fly in
case we have to. Otherwise, postinstall(8) may install the default one
obtained from a source directory that does not have the MD hooks
appended to it.

Problem reported by wiz@. Thanks!
2011-09-06 21:39:30 +00:00
jym f618b3bb0d Set $SRC_DIR to its default value at the beginning of main() so that
usage() can print the correct value even when called early.
2011-09-06 14:13:46 +00:00
jym ec521efc45 Check that $TGZMODE is true to deduce that the set is extracted
from a .tgz instead of checking that $SRC_DIR != $SRC_ARG. These variables
can be modified in different places, so it's less error prone.
2011-09-06 14:08:05 +00:00
plunky acae68523e reinstate NULL cast by request, where the NULL was being passed as a vararg 2011-09-01 07:18:50 +00:00
christos 218314d564 don't truncate time_t 2011-08-31 16:32:48 +00:00
plunky 9f61b80465 NULL does not need a cast 2011-08-31 16:24:54 +00:00
joerg bec77c5f43 Use __dead 2011-08-31 13:32:36 +00:00
joerg 12e6140314 __dead + ANSIfy 2011-08-31 13:31:29 +00:00
joerg 011ce1522e Use __dead and __printflike 2011-08-31 13:30:44 +00:00
nakayama 65e58969b4 Fix build on mips (NOAOUT case). 2011-08-31 13:09:10 +00:00
gson 3d0694be75 Yet another format string fix 2011-08-31 08:15:08 +00:00
gson ed5e21d45c Fix format string to unbreak i386 build 2011-08-31 07:17:44 +00:00
mbalmer c3001cc345 Remove double 'static'. 2011-08-31 07:03:00 +00:00
joerg 87a5b512fc Localize variables. Use __dead 2011-08-30 21:28:27 +00:00
joerg ffcaee0540 static + __dead 2011-08-30 21:27:00 +00:00
joerg 949eeab3f6 static + __dead + G/C 2011-08-30 21:26:11 +00:00
joerg f4727fdfcf static + __dead 2011-08-30 21:18:11 +00:00
joerg c22bf27456 ANSIfy + static + __dead 2011-08-30 21:17:06 +00:00
joerg 6ede639fd6 __dead + __printflike 2011-08-30 21:14:06 +00:00
joerg 8583b49ce0 static + __dead 2011-08-30 21:03:31 +00:00
joerg 2d826702b5 ANSIfy + static + __dead 2011-08-30 20:54:18 +00:00
joerg 61a4a25cad De-__P + __dead 2011-08-30 20:52:10 +00:00
joerg 30469ad85e static + __dead 2011-08-30 20:51:29 +00:00
joerg 0cc6686eff ANSIfy + __dead 2011-08-30 20:50:24 +00:00
joerg 58b3bed15d static + __dead 2011-08-30 20:49:29 +00:00
joerg 36ae1097e8 static + ANSIfy + __dead 2011-08-30 20:45:31 +00:00
joerg 62c5413271 G/C 2011-08-30 20:43:43 +00:00
joerg f796930c37 static + ANSIfy + __dead 2011-08-30 20:42:22 +00:00
joerg 2d6640c450 static + __dead 2011-08-30 20:33:30 +00:00