Matthew Dillon
49d6409ac7
Reviewed by: Andrey A. Chernov <ache@nagual.pp.ru>, Doug Rabson <dfr@nlsystems.com>
...
Rewrote sleep() to remove int/long typing assumptions between the argument
to the function and the timespec structure.
1998-09-06 09:11:06 +00:00
Joseph Koshy
fe6894b6dc
Use a varargs style prototype in the manual page, with accompanying
...
explanation in the text.
1998-09-06 08:50:49 +00:00
John Birrell
ae59c2591e
Use INT_MAX instead of LONG_MAX since the variable being compared
...
is an int, not a long.
1998-09-05 08:01:26 +00:00
John Birrell
9b801a0d86
Change a test for NETBSD_SYSCALLS to __alpha__. We're not ready to
...
do profiling on alpha yet.
1998-09-05 07:57:43 +00:00
John Birrell
683728f17d
Change the profile data file name from gmon.out to progname.gmon
...
where progname comes from __progname in crt0 or crt1.
1998-09-05 07:56:36 +00:00
John Polstra
cb690d1f0b
Implement the weak aliases for private entry points in the inet_*
...
and res_* modules in a way that works for ELF. I moved the aliases
out of res_stubs.c and into the individual modules where the entry
points are defined. Weak aliases don't work in ELF unless that is
the case. (Actually, I'm surprised it worked for a.out.)
This should fix the undefined "inet_addr" and related symbols in
various applications that fail to include <arpa/inet.h> or
<resolv.h> as they are supposed to do.
1998-09-02 00:53:17 +00:00
Wolfram Schneider
acd8019083
Sort cross references.
1998-08-31 16:41:09 +00:00
Joseph Koshy
1380f780e0
Typo fix.
1998-08-28 04:36:21 +00:00
Steve Price
93bb6f1172
Describe what constitues an exceptional condition.
...
PR: 7666
Submitted by: Archie Cobbs <archie@whistle.com>
1998-08-24 01:09:34 +00:00
Doug Rabson
744857bc1c
Update to use the new elf headers.
1998-08-17 08:47:19 +00:00
John Birrell
b4869285da
Remove support for NetBSD syscalls.
1998-08-17 03:46:10 +00:00
John Birrell
4f27f01e1d
Remove the comment about how to get NetBSD syscalls since there are
...
now programs built on alpha that _must_ use FreeBSD syscalls to work.
1998-08-17 03:35:09 +00:00
Poul-Henning Kamp
38a0ff129f
Add missing #include of <sys.types.h>
1998-08-15 20:53:34 +00:00
Poul-Henning Kamp
7a55a3c230
I have added the support for BIG5 encoding into libc/libxpg4/mklocale.
...
the diff is attached below. This is done on the 3.0 source-tree.
I have test this on 2.2-stable before, but I don't have a 3.0 machine
right now.
This patch is mainly to make libc support BIG5 encoding, thus add
zh_TW.BIG5 locale to 3.0.
Submitted by: Chen Hsiung Chan <frankch@waru.life.nthu.edu.tw>
1998-08-15 12:51:49 +00:00
John Birrell
57eec98d62
If using FreeBSD syscalls, handle the syscalls that don't require
...
default asm code the same way as on i386.
1998-08-08 02:25:46 +00:00
John Birrell
2a957ed7cc
Include FreeBSD's syscall.h if not using NetBSD syscalls.
1998-08-08 02:24:03 +00:00
John Birrell
dc43d96540
Allow for the fact that NetBSD syscalls are no longer the default. Call
...
sigaltstack by default if using FreeBSD syscalls.
1998-08-08 02:20:24 +00:00
John Birrell
920ee4896e
Make NetBSD compatibility conditional on NETBSD_SYSCALLS being defined.
...
This is no longer the default.
1998-08-08 02:18:07 +00:00
John Birrell
61020cc681
References to NetBSD syscalls changed to just a comment about what to
...
add to /etc/make.conf to use FreeBSD's libc with a NetBSD/Alpha kernel.
From now on, FreeBSD/Alpha is just FreeBSD.
1998-08-08 02:14:45 +00:00
Bruce Evans
90afb6a523
Fixed bitrot in prototypes in synopsis.
1998-08-03 17:52:27 +00:00
Bruce Evans
71101898e8
Fixed missing header in synopsis.
1998-08-03 16:29:31 +00:00
Bruce Evans
8023e3dd93
isnetworktty -> isnettty. ttyent.h has already gone through 3
...
revisions to match the confusing spelling in getttyent.c (1 to
break it to match the man page and 1 in each of 2 branches to fix
it). This function seems to be orphaned and unused.
1998-08-03 15:35:41 +00:00
Bruce Evans
92f896a9cc
Fixed printf format errors.
1998-08-02 14:41:34 +00:00
Bruce Evans
5b632b56e5
Fixed disordering in previous commit.
1998-07-29 13:43:06 +00:00
Tim Vanderhoek
542f2aacfa
Add missing period. We don't allow maternity leaves.
1998-07-29 05:13:39 +00:00
Jonathan Lemon
525187f914
u_int --> unsigned int, remove (now unneeded) <sys/types.h>
1998-07-28 15:22:51 +00:00
Jonathan Lemon
8d0517cffd
oops, forgot to do ``cvs add'' first.
1998-07-28 03:39:04 +00:00
Jonathan Lemon
f88a03565a
Add wrappers for i386_*_ioperm, i386_vm86 so userland code does
...
not have to call sysarch() directly.
Added man pages for above, as well as sysarch()
1998-07-28 03:33:27 +00:00
Andrey A. Chernov
dfb1b7aea6
Provide meaningful errno value on error return
1998-07-14 18:27:43 +00:00
Bruce Evans
37889b394a
Changed to the C9x draft spelling of the (unsigned) integral type
...
suitable for holding object pointers (ptrint_t -> uintptr_t).
Added corresponding signed type (intptr_t). Changed/added
corresponding non-C9x types for function pointers to match. Don't
use nonstandard types to implement these types, and don't comment
on them in <machine/types.h>.
1998-07-14 05:09:48 +00:00
Bruce Evans
930a642372
Oops, fptrint_t still needs to be declared in <machine/profile.h> in the
...
!KERNEL case. The kludge to get it declared in libc/gmon/mcount.c wasn't
sufficient because fptrint_t is used in <sys/gmon.h>.
1998-07-10 09:26:41 +00:00
Bruce Evans
2e480d34aa
Added a kernel-only typedef (ptrint_t) giving an integral type that is
...
least unsuitable for holding an object pointer. This should have been
used to fix warnings about casts between pointers and ints on alphas.
Moved corresponding existing general typedef (fptrint_t) for function
pointers from the i386 <machine/profile.h> to a kernel-only typedef
in <machine/types.h>. Kludged libc/gmon/mcount.c so that it can
still see this typedef.
1998-07-10 02:27:16 +00:00
Joseph Koshy
2177df3cd2
Correct wording on range of addresses examined by `msync(2)'.
...
PR: 7180
1998-07-09 06:16:22 +00:00
Dmitrij Tejblum
9b003a4c74
Add lockf().
1998-07-08 15:42:57 +00:00
Dmitrij Tejblum
abe2fe8a8b
Make this look more FreeBSDish.
1998-07-08 15:38:06 +00:00
Dmitrij Tejblum
f1f57565d4
This commit was generated by cvs2svn to compensate for changes in r37510,
...
which included commits to RCS files with non-trunk default branches.
1998-07-08 15:28:56 +00:00
Dmitrij Tejblum
6975deff55
An implementation of lockf() function call.
...
Obtained from: NetBSD (author: Klaus Klein)
1998-07-08 15:28:56 +00:00
Peter Wemm
64a965e707
Replace my original asprintf() and vasprintf() hacks with something
...
more cleanly integrated with stdio. This should be faster and cleaner
since it doesn't memcpy() the data into a seperate buffer. This lets
stdio allocate and manage the buffer and then hand it over to the user.
Obtained from: Todd Miller <Todd.Miller@courtesan.com> via OpenBSD
1998-07-08 00:44:56 +00:00
Poul-Henning Kamp
8a507b98ab
fts_close calls free(sp), the ISSET(FTS_NOCHDIR) which is a macro that
...
references sp. The free needs to follow ISSET
PR: 7148
Reviewed by: phk
Submitted by: Ken Mayer <kmayer@freegate.com>
1998-07-03 08:21:05 +00:00
Eivind Eklund
38cf631922
Cross-reference to sysconf(3).
1998-06-30 22:56:39 +00:00
Bruce Evans
a7f8e53079
Fixed printf format errors.
1998-06-30 17:30:22 +00:00
Bruce Evans
2a29b52b98
Fixed scanf format errors. The error handling is not quite bug for bug
...
compatible. I think small negative uids are handled compatibly but
other out of bounds ones are truncated differently for certain sizes of
uid_t.
1998-06-30 17:21:48 +00:00
Bruce Evans
c6966b0c4a
Fixed printf format errors. Don't assume so many things about time_t.
...
Obtained from: partial merge of ADO version tzcode96h (was fully merged
in 1.10 but backed out in 1.11; the FreeBSD code for %s
was earlier, prettier but buggier).
1998-06-30 16:49:47 +00:00
Guido van Rooij
7d0cc08e7f
Fix btree problems. This passes regressions tests.
...
PR: 7009
Obtained from: http://www.sleepycat.com/update/patch.185.html , patches 1.2,
1.3 and 1.4
1998-06-25 18:50:06 +00:00
Peter Wemm
2f92c56cc3
preserve errno across the readlink() calls. There is no value in trashing
...
errno during a successful malloc() call.
1998-06-18 09:13:16 +00:00
Peter Wemm
02a93d74e0
Don't compile in the use of poll() when building libc_r. This isn't
...
so much a "fix", rather a bandaid to buy time to fix it properly
within the thread engine.
1998-06-14 11:25:46 +00:00
Bruce Evans
ef2e5f62e3
Document EINVAL return value.
1998-06-14 08:22:05 +00:00
Peter Wemm
f3f4b57ac9
Make nlist() understand elf unconditionally
1998-06-12 15:02:03 +00:00
Peter Wemm
14b93edab3
Update the resolver parts to bind-8.1.2 level. I have not touched the
...
getXXXXbyYYYY() interfaces yet.
Obtained from: diff relative to bind-8.1.2 sources
1998-06-11 09:03:02 +00:00
John Polstra
63b7c21cc3
Move ftok() from libcompat to libc, so that it can be closer to its
...
friend shmget().
PR: closes misc/6763
1998-06-10 16:20:21 +00:00