This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



XkbAllocServerMap(3)                            XKB FUNCTIONS                           XkbAllocServerMap(3)



NAME
       XkbAllocServerMap - Allocate and initialize an empty server map description record

SYNOPSIS
       Status XkbAllocServerMap ( xkb, which, count_acts )
             XkbDescPtr xkb;
             unsigned int which;
             unsigned int count_acts;

ARGUMENTS
       - xkb  keyboard description in which to allocate server map

       - which
              mask selecting map components to allocate

       - count_acts
              value of num_acts field in map to be allocated

DESCRIPTION
       XkbAllocServerMap  allocates  and initializes an empty server map in the server field of the keyboard
       description specified by xkb.  The which parameter specifies the particular components of the  server
       map structure to allocate, as specified in Table 1.


                         Table 1 XkbAllocServerMap Masks
       ---------------------------------------------------------------------Mask --------------------------------------------------------------------Mask
       Mask                        Effect
       ---------------------------------------------------------------------XkbExplicitComponentsMask --------------------------------------------------------------------XkbExplicitComponentsMask
       XkbExplicitComponentsMask   The min_key_code and max_key_code fields
                                   of the xkb parameter are used  to  allo-cate allocate
                                   cate  the  explicit  field of the server
                                   map.

       XkbKeyActionsMask           The min_key_code and max_key_code fields
                                   of  the  xkb parameter are used to allo-cate allocate
                                   cate the key_acts field  of  the  server
                                   map. The count_acts parameter is used to
                                   allocate the acts field  of  the  server
                                   map.

       XkbKeyBehaviorsMask         The min_key_code and max_key_code fields
                                   of the xkb parameter are used  to  allo-cate allocate
                                   cate  the  behaviors field of the server
                                   map.

       XkbVirtualModMapMask        The min_key_code and max_key_code fields
                                   of  the  xkb parameter are used to allo-cate allocate
                                   cate the vmodmap  field  of  the  server
                                   map.


       If the server map of the keyboard description is not NULL and any fields are already allocated in the
       server map, XkbAllocServerMap does not overwrite the existing values. The only exception is with  the
       acts array. If the count_acts parameter is greater than the current num_acts field of the server map,
       XkbAllocServerMap resizes the acts array and resets the num_acts field accordingly.

       If XkbAllocServerMap is successful, it returns Success. Otherwise, it can return either  BadMatch  or
       BadAlloc errors.

DIAGNOSTICS
       BadAlloc       Unable to allocate storage

       BadMatch       A compatible version of Xkb was not available in the server or an argument has correct
                      type and range, but is otherwise invalid

       BadValue       An argument is out of range

NOTES
       The min_key_code and max_key_code fields of the xkb parameter must be legal values. If they  are  not
       valid, XkbAllocServerMap returns BadValue.



X Version 11                                    libX11 1.2.1                            XkbAllocServerMap(3)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...