Commit Graph

15250 Commits

Author SHA1 Message Date
joerg f2ac4d0c2a Add __format_arg attribute to gettext(3) and friends. 2011-10-14 22:42:01 +00:00
joerg ac86ba952c Hook up SQLite into the build 2011-10-13 22:08:16 +00:00
christos b13e8d0c26 Remove duplicate documentation that is mentioned in stickt(7) 2011-10-12 22:46:36 +00:00
plunky 7602c6b7f6 use WARNS?=4 for all Lua modules 2011-10-11 07:10:15 +00:00
tnozaki 6b58a1b843 revert r1.21, still problem exists for posix2008 mbsnrtowcs(not yet commited),
but i have no time to investigate t_mbrtowc failure.
2011-10-10 22:45:45 +00:00
christos 57ad8fd338 Handle sun2 2011-10-10 20:43:00 +00:00
christos 974dae711d turn on warnings, and fix compilation issues. 2011-10-10 20:41:05 +00:00
christos 627cbe00c4 pass lint on i386 2011-10-09 22:14:17 +00:00
christos 407d8594d2 Prevent regcomp/regexec DoS attacks by limiting the amount of memory used
and the level of recursion. Thanks to Maksymilian Arciemowicz for discovery
and help with the implementation.
2011-10-09 18:23:00 +00:00
mbalmer 63bfe64311 Link the gpio(4) Lua module to the build and add it to the set lists.
(There is no manual page yet, since we have not yet decided where to put
them for Lua modules.)
2011-10-08 13:14:03 +00:00
mbalmer 66e9bcb443 Add NetBSD CVS marker, remove some whitespace. 2011-10-08 08:46:40 +00:00
mbalmer d525bcd694 Makefile to build gpio.so. 2011-10-08 08:36:27 +00:00
mbalmer 540bd6bd87 Descent into lua. 2011-10-07 21:33:56 +00:00
mbalmer 320efb436a Add stub Makefile, not yet called. 2011-10-07 21:23:32 +00:00
mbalmer 159188527b Interface gpio(4) from Lua. Not linked to the build. 2011-10-07 21:14:19 +00:00
tnozaki 9f0b22ed7d update string pointer when input is partial escape sequence or multibyte. 2011-10-07 18:59:13 +00:00
christos adc9c9a3d6 Provide symbol definitions for environ and __progname. These are duplicate
definitions to the ones provided by csu, but harmless since the linker resolves
them. There are 3 non weak data symbols provided in crt0.o:

    D __progname [initialized data, assigned to ""]
    B __ps_strings [BSS since assigned to 0]
    C environ [common, uninitialized]

__ps_strings had already a second definition in libc (in BSS), now we added
__progname and __ps_strings (in BSS).

To get rid of the duplicate definition, we can remove them from csu, and
move the assignments to libc.

This is done so that libc has no undefined symbols so that linker maps
that want to do:
    ...
	local:
		*;
    ...
don't end up producing link failures for libc.
2011-10-06 20:31:41 +00:00
christos 9924597a17 Include limits.h to get PTHREAD_KEYS_MAX, and move its definition there. 2011-10-06 16:03:48 +00:00
jruoho c28242299e Xref kcpuset(9). 2011-10-06 05:24:41 +00:00
roy 62480e1c72 There is no standard way of getting a list of aliases for the
terminal. However, some applications such as telnet want to know this.
ncurses dumps the terminfo header into an undefined variable ttytype
and these applications then parse it to work out the aliases.
We should do the same for now, until a standard mechanism for getting
the information is available or the need for it goes away.
2011-10-05 10:46:08 +00:00
christos b6f308812d fixed warnings where wint_t is unsigned. 2011-10-04 15:27:04 +00:00
roy 64afaacce6 Move longname(3) from curses to terminfo, pre-cursor to fix PR/43386. 2011-10-04 11:01:13 +00:00
roy 2f9b6d37f2 Fix tparm.
As we now go via tiparm, store nums as int to conserve memory.
2011-10-03 20:13:48 +00:00
roy 91ab69b0df Remove _ti_freeterm as consumers should just use del_curterm. 2011-10-03 19:18:55 +00:00
roy 7fc83a7d87 Correct args 2011-10-03 19:15:03 +00:00
njoly e2c203c871 Note functions failure for unknown timer type. 2011-10-03 15:49:02 +00:00
christos 8c9fc8838c fix broken change (parenthesis in the wrong place). From Nirbhay Choubey 2011-10-03 14:09:38 +00:00
roy 44e794b040 Install correct man page links. 2011-10-03 13:10:58 +00:00
roy 4060cbcd0c Use tiparm instead of vtparm. 2011-10-03 12:32:15 +00:00
roy 39aae097d0 Correctly use ti_ instead of t_ for our extensions as per the man page.
Replace vtparm with tiparm.
tiparm is also non standard, but has been proposed at least.
2011-10-03 12:31:51 +00:00
roy fd2d10c6b0 Add termname(3) as defined by POSIX. 2011-10-02 19:24:25 +00:00
christos 0f48379f18 put back pthread__dbg variable; this is set to no zero by td_open() when
debugging to avoid multiple td_open() mess.
2011-10-02 18:18:56 +00:00
christos 80e86efb1f constify. 2011-10-02 18:18:14 +00:00
christos a92b0ce490 don't use %edi! 2011-09-30 23:45:41 +00:00
christos 6dd90d6d37 make rounding work 2011-09-30 23:42:00 +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
christos 26ca52544d PR/44293: Paul Goyette: Fix the mess of the rounding code. 2011-09-30 17:42:34 +00:00
christos 64eddf5284 even simpler. 2011-09-29 22:55:45 +00:00
christos cfa5bcb221 even shorter 2011-09-29 22:53:13 +00:00
christos cfb62a8b7a add a simpler version 2011-09-29 22:46:00 +00:00
christos 38179c4fc2 add a simpler version. 2011-09-29 22:45:20 +00:00
christos 41d70a0317 Instead of using a PICGOT relocation for map, use just a pc-relative one
since it is guaranteed to be close enough. Fixes issue with binutils-2.21.1a
(probably a bug).
2011-09-28 15:11:42 +00:00
christos f02b490980 include <wchar.h> if we don't have wcsdup() 2011-09-28 14:08:04 +00:00
mrg f5aeae98ef add libgomp to this list of libs; so compat finds it properly. 2011-09-23 07:12:10 +00:00
christos 4e692bff8b document what size is. 2011-09-22 18:21:58 +00:00
njoly a7999336ff In functions list, switch from tab characters to Ta macro. Makes
nroff properly handle xrefs.
2011-09-22 18:14:09 +00:00
joerg 39079c5f77 Explicitly add back __resumecontext wrapper 2011-09-20 08:42:29 +00:00
joerg 0a2b758384 Mark _resumecontext as dead. ANSIfy all declarations for it. 2011-09-19 21:24:57 +00:00
christos 0786f153d9 bump for hcreate_r and friends 2011-09-18 23:57:06 +00:00
njoly f18fdd46cc Fix a few xrefs. 2011-09-18 10:58:28 +00:00