Marius Strobl 073e8552f8 - Move OFW_NAME_MAX, used as a limit for OFW property names and device
identifiers, to openfirmio.h as OFIOCMAXNAME, so programs can use it
  for buffer sizes etc.
  Note: Although this is only a rough upper limit to make the code more
  robust and to prevent the allocation of ridiculous amounts of memory,
  the current limit of one page (8191 + '\0' in openfirm_getstr()) still
  appears a bit high. The maximum length of OFW property names is 31.
  I didn't find a maximum length for the device identifiers in the OFW
  documentation but it certainly is much smaller than 8191, too.
- Enable the OFIOCSET ioctl, i.e. move it out from under #if 0.
- Don't use openfirm_getstr() for the property value in OFIOCSET, there
  are also properties whose values aren't strings and it makes sense to
  use a different maximum length for property values than OFW_NAME_MAX/
  OFIOCMAXNAME. The maximum accepted property value is defined in
  openfirmio.h as OFIOCMAXVALUE (currently the maximum size of the value
  of the nvramrc property).
- Make OFIOCSET not return EINVAL when OF_setprop() returns a different
  length for the written value than it was told to write, this is normal
  for the text string values of the properties in the OFW /options node.
  Instead, only return EINVAL if OF_setprop() returned -1 (value could
  not be written or property could not be created). Add a comment about
  the specialty of the OFW /options node.
- Make OFIOCSET return the length of the written value returned by
  OF_setprop(), just like OF_getprop() does. Quite useful, at least for
  debugging.

Reviewed by:	tmm
2004-05-22 16:43:42 +00:00
..
2004-05-13 19:15:21 +00:00
2004-05-11 20:46:05 +00:00
2004-04-17 20:30:05 +00:00
2004-05-20 14:49:12 +00:00
2004-02-21 21:10:55 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2004-05-21 20:34:04 +00:00
2004-05-22 01:56:18 +00:00
2004-03-21 18:16:49 +00:00
2004-04-02 16:41:16 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2004-02-21 21:10:55 +00:00
2004-05-13 01:24:48 +00:00
2004-03-14 23:03:57 +00:00
2004-05-21 19:47:55 +00:00
2003-08-24 17:55:58 +00:00
2004-05-13 11:33:44 +00:00
2004-02-21 21:10:55 +00:00
2004-02-21 21:10:55 +00:00
2004-04-14 02:20:01 +00:00
2004-02-21 21:10:55 +00:00
2004-05-17 17:16:58 +00:00
2004-05-22 14:18:05 +00:00
2003-08-24 17:55:58 +00:00
2004-05-11 20:06:12 +00:00