Mike Barcroft
c44a27673c
Restore K&R prototype. Fix other style bugs.
...
Reviewed by: asmodai, bde
2001-10-27 19:37:20 +00:00
Peter Wemm
c91cd68318
Add missing crti.S and crtn.S files. I have tested these with -static
...
linking only. They may require some gp relative tweaks for dynamic use.
2001-10-27 10:10:45 +00:00
David E. O'Brien
60ed6ae069
Sync with other platforms.
2001-10-27 08:32:07 +00:00
David E. O'Brien
41513796e8
minor style updating
2001-10-27 08:30:36 +00:00
David E. O'Brien
255cdd9376
Update for reality and syncing with other FreeBSD platforms.
2001-10-27 08:29:03 +00:00
David E. O'Brien
9ac8182513
Feh, it helps to include a file other than yourself... wonder how
...
GCC cpp liked that.
Properly include the branding info.
2001-10-27 08:25:32 +00:00
Peter Wemm
9213df7cda
Explicitly use int32_t for on-disk records for pw_change and pw_expire,
...
since that is what we use now and this insulates us from any time_t
tweaks here. We can define a record format that uses 64 bit times if/when
we need to.
2001-10-27 02:13:41 +00:00
Peter Wemm
3f5f44ebe8
Remove the -I../libc/${MACHINE_ARCH} that was there solely for
...
the #include "DEFS.h" that was only used on i386 (which has been fixed).
2001-10-26 21:20:23 +00:00
Peter Wemm
eb9053b12f
Make libc_r check the kern.usrstack sysctl instead of using internal
...
kernel #defines to figure out where the stack is located. This stops
libc_r from exploding when the kernel is compiled with a different
KVM size. IMHO this is all kinda bogus, it would be better to just
check %esp and work from that.
2001-10-26 21:19:22 +00:00
Ruslan Ermilov
98f9b06876
Style: sort __sys_foo() prototypes, tabs -> spaces, etc.
2001-10-26 18:45:02 +00:00
Ruslan Ermilov
53cff25eeb
Removed:
...
- uthread_signal.c; libc_r does not wrap signal() since 1998/04/29.
- uthread_attr_setprio.c; it was never connected to the build, and
pthread_attr_setprio() does not exist in POSIX.
- uthread_sigblock.c and uthread_sigsetmask.c; these were no-ops
bloating libc_r's space.
pthread_private.h:
- Removed prototypes of non-syscalls: send().
- Removed prototypes of unused syscalls: sigpending(), sigsuspend(),
and select().
- Fixed prototype of fork().
- MFS: Fixed prototypes of <sys/socket.h> syscalls.
Reviewed by: deischen
Approved by: deischen, jasone
2001-10-26 17:46:36 +00:00
Ruslan Ermilov
db8caf03e5
Remove the internal implementation details of wrapping syscalls,
...
which do not match the reality anyway.
Approved by: deischen, bde
2001-10-26 17:38:20 +00:00
Doug Rabson
fc5ccf726e
Compensate for the way that _setjmp aligns the start of jmp_buf.
2001-10-26 08:26:45 +00:00
David E. O'Brien
7424ae80fc
Fix nit in copyright.
2001-10-26 06:45:10 +00:00
David E. O'Brien
9ebf4cc891
Use the new machine-independent versions of crtbegin and crtend
...
from the "common" directory.
2001-10-26 06:39:54 +00:00
Jake Burkholder
e74ea2d01a
Minimal libc for sparc64.
...
Reviewed by: obrien
2001-10-26 05:40:07 +00:00
Andrey A. Chernov
7686e760b5
In > LONG_MAX test use sseek return value and not _offset which can be not
...
active.
2001-10-25 22:56:04 +00:00
Maxim Sobolev
bc3a4bf55d
Don't put an extra space after password prompts, because it violates POLA,
...
makes FreeBSD inconsistent with previous releases and "other unices" as well
as with some internal password-asking services (e.g. ftp) within the same
release.
2001-10-25 15:51:50 +00:00
Doug Rabson
ba94a466fa
Implement va->pa translation for kernel virtual addresses. This is
...
untested - it only seems to be used for crashdumps.
2001-10-25 09:08:21 +00:00
Archie Cobbs
0fb56449d6
Fix bugs in NgSendMsg() and NgSendAsciiMsg() where the wrong token
...
value could be returned when the debug level was non-zero.
Submitted by: Harti Brandt <brandt@fokus.gmd.de>
MFC after: 5 days
2001-10-25 04:02:25 +00:00
Peter Wemm
9d91d74d2b
Change #include "DEFS.h" to <machine/asm.h>.
2001-10-25 01:30:54 +00:00
Peter Wemm
e6d808aee3
De-orbit DEFS.h - the other arches do not use it, and it got replaced
...
with <machine/asm.h>.
Reviewed by: bde
2001-10-24 20:29:14 +00:00
Jeroen Ruigrok van der Werven
d4c54c0c46
Add __FBSDID.
...
Change __assert() function to print failing function name.
This makes us C99 conforming.
2001-10-24 18:12:43 +00:00
Jeroen Ruigrok van der Werven
6cefb54a32
Add __FBSDID.
...
Change __assert() function to print failing function name.
#if 0 the sccsid block.
This makes us C99 conforming.
2001-10-24 18:12:18 +00:00
Andrey A. Chernov
e41febc84b
Help to recover from bad seek (i.e. negative or too big) happens beyond
...
our pre-check control. Do the same way as refill.c does when it set __SERR,
i.e. clear read and ungetc buffers. Clear EOF flag too.
2001-10-24 17:25:49 +00:00
Andrey A. Chernov
3f498bf72b
Back out read buffer invalidating via __SMOD.
...
It was correct, but not needed because internal buffer cleared on each seek
outside of it.
2001-10-23 23:52:11 +00:00
Andrey A. Chernov
0502fac881
Change comment explaining another usage of __SMOD
2001-10-23 23:05:15 +00:00
Andrey A. Chernov
751fc77994
Disallow fseek() optimization in internal read buffer, if pointer is moved by
...
seek. It means that beginning of read buffer becomes not the same as current
file position.
2001-10-23 22:48:00 +00:00
Doug Rabson
983c1b5875
Partially port kvm to ia64 - virtual to physical translation is incomplete.
2001-10-23 11:05:35 +00:00
Warner Losh
d45672120f
Allow users to specify a command to use as remote command instead of
...
using rcmd directly. This has been in my tree for a long time, but we
may need to sync with OpenBSD before MFC.
Obtained from: openbsd
PR: 15830
MFC after: 2 months
2001-10-23 06:22:15 +00:00
Dima Dorfman
2716f76b14
Refer to chflags(2) instead of chflags(1) (since we're a section 2
...
manual page), fix capitalization, and remove chflags reference from
SEE ALSO since the only time it's referenced is with an .Xr, anyway.
Submitted by: bde
2001-10-23 00:54:58 +00:00
Peter Wemm
b389f073af
Fix WAW dependency. p6 is written in the syscall epilogue.
2001-10-22 09:17:14 +00:00
Doug Rabson
694725c201
Fix a few more dependancy violations.
2001-10-22 08:48:11 +00:00
Daniel Eischen
f39105fa50
In the words of the submitter:
...
In libc_r, if _FDLOCKS_ENABLED is not defined, there is no guarantee
in many of the sycall wrappers that _thread_fd_table[fd] is
initialized. This causes problems for programs that pass in file
descriptors and execve() another program; when the exec'ed program
tries to do an fcntl() or other syscall on the passed-in fd, it fails.
Add calls to initialize the FD table entry for _thread_fd_lock and
_thread_fd_lock_debug.
Submitted by: Peter S. Housel <housel@acm.org>
2001-10-21 18:23:50 +00:00
Doug Rabson
61415ba82c
Implement setjmp, longjmp, sigsetjmp and siglongjmp.
2001-10-20 15:19:08 +00:00
Doug Rabson
9466885ca4
Add __divdf3(), __divsf3() and __infinity[].
...
Obtained from: Intel (for the divide code)
2001-10-20 15:17:31 +00:00
Ruslan Ermilov
4a70bdf9f6
mdoc(7) police: join OS version with the corresponding macro.
2001-10-19 14:44:13 +00:00
Ruslan Ermilov
c764884325
Just use RSYSCALL.
2001-10-19 13:32:24 +00:00
Ruslan Ermilov
3ce88dc6a4
signanosleep(2) hasn't existed since 1998.
2001-10-19 13:01:57 +00:00
Dag-Erling Smørgrav
5b31422b36
Add NO_WERROR so the build won't die because of discarded qualifiers
2001-10-19 10:08:38 +00:00
Dag-Erling Smørgrav
93ba13c1bb
Back out part of previous commit which was gcc-centric
2001-10-19 10:08:05 +00:00
Alfred Perlstein
5814ff294d
s/kernal/kernel
2001-10-19 07:52:11 +00:00
Mark Murray
ce1e0bbc8f
Add library exposed by KDE's use if this module.
2001-10-18 20:05:20 +00:00
Dag-Erling Smørgrav
f573a5fc94
Tons of type, style and warning fixes that have been rotting in my tree for
...
ages - some of which wouldn't be necessary if gcc wasn't broken or TPTB were
willing to do something (-fno-builtin) about it.
2001-10-18 08:29:26 +00:00
Jonathan Lemon
c479a8493c
Use the new SIOCGIFINDEX ioctl to efficiently map a name to an index.
...
If the syscall fails, fall back on the old method as a compatability
measure.
2001-10-17 20:08:15 +00:00
Alfred Perlstein
4e957fe63c
Fix reference to aio_read, should be aio_write
2001-10-16 00:49:19 +00:00
Robert Drehmel
f048d52363
Make this Makefile suitable for sparc64.
2001-10-15 14:27:37 +00:00
Robert Drehmel
8a56180f76
Define the types iaddr_t and saddr_t for sparc64.
2001-10-15 13:50:47 +00:00
Dima Dorfman
211feb6175
Match parenthesis and don't give names to return values.
...
PR: 31214
2001-10-15 13:34:43 +00:00
Peter Wemm
febd72f843
Add EFI GPT (238, 0xEE) and EFI System Parition (239, 0xEF)
2001-10-15 07:25:29 +00:00