aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Rule vmod returns an int with the vmod's bit on.Diego Nieto Cid2011-04-081-1/+4
| | | | | | | | | | | | | | | | | | | | This allows to combine virtual modifiers safely.
* | | | | Recreate xkb/keymap/hurd from xkeyboard-config-1.8's xfree86 keymap.Diego Nieto Cid2011-04-081-128/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modified: xkb/keymap/hurd * Don't include inexistant symbol file: pc104. * en_US was replaced by pc(pc105). * Append us layout by default as pc(pc105) no longer describes a full keyboard.
* | | | | Update key type assigment routine.Diego Nieto Cid2011-04-081-9/+27
| | | | |
* | | | | Skip to main file's default section when needed.Diego Nieto Cid2011-04-081-0/+2
| | | | |
* | | | | Lexer support for keycodes with +/- symbols and arbitrary level numbers.Diego Nieto Cid2011-04-081-1/+2
| | | | |
* | | | | debian patch: 04_cleanups.patchDiego Nieto Cid2011-04-083-7/+4
| | | | |
* | | | | debian patch: 03_hurd_keymap.patchDiego Nieto Cid2011-04-081-2/+2
| | | | |
* | | | | Install XKB data files.Diego Nieto Cid2011-04-081-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * console-client/Makefile (XKB_DATA_DIR, XKB_DATA_FILES): New variables. (DIST_FILES): Use XKB_DATA_FILES to list data files. (pc-kbd-CFLAGS): Use XKB_DATA_DIR variable. (intall): Add XKB data files to it's dependencies. ($(XKB_DATA_DIR), $(XKB_DATA_DIR)/%): New targets.
* | | | | Translate scancodes using XKB.Diego Nieto Cid2011-04-082-11/+303
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * console-client/Makefile (pc-kbd-CFLAGS): New variable. (PC_KBD_SO_SRCS): Add sources from xkb directory. (LCLHDRS): Add includes from xkb directory. (lex.c, parser.tab.h): New targets. (VPATH): New variable. (CPPFLAGS): Add xkb directory to include search path. (LFLAGS, YFLAGS): New variables. (DIST_FILES): New variable. * console-client/pc-kbd.c [XKB_SUPPORT]: Include xkb/xkb.h. (cd): Removed static qualifier. [XKB_SUPPORT] (ctrlaltbs): New variable. [XKB_SUPPORT] (xkb_repeat_delay, xkb_repeat_interval): Likewise. (gnumach_v1_input_next) [XKB_SUPPORT]: Skip conversion to set 2. [XKB_SUPPORT] (read_keycode): New function. [XKB_SUPPORT] (input_loop): Pass keycode to xkb_input_key. (struct arguments): New type. (options) [XKB_SUPPORT]: New options xkbdir, keymapfile, keymap compose, ctrlaltbs, no-ctrlaltbs, repeat-delay and repeat-interval. (parse_opt) [XKB_SUPPORT]: Handle new options. (pc_kbd_init) [XKB_SUPPORT]: Initialize XKB and load layout. (pc_kbd_start) [XKB_SUPPORT]: Initialize xkb timers.
* | | | | Add missing semicolons bison was inserting.Diego Nieto Cid2011-04-041-157/+157
| | | | | | | | | | | | | | | | | | | | * console-client/xkb/parser.y: Add semicolons where needed.
* | | | | Add type to $$ in mid-rules.Diego Nieto Cid2011-04-041-2/+2
| | | | | | | | | | | | | | | | | | | | (see http://www.mail-archive.com/help-bison@gnu.org/msg02159.html )
* | | | | debian patch: 06_gcc-4.1_fix.patchDiego Nieto Cid2011-04-041-3/+0
| | | | |
* | | | | Use external encoding converter.Diego Nieto Cid2011-04-041-3/+3
| | | | | | | | | | | | | | | | | | | | * console-client/xkb/xkb.c (cd): Change storage class to extern.
* | | | | Export function to load the keaboard layout.Diego Nieto Cid2011-04-042-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | * console-client/xkb/xkb.c (xkb_load_layout): New function. * console-client/xkb/xkb.h (xkb_load_layout): Export prototype.
* | | | | Remove keyboard driver from XKB implementation.Diego Nieto Cid2011-04-042-507/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * console-client/xkb/xkb.c (kbd_dev): Deleted variable. (gnumach_v1_compat, repeater_node,cnode, arguments): Likewise. (options, ctrlaltbs, argp, xkb_ops, driver_xkb_ops): Likewise. (gnumach_v1_input_next, read_scancode): Deleted functions. (input_loop, xkb_start, xkb_init, parse_opt): Likewise. (xkb_start, xkb_fini, xkb_set_scroll_lock_status): Likewise.
* | | | | Add XKB parser and implementation.Marco Gerards2011-03-1721-0/+13920
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * console-client/xkb/Compose: New file. * console-client/xkb/MISSING-FEATURES: Likewise. * console-client/xkb/README: Likewise. * console-client/xkb/TODO: Likewise. * console-client/xkb/compose.c: Likewise. * console-client/xkb/default.xkb: Likewise. * console-client/xkb/keysymdef.h: Likewise. * console-client/xkb/ks_tables.h: Likewise. * console-client/xkb/kstoucs.c: Likewise. * console-client/xkb/lex.l: Likewise. * console-client/xkb/makeconf.sh: Likewise. * console-client/xkb/parser.y: Likewise. * console-client/xkb/symname.c: Likewise. * console-client/xkb/xkb-data/keymap/hurd: Likewise. * console-client/xkb/xkb-data/symbols/hurd: Likewise. * console-client/xkb/xkb-data/types/hurd: Likewise. * console-client/xkb/xkb.c: Likewise. * console-client/xkb/xkb.h: Likewise. * console-client/xkb/xkbdata.c: Likewise. * console-client/xkb/xkbdefaults.c: Likewise. * console-client/xkb/xkbtimer.c: Likewise.
* | | | Fix auto-margin supportSamuel Thibault2011-03-061-5/+14
| | | | | | | | | | | | | | | | | | | | * console/display.c (display_output_one): Allow user->cursor.col to become equal to width, add linefeed on next character insertion in such case.
* | | | Use macro instead of hardcoded valueSamuel Thibault2011-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | * console/display.c (user_create): Use CONS_VERSION_MAJ_SHIFT macro instead of hardcoded value 16.
* | | | Deallocate thread ports on errorSamuel Thibault2011-03-031-1/+5
| | | | | | | | | | | | | | | | | | | | * proc/info.c (S_proc_getprocinfo): Deallocate ports obtained from task_threads() call when an allocation error will be returned.
* | | | Drop duplicate port deallocationSamuel Thibault2011-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | * libdiskfs/io-reauthenticate.c (diskfs_S_io_reauthenticate): Do not deallocate parameter port `rend_port' whan an error will be returned.
* | | | Fix duplicate port deallocationSamuel Thibault2011-03-031-2/+1
| | | | | | | | | | | | | | | | | | | | * libdiskfs/fsys-getroot.c (diskfs_S_fsys_getroot): Do not deallocate `dotdot' parameter port when an error will be returned.
* | | | Drop duplicate assignmentSamuel Thibault2011-03-031-1/+0
| | | | | | | | | | | | | | | | | | | | * libdiskfs/dir-renamed.c (checkpath): Drop duplicate np = target assignment.
* | | | Fix S_pfinet_siocgifconf given -1 as amountSamuel Thibault2011-02-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * hurd/pfinet.defs (pfinet_siocgifconf): Document that -1 is used for "all interfaces". * pfinet/pfinet-ops.c (S_pfinet_siocgifconf): Compare amount with `(vm_size_t) -1' instead of '< 0' (which can never happen).
* | | | Reference TRANSLATOR in `-a' help message.Samuel Thibault2011-02-211-1/+1
| | | | | | | | | | | | | | | | * utils/settrans.c (options): Reference TRANSLATOR in `-a' help message.
* | | | Rephrase settrans' --helpSamuel Thibault2011-02-171-2/+2
| | | | | | | | | | | | | | | | * utils/settrans.c (options): Rephrase -a and -p help to be more precise.
* | | | Add comment about finish being called several timesSamuel Thibault2011-02-141-1/+3
| | | |
* | | | Document that -p is the default option in settrans --helpSamuel Thibault2011-02-121-1/+1
| | | | | | | | | | | | | | | | | | | | * utils/settrans.c (options): Document that -p is the default option for settrans.
* | | | Add -s option to rpctraceSamuel Thibault2011-01-231-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * utils/rpctrace.c (strsize): New variable, defaults to 80. (options): Add 's' option. (main): Store 's' option value into `strsize'. (print_data): Limit the amount of printed characters to strsize.
* | | | Fix child lookups relative to new homedirSamuel Thibault2011-01-161-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | * utils/login.c (main): Update `ports[INIT_PORT_CWDIR]' as soon as new cwd is determined according to HOME, since child lookups need to be relative to new homedir (e.g. for .hushlogin).
* | | | Fix comment typoSamuel Thibault2011-01-161-1/+1
| | | | | | | | | | | | | | | | * utils/login.c (main): Fix comment typo.
* | | | Strictly adhere to the VGA register conventionSamuel Thibault2011-01-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not writing a value to the "enable display" register works for tested cards, but Linux writes a 0, and you can never know what manufacturers think. * console-client/vga-support.c (vga_exchange_palette_attributes): Write a 0 value to the "enable display" register.
* | | | Fix NULL dereferenceSamuel Thibault2010-12-251-1/+1
| | | | | | | | | | | | | | | | | | | | * pfinet/linux-src/net/ipv6/ip6_fib.c (fib6_locate): Do not dereference fn when it is NULL.
* | | | Remove bogus parenthesisSamuel Thibault2010-12-251-1/+1
| | | | | | | | | | | | | | | | * login/utmp.c (return_data): Remove bogus parenthesis.
* | | | Fix NULL dereferenceSamuel Thibault2010-12-251-1/+1
| | | | | | | | | | | | | | | | | | | | * libps/spec.c (ps_emit_user_name): Do not dereference pw when it is NULL, dereference u instead.
* | | | Fix NULL dereferenceSamuel Thibault2010-12-251-2/+4
| | | | | | | | | | | | | | | | * ftpfs/ftpfs.c (parse_startup_opt): Do not derefence sep when it is NULL.
* | | | Avoid accessing invalid memory.Diego Nieto Cid2010-11-201-3/+3
| | | | | | | | | | | | | | | | * console/console.c (vcons_lookup): Unlock using cons instead of vcons->cons.
* | | | Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurdSamuel Thibault2010-11-202-1/+10
|\ \ \ \
| * | | | Fix connect(AF_UNSPEC)Samuel Thibault2010-10-302-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes sshd startup on inet6-enabled systems. * pfinet/socket-ops.c (S_socket_create_address): Accept creating AF_UNSPEC addresses too. * pfinet/linux-src/net/ipv6/udp_ipv6.c (udpv6_connect): When address family is AF_UNSPEC, call udp_connect() and clear daddr, saddr, and rcv_saddr.
* | | | | Properly release console lock.Diego Nieto Cid2010-11-201-2/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The console lock was released only when there were no allocation errors leaving it locked in the event mmap failed. This patch moves the mutex_unlock call to a point in the flow of control where it is consistent with the lock acquisition. * console/console.c(netfs_get_dirents): Relocate mutex_unlock call to common return path.
* | | | Fix ipv6 pfinet buildSamuel Thibault2010-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | * pfinet/linux-src/net/ipv6/raw_ipv6.c (rawv6_init_sk): Replace yet-undefined raw6_sk with proper translation.
* | | | ipv6 raw fixesAlexey Kuznetsov2010-10-291-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - RFC2292 bis compliance: enable checksumming of ICMPv6 raw sockets by default, reject odd offsets - calculate checksum correctly when user forgets to uninitialize checksum word * net/ipv6/raw_ipv6.c (rawv6_frag_cksum): Fix offset check. Compensate for any user-provided checksum. (rawv6_setsockopt): Reject odd checkum offsets with EINVAL. (rawv6_init_sk): Enable kernel-computed checksum by default for IPPROTO_ICMPV6 sockets.
* | | | Fix _ports_lock usageSamuel Thibault2010-10-281-1/+2
| | | | | | | | | | | | | | | | | | | | * libports/create-internal.c (_ports_create_port_internal): Add label after mutex_unlock(_ports_lock), use it where appropriate.
* | | | Add \n to boot error messageSamuel Thibault2010-10-181-0/+1
| | | | | | | | | | | | | | | | * boot/boot.c (main): Print \n after printing boot_script_error_string().
* | | | Fix return value on `getname' errors.Pino Toscano2010-10-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the errno return value for getpeername() calls on not connected sockets: the return value of the `getname' call comes from the Linux code, so it is a negative value, in case of error. * pfinet/misc.c (make_sockaddr_port): Turn negative error values returned by `getname' calls into positive values before returning it.
* | | | Add device virtualisation support to bootZheng Da2010-09-201-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * boot/boot.c: Add '-f' option. (dev_map): New structure. (dev_map_head): New variable. (add_dev_map): New function. (lookup_dev): New function. (parse_opt): Handle the '-f' option: call 'add_dev_map'. (ds_device_open): Try to call 'lookup_dev', and open the device from the device file if it succeeds.
* | | | Add support for setting actual device flagsSamuel Thibault2010-09-203-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * pfinet/ethernet.c (ethernet_change_flags): New function. * pfinet/pfinet.h (ethernet_change_flags): New declaration. * pfinet/iioctl-ops.c (S_iioctl_siocsifflags): Also call `ethernet_change_flags' after calling `dev_change_flags'.
* | | | Merge remote branch 'origin/master-zhengda'Samuel Thibault2010-09-190-0/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: utils/rpctrace.c
| * | | | fix a bug #20612Zheng Da2009-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | * rpctrace.c (print_contents): Check the number of elements in the port array.
* | | | | Fix port transmission over pflocalManuel Menal2010-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pflocal/socket.c (S_socket_recv): Return transmitted port to caller thanks to MACH_MSG_TYPE_COPY_SEND instead of MACH_MSG_TYPE_MAKE_SEND (since this is a send right here).
* | | | | Obtain number of ports in proc and libpsantrik2010-09-186-1/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add (and implement) a proc RPC to obtain the number of Mach ports used by the target task. Add infrastructure in libps to read this information. * hurd/process.defs (proc_getnports): New RPC. * hurd/process_request.defs (proc_getnports_request): New RPC. * libps/procstat.c (proc_stat_set_flags): Call proc_getnports RPC if needed. * libps/ps.h (proc_stat): New `num_ports' field. (PSTAT_NUM_PORTS): New macro. (proc_stat_num_ports): New macro. * libps/spec.c (ps_get_num_ports): New function. (ps_num_ports_getter): New variable. (specs): New entry for `ps_num_ports_getter'. * proc/info.c (S_proc_getnports): New function.