summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add a __DECONST() to unbreak the build.des2003-07-151-1/+1
|
* Back out revision 1.22.ceri2003-07-151-1/+1
| | | | Requested by: bde
* Fix typo: Passing the first argument to exit() in out2 does not work.marcel2003-07-151-1/+1
| | | | Trust me.
* _start() needed to be written in assembly. See crt1.S.marcel2003-07-141-124/+0
|
* Rewite _start(). We cannot use a C function due to the fact that wemarcel2003-07-132-2/+193
| | | | | | | | | | | | | | | | | don't call it according to the runtime specification and especially WRT to gp this can cause trouble. The gcc 3.3.1 import broke the ia64 runtime because the compiler saved gp prior to us being able to set it properly. Restoring gp after the calls would then invalidate gp and cause segmentation faults later on. By rewriting _start() as an assembly function, we also avoided even more gcc dependences, by trying to use gcc specific features to work around the problem. This version of _start() does not reference _DYNAMIC. We register the cleanup function when it's a non-NULL pointer. The kernel will always pass a NULL pointer and dynamic linkers may pass a non-NULL pointer. The machine independent code to set __progname now unfortunately is written in assembly. So be it.
* ioctl macros and defines are now present in ioccom.h, not ioctl.h.ceri2003-07-131-1/+1
| | | | | | | Update the manpage to reflect this. PR: docs/54235 Submitted by: Karen Thode <thode12@msn.com>
* Remove -D_THREAD_SAFE.deischen2003-07-131-1/+1
| | | | Submitted by: Craig Rodrigues <rodrigc@crodrigues.org>
* Don't resume sigwait thread If signal is masked.davidxu2003-07-092-16/+24
|
* POSIX says if a thread is in sigwait state, although a signal may not indavidxu2003-07-094-22/+58
| | | | | | | | its waitset, but if the signal is not masked by the thread, the signal can interrupt the thread and signal action can be invoked by the thread, sigwait should return with errno set to EINTR. Also save and restore thread internal state(timeout and interrupted) around signal handler invoking.
* Restore signal mask correctly after fork().davidxu2003-07-094-8/+12
|
* Save and restore thread's error code around signal handling.davidxu2003-07-092-2/+4
| | | | Reviewed by: deischen
* When _PTHREADSINVARIANTS is defined SIGABRT is not includedmtm2003-07-083-2/+19
| | | | | | in the set of signals to block. Also, make the PANIC macro call abort() instead of simply exiting.
* Correctly print signal mask, the bug was introduced by cut and pastedavidxu2003-07-072-22/+40
| | | | in last commit.
* Add a newline to debug message.davidxu2003-07-072-2/+2
|
* Avoid accessing user provided parameters in critical region.davidxu2003-07-0718-92/+130
| | | | Reviewed by: deischen
* Remove MAINTAINER= lines from individual Makefiles in favor of thegshapiro2003-07-074-8/+0
| | | | MAINTAINER file (which already had entries for sendmail).
* Print thread's scope, also print signal mask for every thread and printdavidxu2003-07-072-34/+26
| | | | it in one line.
* Change all instances of THR_LOCK/UNLOCK, etc to UMTX_*.mtm2003-07-068-23/+23
| | | | | It is a more acurate description of the locks they operate on.
* There's no need for _umtxtrylock to be a separate function.mtm2003-07-063-13/+8
| | | | Roll it into the pre-existing macro that's used to call it.
* Add const to __setrunelocale prototypeache2003-07-061-4/+4
|
* Reorganize wrapper around setrunelocale() to mark it as deprecatedache2003-07-063-25/+41
| | | | in FreeBSD 6
* Add more useful cross-references to the SEE ALSO section.tjr2003-07-051-2/+7
|
* Catch up with recent FP-related changes to scanf.3 and vfwscanf.c.tjr2003-07-051-31/+16
|
* Fix two incorrect uses of sizeof: we need to divide the size of the buffertjr2003-07-051-11/+6
| | | | | | by sizeof(wchar_t) to get the number of wide characters it contains. Remove the !hardway micro-optimisation from the CT_INT case to avoid having to fix it for wide characters.
* Merge recent floating point conversion changes from vfscanf.c.tjr2003-07-051-93/+175
|
* Correctly lock/unlock signal lock. I must be in bad state, need to sleep.davidxu2003-07-042-2/+4
|
* Always check and restore sigaction previously set, also access user parameterdavidxu2003-07-042-8/+14
| | | | outside of lock.
* With the latest mdoc(7), we can now fix the synopsis like this.ru2003-07-031-3/+9
| | | | Desired by: bde
* If select() is only used for sleep, convert it to nanosleep,davidxu2003-07-032-8/+18
| | | | it only need purely wait in user space.
* _pthread_mutex_trylock() is another internal libc function that must blockmtm2003-07-031-0/+8
| | | | signals.
* Check if thread is in critical region, only testing check_pendingdavidxu2003-07-032-2/+4
| | | | is not enough.
* Style.ru2003-07-022-4/+4
|
* Take thr_support.c out of SRCS so that it does not end up in libraries.ru2003-07-024-6/+16
| | | | | | Record the missing dependency of thr_libc.So on the libc_pic.a library. OK'ed by: kan
* Set unlock_mutex to 1 after locked mutex.davidxu2003-07-022-4/+8
| | | | | Use THR_CONDQ_CLEAR not THR_COND_SET in cond_queue_deq, current cond_queue_deq is not used.
* Make libc/${MACHINE_ARCH} include directory not required by Alpha.ru2003-07-022-2/+2
| | | | | Submitted by: bde Tested by: beast
* Fix typo.davidxu2003-07-022-2/+2
|
* When size is 1 should just null terminate the string. The dummy variablejkh2003-07-021-3/+5
| | | | | | | | | is made an array of two, to explicitly avoid stack corruption due to null-terminating (which is doesn't actually happen due to stack alignment padding). Submitted by: Ed Moy <emoy@apple.com> Obtained from: Apple Computer, Inc.
* Begin making libthr async signal safe.mtm2003-07-021-2/+22
| | | | | | | | Create a private, single underscore, version of pthread_mutex_unlock for libc. pthread_mutex_lock already has one. These versions are different from the ones that applications will link against because they block all signals from the time a call to lock the mutex is made until it is successfully unlocked.
* libc/${MACHINE_ARCH} include directory is required by Alpha,kan2003-07-021-1/+1
| | | | add it to CFLAGS.
* Add a new mount flag MNT_BYFSID that can be used to unmount a fileiedowse2003-07-011-1/+17
| | | | | | | | | | | | | | | | | | system by specifying the file system ID instead of a path. Use this by default in umount(8). This avoids the need to perform any vnode operations to look up the mount point, so it makes it possible to unmount a file system whose root vnode cannot be looked up (e.g. due to a dead NFS server, or a file system that has become detached from the hierarchy because an underlying file system was unmounted). It also provides an unambiguous way to specify which file system is to be unmunted. Since the ability to unmount using a path name is retained only for compatibility, that case now just uses a simple string comparison of the supplied path against f_mntonname of each mounted file system. Discussed on: freebsd-arch mdoc help from: ru
* Do not attempt to reque a thread on a mutex queue. It may be thatmtm2003-07-011-1/+1
| | | | | | | | | a thread receives a spurious wakeup from sigtimedwait(), so make sure that the call to the queueing code is called only once before entering the loop (not in the loop). This should fix some fatal errors people are seeing with messages stating the thread is already on the mutex queue. These errors may still be triggered from signal handlers; however, since that part of the code is not locked down yet.
* Unbreak "make checkdpadd".ru2003-07-012-2/+2
|
* o strmode(3) returns void not 0.maxim2003-07-011-5/+0
| | | | | | PR: docs/53488 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 1 week
* Axe AINC.ru2003-07-016-7/+2
| | | | Submitted by: bde
* Fixed some style bugs.bde2003-07-011-6/+7
|
* Don't segfault if setproctitle(3) is called with NULL initially.alfred2003-07-011-0/+1
| | | | | | | | The old buffer was not being initialized and a later str*() op on it would cause a crash if it wasn't initialized by a previous call to setproctitle(3) with an actual string. Noticed by: Ashley Penney <ashp@unloved.org>
* Separate the description of the flags for mount(2) and unmount(2)iedowse2003-06-301-14/+16
| | | | | | | | to clarify which system call accepts which arguments. Previously the manual page gave the impression that calling unmount() with flags of (MNT_FORCE | MNT_UPDATE | MNT_RDONLY) would downgrade a read-write mount to read-only, which is clearly untrue; to do that, these flags should be passed to mount() instead.
* bsd.lib.mk,v 1.143 no longer uses ld(1) directly to stripru2003-06-301-1/+0
| | | | | | | symbols from intermediate object files, so these hacks to get AMD64 compile are no longer needed. Tested on: sledge.FreeBSD.org
* MFi386: revision 1.19.ru2003-06-301-3/+1
|
* Catchup with _thread_suspend() changes.mtm2003-06-303-3/+9
|
OpenPOWER on IntegriCloud