Commit graph

391 commits

Author SHA1 Message Date
Warner Losh c0344bf061 Add prototypes for strl* functions
Forgotten by: imp
Reported by: bde
1999-08-16 06:53:13 +00:00
Ralf S. Engelschall 026cb3a62c Cleanups to the pthread header files.
Submitted by:   Ralf S. Engelschall <rse@engelschall.com>
Reviewed by:    John Birrell <jb@cimlogic.com.au>
1999-07-31 08:36:07 +00:00
Daniel Eischen 5b90d09f8a Hide pthread cancellation routines behind #ifdef NOT_YET. They are
not currently supported.  Also corrected the declaration for
pthread_testcancel which incorrectly returned int when POSIX and
SUSv2 both say it should be void.

Submitted by:	Ralf S. Engelschall <rse@engelschall.com>
Reviewed by:	John Birrell <jb@freebsd.org>
1999-07-27 03:29:01 +00:00
Hidetoshi Shimokawa f2fd63aff2 Make profil() 64bit-safe for alpha.
uintfptr_t may be better for offset, but we must wait until
the definition of uintfptr_t moves from machine/profile.h.

Reviewed by: bde
1999-07-16 06:28:55 +00:00
Steve Price 47fe9db9e6 Allow fpsetmask(3) and friends to be used from a C++ program on the Alpha.
Reviewed by:	dfr
1999-06-22 17:08:25 +00:00
Sheldon Hearn 1e61f70124 Add missing declarations.
PR:	12058
Submitted by:	Mikhail Teterin <mi@aldan.algebra.com>
1999-06-21 17:07:20 +00:00
Peter Wemm f05a568074 Change an internal variable from "class" to "ns_class" for C++'s benefit.
Apparently BIND-8.2.1 uses ns_class.

Submitted by: John Plevyak <jplevyak@inktomi.com>
1999-06-04 22:38:27 +00:00
Peter Wemm 78121e79aa Add a strsignal(3) (like strerror(3)) for libc compatability with other
systems. NetBSD, Linux, SVR4 etc all have it.
1999-05-18 04:48:58 +00:00
Bruce Evans 95b2e7ca5b Restored rev.1.11 which was clobbered by rev.1.12 (translated to `C'). 1999-05-11 07:28:53 +00:00
Jordan K. Hubbard da8f43d1fc Protect declarations for C++ users.
Submitted by:	Richard Wiwatowski <rjwiwat@ozemail.com.au>
1999-05-08 05:50:07 +00:00
Jacques Vidrine 958ab463b8 16 characters for the device name in /etc/dumpdates is not long
enough, particularly when using vinum.  Allow 32 characters
(arbitrary, I know) instead.

PR:	bin/11433
1999-05-08 01:08:56 +00:00
Mark Murray 0feb57945e Part of routed upgrade.
Submitted by:	 Vernon Schryver <vjs@calcite.rhyolite.com>
1999-05-02 13:20:38 +00:00
John Polstra 6d30b16752 Back out my change from 6 April PDT that added a new dlversion()
function.  It was an ill-considered feature.  It didn't solve the
problem I wanted it to solve.   And it added Yet Another Version
Number that would have to be maintained at every release point.
I'm nuking it now before anybody grows too fond of it.
1999-04-22 01:54:38 +00:00
Bruce Evans 34597fa67f Oops, the previous log message should have been:
Include <machine/ansi.h> so that this file is self-sufficient again.
Rev.1.6 doesn't do this as claimed unless <nlist.h> has nonstandard
pollution.

Cleaned up includes.
1999-04-10 03:49:43 +00:00
Bruce Evans 95a7753b24 Declare mkstemps(). 1999-04-09 15:06:56 +00:00
John Polstra 14f5fa0596 Add a new function dlversion() which returns the version number of
the dynamic linker in the same form as __FreeBSD_version.  This is
mainly intended for checking the dynamic linker version during a make
world.
1999-04-07 02:43:11 +00:00
Dmitrij Tejblum 3a41a9b759 Add prototypes for pread and pwrite. 1999-04-04 21:47:53 +00:00
John Birrell b847980f15 o Runnable threads are now maintained in priority queues. The
implementation requires two things:

      1.) The priority queues must be protected during insertion
          and removal of threads.  Since the kernel scheduler
          must modify the priority queues, a spinlock for
          protection cannot be used.   The functions
          _thread_kern_sched_defer() and _thread_kern_sched_undefer()
          were added to {un}defer kernel scheduler activation.

      2.) A thread (active) priority change can be performed only
          when the thread is removed from the priority queue.  The
          implementation uses a threads active priority when
          inserting it into the queue.

    A by-product is that thread switches are much faster.  A
    separate queue is used for waiting and/or blocked threads,
    and it is searched at most 2 times in the kernel scheduler
    when there are active threads.  It should be possible to
    reduce this to once by combining polling of threads waiting
    on I/O with the loop that looks for timed out threads and
    the minimum timeout value.

  o Functions to defer kernel scheduler activation were added.  These
    are _thread_kern_sched_defer() and _thread_kern_sched_undefer()
    and may be called recursively.  These routines do not block the
    scheduling signal, but latch its occurrence.  The signal handler
    will not call the kernel scheduler when the running thread has
    deferred scheduling, but it will be called when running thread
    undefers scheduling.

  o Added support for _POSIX_THREAD_PRIORITY_SCHEDULING.  All the
    POSIX routines required by this should now be implemented.
    One note, SCHED_OTHER, SCHED_FIFO, and SCHED_RR are required
    to be defined by including pthread.h.  These defines are currently
    in sched.h.  I modified pthread.h to include sched.h but don't
    know if this is the proper thing to do.

  o Added support for priority protection and inheritence mutexes.
    This allows definition of _POSIX_THREAD_PRIO_PROTECT and
    _POSIX_THREAD_PRIO_INHERIT.

  o Added additional error checks required by POSIX for mutexes and
    condition variables.

  o Provided a wrapper for sigpending which is marked as a hidden
    syscall.

  o Added a non-portable function as a debugging aid to allow an
    application to monitor thread context switches.  An application
    can install a routine that gets called everytime a thread
    (explicitly created by the application) gets context switched.
    The routine gets passed the pthread IDs of the threads that are
    being switched in and out.  I found this useful, but we can
    get rid of it if you want.

Submitted by: Dan Eischen <eischen@vigrid.com>
1999-03-23 05:11:30 +00:00
Poul-Henning Kamp 7f29144bc9 Nuke old copies of /usr/include/timepps.h 1999-03-22 12:58:15 +00:00
Poul-Henning Kamp 8b2de66177 Remove <timepps.h> here as well.
You will need to manually rip it from /usr/include if it gives you any
trouble.
1999-03-11 15:12:28 +00:00
Poul-Henning Kamp d492694916 removed from PPS-API draft 1999-03-11 15:07:09 +00:00
Bruce Evans 1b768d384a Use __i386__ instead of i386 in an ifdef. 1999-03-05 18:15:05 +00:00
Dmitrij Tejblum 7307d07db6 Added functions fseeko() and ftello() (from susv2).
Fixed fgetpos() and fsetpos() for offsets > 2GB.

PR:		8637
Submitted by:	 Dan Nelson <dnelson@emsphone.com> (adjusted by me a little)
1999-02-08 21:32:38 +00:00
Bruce Evans 45908a6a19 Removed evil typedef kvm_swap_t and all uses of it (not many).
Hoped for by:	wollman
1999-01-27 11:29:15 +00:00
Matthew Dillon b8808468dd Oops, forgot this. Needed by libkvm. 1999-01-23 04:58:35 +00:00
John Polstra 5d00b6ccba Add a prototype for strtok_r(). 1999-01-20 21:21:26 +00:00
Dag-Erling Smørgrav a135bdb9a0 Use the correct type for uid and gid in struct passwd. Document it. 1999-01-18 02:14:20 +00:00
Dmitrij Tejblum f7393eced7 Install <sys/aio.h> as <aio.h>. 1999-01-17 22:35:09 +00:00
John Polstra 1c3cb5788b Instead of a wrapper <linker_set.h>, use a symlink to
<sys/linker_set.h>.

Submitted by:	bde
1999-01-14 19:52:38 +00:00
John Polstra a528ae5332 Add a wrapper <linker_set.h> for <sys/linker_set.h>, so that
userland programs can use linker sets.
1999-01-14 05:53:54 +00:00
Mike Smith 10332f3227 optreset is a POSIX extension, make it visible in POSIX_SOURCE scope.
Submitted by:	 Andrzej Bialecki <abial@nask.pl>
1999-01-11 11:32:35 +00:00
Satoshi Asami 16ceea1b93 Move nologin from /etc to /var/run. This means one less file that has
to be written to /etc.

The only essential change is in paths.h, so any third-party software
written correctly will pick it up in the next rebuild.

Reviewed by:	the committers list (actually an old version)
1999-01-11 09:07:42 +00:00
Mike Smith a79658408c POSIX introduced optreset to deal with multiple invocations
of getopt (as in, multiple input lines :). This is documented in the
man page and is used in the code, but unistd.h and stand.h do not
declare it. Incidentally, it prevents me fixing a bug in loader's
code... :-)

PR:		misc/9373
Submitted by:	"Daniel C. Sobral" <dcs@newsguy.com>
1999-01-11 06:01:29 +00:00
Dmitrij Tejblum de16000123 Make ctime_r, asctime_r, gmtime_r, and localtime_r available in libc. 1999-01-04 20:45:20 +00:00
Doug Rabson b7f762137a Implement fpsetmask() and other fp*() functions. Programs should use
#include <ieeefp.h>

to access these functions instead of the i386 specific

	#include <machine/floatingpoint.h>

Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
1998-12-23 11:50:52 +00:00
Dmitrij Tejblum 68626e8df3 Install <sys/inttypes.h> as <inttypes.h>. 1998-12-19 00:21:13 +00:00
Dmitrij Tejblum 8252a465b9 Little reorganization:
- created internal names for fixed-size integral types, like __int32_t. They
  will be used to make several headers self-sufficient.
- <stdlib.h> don't include <machine/types.h> anymore.
- created <sys/inttypes.h>, which can be used as <inttypes.h>.
- declaration of uoff_t and ufs_daddr_t moved to <sys/types.h>.

Reviewed by:	bde
1998-12-19 00:02:34 +00:00
Bruce Evans b245b90a64 Declare size_t and ssize_t if they are not already declared, so that
<kvm.h> is self-sufficient again.

Moved typedefs and forward struct declarations out of __BEGIN_DECLS/
__END_DECLS.

Don't comment out the prototype for kvm_uread().  This was a 4 year
old kludge for previous breakage of self-sufficiency.  The prototypwe
was broken instead.

Fixed bitrot (const poisoning) in the type of kvm_uread().

Fixed order of the declaration of kvm_uread().
1998-12-16 18:59:47 +00:00
Dmitrij Tejblum c1b7af8ac3 Make this protototype of mmap return void *, like two other copies. 1998-12-14 19:23:16 +00:00
Archie Cobbs 17640fbe70 Make rcsid a const char[] instead of char[] to avoid compiler warnings 1998-12-06 08:15:08 +00:00
Eivind Eklund 07bab7c6a4 Add support for pthread_mutexattr_settype(). As a side effect of
testing this, fix MUTEX_TYPE_COUNTING_FAST.  Recursive locks now work.
1998-11-28 23:52:58 +00:00
Bruce Evans ba924eaf7c Don't forget to use the appropriate __printf*like attribute for verr*
and vwarn*.

Sorted attributes.

UnFrom'ed vendor id.
1998-11-22 05:12:27 +00:00
Dima Ruban 689c44c5b3 64bit clean now 1998-11-08 08:27:16 +00:00
John Polstra 7fd62c59f5 Add support for -Wformat consistency checking between format strings
and their argument lists for the err(3) family of functions.  Note,
I intentionally used __printflike instead of __printf0like for
warnx.  Although a NULL format string is legal for that function, it
doesn't make any sense.
1998-10-29 22:18:47 +00:00
Dima Ruban 97b465b142 64bit fixes.
(Note: ``dump'' doesn't work on alpha yet. Apparently there's a problem
somewhere is the physio() area)

Submitted by:	myself && Matt Dillon.
1998-10-27 04:01:19 +00:00
Dima Ruban e9b30c621d make talk/talkd work on alpha. 1998-10-20 07:07:07 +00:00
Bruce Evans 996997fdef Don't even think about using a sysctl to build osreldate.h, since this
breaks cross-builds.  Just depend on ${.CURDIR}/../sys/conf/newvers.sh
existing.

Don't override the (correct) defaults for the depend, lint or tags target.

In LDIRS: fixed order-rot.  Don't comment out dead networking directories;
remove them.
1998-10-17 15:52:48 +00:00
Jordan K. Hubbard eecd46375c Move auth.conf path in here. Doesn't affect published interface. 1998-10-09 07:34:47 +00:00
Andrey A. Chernov d0de224af2 back out h2ph from here, Bruce found another proper place 1998-10-02 13:00:58 +00:00
Andrey A. Chernov 3514e2d635 Add h2ph call to afterinstall target
Error code ignored to allow building without perl installed
1998-10-02 00:49:43 +00:00