Commit Graph

53 Commits

Author SHA1 Message Date
andvar 57a185009a s/Adapatation/Adaptation/ in l2cap sysctl description. 2023-12-17 14:38:49 +00:00
rillig 9f6b0b0b98 sdpquery: fix undefined behavior when calling ctype functions
lint says: warning: argument to 'function from <ctype.h>' must be cast
to 'unsigned char', not to 'int' [342]
2021-08-27 17:41:39 +00:00
kamil 77a1ad5f00 Switch the iconv(3) prototype to the POSIX conformant variation
Remove const from the 2nd argument.

const char ** and char ** are incompatible types and it was a cost to keep
the technically incompatible form for a more purist variation. NetBSD was
almost the last alive OS to still keep the const argument (known leftovers:
Minix and Illumos).

Keep the const form for the internal purposes inside citrus and rump.

Address the build breakage fallout in the same change.

There are no ABI changes.

Change accepted by core@.
2019-10-24 18:17:14 +00:00
plunky d82c710316 update several profiles, bringing up to date decoding of all the
Bluetooth 1.1->4.2 Service Discovery specifications I could find,
namely:

    Wireless Access Protocol
    Multi-Profile Specification
    Calendar, Tasks & Notes
    Message Access Profile
    Message Notification Service
    Global Navigation Satellite System
    Health Device Profile
    File Transfer Protocol
    3D Display
    General Access Profile
    Generic Attribute Server

all documentation is on bluetooth.org, under

    https://www.bluetooth.org/en-us/specification
2015-12-11 21:05:18 +00:00
christos ff53269704 fix some error handling. 2015-06-16 22:54:10 +00:00
plunky e8fd30eb55 parse and print the HIDLANGIDBaseList attribute 2015-03-16 19:10:48 +00:00
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
christos 6e28978d84 fix unused variable warnings 2013-10-18 20:47:06 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
joerg 6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
plunky 1803dc4bc8 when printing URL strings, don't use VIS_HTTPSTYLE, it does
not quite work as I expected.. just use VIS_CSTYLE
2011-09-15 17:52:53 +00:00
plunky a54eea1c06 add print_utf8_string for some profiles that specify UTF-8 specifically,
and supply a print_codeset_string() so we don't need void * casts to avoid
the char ** -> const char ** complaint
2011-08-20 09:18:47 +00:00
christos e3f2281ab3 kill gcc-4.5 warnings 2011-08-14 13:27:47 +00:00
plunky cc67630292 ensure string buffer is null terminated, for zero length strings.. 2011-07-07 10:49:38 +00:00
plunky f88159b8d2 parse IEEE 1284 Device ID, since it is not strictly a
string, and may run longer than a line
2011-07-07 10:26:00 +00:00
plunky 2424b4a6bc use size_t to satisfy lint 2011-06-25 09:16:52 +00:00
plunky 9a6467a351 some attributes contain comma separated lists which are too long to
show on a single line, split them up
2011-06-24 20:53:56 +00:00
plunky b0e371d8b4 in the "Basic Printing Profile" it is not really very clear
which ServiceClass the attributes relate to, so link them
to "Direct Printing" and "Printer Status" as well as
"Reference Printing", since I have a printer (HP460) which
does not claim the latter.
2011-06-24 20:11:23 +00:00
plunky 45c72a0110 if print_attribute() did not print, we should try the next
service_class before failing
2011-06-24 20:06:04 +00:00
plunky 10d720db72 interpret "Hardcopy Cable Replacement Profile" attributes 2011-06-24 19:03:46 +00:00
plunky 12d259798e interpret "Basic Imaging Profile" attributes 2011-06-24 18:50:32 +00:00
mrg c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
joerg 9f52716d37 Properly use format strings 2011-05-24 12:44:30 +00:00
plunky 7349c9ffe7 use built-in macro ___STRING() rather than rolling our own 2011-02-08 18:14:00 +00:00
plunky a8cbf485eb on reflection we can use uintmax_t here instead of trying to decode
the value manually, as only 17 bits are defined and the value is
unlikely to exceed UINTMAX_MAX (would only prevent decoding)
2010-12-14 15:18:20 +00:00
plunky c7407d6266 add attributes from the Basic Printing Profile v1.2r00 2010-12-13 21:08:37 +00:00
wiz 8f657e21de Fix typo (specifed -> specified). 2010-02-18 14:00:39 +00:00
plunky e16149e27c add alias for Plug'n'Play Information service UUID.
(This is sometimes used in HID devices to provide manufacturer information)
2009-12-05 16:54:13 +00:00
plunky 60e7a7b128 add translation for "802.1Q" ethertype 2009-11-22 18:53:44 +00:00
wiz ddecca9be6 Fix Dd argument (use full month names). 2009-10-06 21:39:58 +00:00
plunky 0fbc382d6d allow to specify 32-bit bluetooth short alias or full UUID strings
on the commandline.
2009-10-06 19:21:17 +00:00
plunky 46834460fc add SupportedRepositories attribute for Phonebook Access profile
providing PhonebookAccessServer service
2009-08-20 11:07:42 +00:00
plunky 018ad52aa7 add new Service Class ID and Protocol UUIDs from the Service Discovery
assigned numbers document at www.bluetooth.com

add detail printing for Message Access Profile v1.0
2009-07-25 17:32:47 +00:00
plunky 447afe8d7e add interpretation of "PNP Information" service class (Device ID profile) 2009-07-04 16:01:15 +00:00
wiz b0f5ac9634 Add missing apostrophe. 2009-05-12 18:54:31 +00:00
plunky 384153c15a update sdpquery with a newer version that fetches the whole service
record and displays it in a human readable fashion.
2009-05-12 18:37:50 +00:00
plunky b2f181453f this needs libsdp no more 2009-05-12 13:15:10 +00:00
plunky 8650959ae7 ensure that sdpquery continues to build while I am in progress of
updating Service Discovery Protocol API
2009-05-07 18:12:08 +00:00
lukem 9ad3f56728 Fix -Wsign-compare issues 2009-04-13 07:23:14 +00:00
joerg 1cc1109801 Specify width for tag list. 2009-03-10 20:23:47 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
plunky bbbbeb6a46 use stderr for printing usage messages 2007-11-06 21:35:52 +00:00
plunky 89eb056b33 remove the lower bound limitation on UUID, it is not necessary or mandated 2007-11-04 09:02:47 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
plunky 8238f45994 fix warnings produced by -Wextra 2007-03-30 21:25:00 +00:00
wiz 8571efaf27 Bump date for previous. 2007-02-17 09:39:11 +00:00
plunky d00be208b6 expand list of service classes that we know 2007-02-17 09:19:06 +00:00
plunky 315d0953b6 minor adjustment to .Bl .. .El after reading mdoc(7) 2007-01-25 20:29:56 +00:00
wiz e4113c2f20 Bump date for previous. 2006-08-23 20:39:01 +00:00
plunky a097328fe5 Add service discovery support for the Handsfree profile 2006-08-17 20:13:31 +00:00