summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2007-09-03add recaloc(3)Todd C. Miller
2007-09-03add memrchr(3)Todd C. Miller
2007-06-06no longer make include/netipx dirTheo de Raadt
2007-06-05_FD_LOCK/UNLOCK() is libpthread specific and not needed for librthread, soKurt Miller
isolate its usage to libpthread only and replace with generic non-static mutex support in the one place it is needed: - remove _FD_LOCK/UNLOCK from lseek and ftruncate in libc and make the functions weak so that libpthread can override with its own new versions that do the locking. - remove _thread_fd_lock/unlock() weak functions from libc and adjust libpthread for the change. - add generic _thread_mutex_lock/unlock/destroy() weak functions in libc to support non-static mutexes in libc and add libpthread and librthread implementations for them. libc can utilize non-static mutexes via the new _MUTEX_LOCK/UNLOCK/DESTROY() macros. Actually these new macros can support both static and non-static mutexes but currently only using them for non-static. - make opendir/closedir/readdir/readdir_r/seekdir/telldir() thread-safe for both thread libraries by using a non-static mutex in the struct _dirdesc (typedef DIR), utilizing it in the *dir functions and remove remaining and incorrect _FD_LOCK/UNLOCK() use in libc. - add comments to both thread libraries to indicate libc depends on the current implementation of static mutex initialization. suggested by marc@ - major bump libc and libpthread due to function removal, structure change and weak symbol conversions. okay marc@, tedu@
2007-06-03Add ffs2 support to dump/restore. From FreeBSD with some NetBSD changes.Todd C. Miller
With help from otto@
2007-05-29based on a diff from Matt Provost: allow printing of ldd informationJason Wright
on libraries themselves. Works by setting up the debugging flags then calling dlopen() to do the heavy lifting. ok drahn
2007-05-05Provide hook so that rthreads can provide a spinlock to protect from racesDale Rahn
in lazy binding. ok art@, kurt@
2007-03-17allow extern inline stuff to proceed unchanged thru the mess that theMarc Espie
combined GCC and ISO committees managed to make out of it. With this, gcc >= 4.3 can grok its way through it correctly. okay kettenis@, with some help figuring stuff out.
2007-03-14do the adjustment of arbitrary 128 -> BLF_MAXUTILIZED in userland as well,Alexander von Gernler
also discussed on tech@ a while ago. ok pedro@ tedu@ thib@
2007-03-05Remove _err() calls from getnetgrent.c. This is a minor API changeTodd C. Miller
as _ng_sl_add() now returns a value. The only consumer of that interface is netgroup_mkdb(8). Adapted from NetBSD. OK deraadt@
2007-02-13remove prereq, by using a pre-generated include file (this one should nowMarc Espie
be MI since we removed stuff that was arch-dependent). The Configure script still rebuilds a copy of that file, and we check it for diffs. okay millert@
2007-02-08g/c __DTF_READALL. It was a flag to the internal __opendir2() butTodd C. Miller
is never set now that the unionfs support has been removed from readdir(). OK pedro@
2006-12-20zap bogus sentinel, as noticed by dasn.Marc Espie
okay theo
2006-11-10add void set_rpc_maxgrouplist(int), to be able to make mount_nfs -gAlexander von Gernler
working again. help from millert@, ok deraadt@ pedro@
2006-09-17add lldiv prototype; ok deraadt@Damien Miller
2006-08-28zap argument name, okay millert@Marc Espie
2006-07-26TIMEOUT* values are not part of the protocol. tftp.h is a namespaceTheo de Raadt
export of the protocol. you shall not add non-protocol stuff to such a file, period.
2006-07-26Fixing several timeout quirks at tftpd and tftp:Marcus Glocker
- move TIMEOUT* defines to arpa/tftp.h, as they are used several times in tftpd and tftp, and the values are part of the RFC definition. - tftpd and tftp did count the total retransmission time in retries instead in seconds. fixed. - tftpd rexmt timeout was hardcoded by a define and therefore didn't changed when the timeout option was sent. fixed. - limit total retransmission timeout in tftp to also 255 seconds. - replace obvious atoi()'s by strtonum(). ok claudio@
2006-07-20Add blksize option support for tftpd according to RFC 2348.Marcus Glocker
Note: While testing the new option, we noticed that our stable tftpd has a problem if any option is set (e.g. tsize) and you try to put a file. This has nothing todo with our new blksize option. We fix this as next. ok claudio@
2006-07-12add some more C99 functions: round(3) and roundf(3).Brad Smith
By Steven G. Kargl <kargl at troutmask dot apl dot washington.edu> From FreeBSD
2006-07-12add missing prototypes for trunc/truncf.Brad Smith
2006-05-05delint; ok millert@ beck@Otto Moerbeek
2006-04-01- Plug huge mem leak; mostly samba was suffering.Otto Moerbeek
- Fix semantics: seekdir(pos); telldir() shoud return pos. The code that implements this will be made faster in a later commit. - We loose documented behaviour (after closedir() the telldir() positions are not valid anymore). This was never in Posix, and most other systems have nothing like it. Diff originally from Paul Thorn, rewritten by me using some FreeBSD code. "slap it in" deraadt@
2006-03-31kvm_openfiles() should take int flag, not unsignedTheo de Raadt
2006-03-31after we changed mode_t to be an int, the devname() man page wasTheo de Raadt
updated but the function itself never was; ok millert
2006-03-23kill evil \r; from cedricMichael Shalayeff
2006-02-06typos from alexey dobriyan;Jason McIntyre
2006-01-31Annotate _assert()/__assert2() as __dead.Hans-Joerg Hoexer
As discussed with espie@, ok millert@
2006-01-16use standard type uint32_t, instead of BSD-specific u_int32_tMarc Espie
tell user to get it through stdint.h (note old sys/types.h still works, for now). okay millert@, jmc@
2006-01-15Add comments to show which printf/scanf formats match which typesTodd C. Miller
2006-01-15Update {PRN,SCN}*PTR defines to match types changesTodd C. Miller
2006-01-13Remove neither documented nor found in any spec ctermid_r() function - ctermid()Miod Vallat
is reentrant in its current implementation anyway. Surfing on the recent major version bump, ok millert@ deraadt@
2006-01-13Add lldiv(), imaxabs(), imaxdiv(), strtoimax() and strtoumax()Todd C. Miller
2006-01-13Include the function name in assert() output. From espie@Todd C. Miller
2006-01-06Add real C99 stdint.h and inttypes.h based on an initial version I did inTodd C. Miller
1997 (yes, really).
2006-01-06Adapt things to use __type_t instead of _BSD_TYPE_T_Todd C. Miller
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
2005-12-31Move TTY_NAME_MAX and LOGIN_NAME_MAX to sys/syslimits.hTodd C. Miller
Use correct values for _POSIX_TTY_NAME_MAX and _POSIX_LOGIN_NAME_MAX Define MAXLOGNAME in terms of LOGIN_NAME_MAX OK krw@
2005-12-29zap unused ohash_lookup_string declaration; ok espieJared Yanovich
2005-12-28Split off the non-kernel visible portion of sys/errno.h into aTodd C. Miller
separate errno.h. sys/errno.h now only contains errno values (which is included byerrno.h). OK deraadt@
2005-12-21Do not declare errno as extern int, set it via __errno().Todd C. Miller
2005-12-20Get rid of non-OpenBSD bits and use _BYTE_ORDER not BYTE_ORDERTodd C. Miller
OK deraadt@
2005-12-19This piece was missed in the _FOO_SOURCE -> __FOO_VISIBLE change set.Todd C. Miller
2005-12-13First step in include files overhaul. Use __FOO_VISIBLE (as definedTodd C. Miller
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
2005-11-24undelete died a while back; millert okTheo de Raadt
2005-11-21Move contents of sys/select.h to sys/selinfo.h in preparation for aTodd C. Miller
userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
2005-11-20brk() and sbrk() should use void *, not char *. Note that sbrk()Todd C. Miller
should take intptr_t, not int, but we don't presently have intptr_t available from unistd.h. OK marco@
2005-11-17Introduce a few c99 functions: {l,ll}{rint,round}{,f}. From NetBSD viaOtto Moerbeek
jason@. Man page fixes by jmc@, prodding by jsg@. ok mickey@
2005-11-16CODESET support. okay millert@, otto@Marc Espie
(not really useful for now, it mostly helps some programs which want to use it, it will become useful when we have full 16 bits locale).
2005-09-27use xargs -r0 for our build processTheo de Raadt
2005-08-09Add VIS_GLOB to escape special characters used by shell-style globbing.Todd C. Miller
From Solar Designer based on changes in FreeBSD. OK deraadt@