Jake Burkholder
5893472b2d
Use the right byte order for unaligned stores. <blush>.
2002-05-13 22:48:01 +00:00
Jake Burkholder
30eeff14ef
Handle alignment fault fixups in libc rather than in the kernel.
2002-05-13 04:35:08 +00:00
Poul-Henning Kamp
77068a7fe2
Retire the bogus uses of the disklabel field d_sbsize and begin to
...
initialize it to zero so we don't have to have everbody and their
aunt including FFS specific header files.
Sponsored by: DARPA & NAI Labs.
2002-05-12 20:49:41 +00:00
Dima Dorfman
11612afabe
s/demon/daemon/
2002-05-12 00:22:38 +00:00
Mike Barcroft
f605f8168e
Document that <netinet/in.h> can also provide prototypes. Change
...
wording related to standards conformance.
2002-05-11 23:22:54 +00:00
Jake Burkholder
025c284b8d
Add a support macro to convert the 5-bit packed register field of
...
a floating point instruction into a 6-bit register number for
double and quad arguments.
Make use of the new INSFPdq_RN macro where apporpriate; this
is required for correctly handling the "high" fp registers
(>= %f32).
Fix a number of bugs related to the handling of the high registers
which were caused by using __fpu_[gs]etreg() where __fpu_[gs]etreg64()
should be used (the former can only access the low, single-precision,
registers).
Submitted by: tmm
2002-05-11 21:20:05 +00:00
Peter Wemm
9269daa2fb
Avoid casting a different sized integer to a pointer on LP64 systems.
2002-05-10 12:50:59 +00:00
Josef Karthauser
1063e12617
Replace /kernel with /boot/kernel/kernel.
...
PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
2002-05-09 11:47:42 +00:00
Mike Silbersack
3a0b92ec0f
Some updates to mention accept filters and how
...
listen queues work in a syncache world.
MFC after: 3 days
2002-05-08 18:19:01 +00:00
Dag-Erling Smørgrav
719137a64d
Fix bug that causes passwd and friends to fail when the user has a '+' in
...
their passwd file for NIS because _PWF_SOURCE is not set.
Submitted by: amigus (perforce change 10969)
2002-05-07 23:26:00 +00:00
David E. O'Brien
1f92f7e5d3
Use __FBSDID
2002-05-06 23:24:39 +00:00
David E. O'Brien
fd97c6aea9
We typically don't add trailing /'s.
2002-05-06 23:24:16 +00:00
Maxime Henrion
b98b0a890e
Document the lchflags(2) syscall.
2002-05-05 23:51:32 +00:00
Garrett Wollman
0d84b47e9c
Fix fd leak. Threads people: does the call above to `access' need to be
...
underscored as well?
PR: 37717
Submitted by: fred@clift.org (slightly modified by me)
2002-05-03 17:28:28 +00:00
Jake Burkholder
621136996a
Add an alternate signal trampoline to libc; add a wrapper for the sigtramp
...
install sysarch, to be called from _start.
This will allow the stack to be mapped non-executable, as required by the
sparc v9 abi.
2002-04-29 18:14:44 +00:00
Dag-Erling Smørgrav
f249dbcc71
Spell void * as void * rather than caddr_t. This is complicated by the
...
fact that caddr_t is often misspelled as char *.
Sponsored by: DARPA, NAI Labs
2002-04-28 15:18:50 +00:00
Jake Burkholder
05f2fa5cee
Add code to emulate arithmetic, comparison and conversion operations
...
on long double, which are not implemented in hardware on any UltraSPARC
chip that I know of. This just calls into the existing floating point
emulator, which is still needed to emulate other floating point operations
in certain conditions. Without this gcc has to generate the quad floating
point instructions directly, which sometimes causes internal compiler
errors.
Reviewed by: tmm
2002-04-28 02:36:36 +00:00
Jake Burkholder
8c93421144
Emulate ldq and stq (load/store long double) instructions. GCC has started
...
using these to load long doubles, but they aren't implemented in hardware
on (at least) UltraSPARC I and II machines.
Emulate popc in the user trap handler as well.
Re-arrange slightly to make support functions more accessible.
Reviewed by: tmm
2002-04-27 21:56:28 +00:00
Dag-Erling Smørgrav
73c9eb2fbf
#include <string.h> instead of <strings.h>
2002-04-25 18:14:39 +00:00
Poul-Henning Kamp
9908ed2b1e
Constify _malloc_options.
2002-04-24 16:49:36 +00:00
Bill Fenner
946b2d0057
Implement several of the c99 updates to scanf(3):
...
- New length modifiers: hh, j, ll, t, z.
Still to do:
- %C, %S, %lc, %ls (wide character support)
- %a/%A (exact hex representation of floating-point numbers)
Removed old compatability equivalents:
- %D for %ld, %O for %lo, %X for %lx, %E and %F for %le & %lf (these
were buggy anyway, since they should have represented %Le & %Lf).
- %[unknown uppercase char] for %ld, %[unknown lowercase char] for %d
2002-04-20 17:00:56 +00:00
Ruslan Ermilov
bce4a2dde1
mdoc(7) police: polishing.
2002-04-19 11:24:02 +00:00
SUZUKI Shinsuke
88ff5695c1
just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD.
...
(based on freebsd4-snap-20020128)
Reviewed by: ume
MFC after: 1 week
2002-04-19 04:46:24 +00:00
Maxime Henrion
76b2224aad
Connect the kenv.2 manpage to the build.
2002-04-18 16:46:23 +00:00
Maxime Henrion
ccee6a3c72
Add a manpage for the kenv(2) syscall that Chad David kindly
...
wrote for me.
Submitted by: davidc
2002-04-18 16:45:57 +00:00
Josef Karthauser
d2c0ac28da
Support the snapshot file flag, so that tools like 'ls -ol' work
...
as expected on snapshot files.
PR: bin/37038
Submitted by: Joshua Goodall <joshua@roughtrade.net>
2002-04-16 11:03:22 +00:00
Hajimu UMEMOTO
7b0e82a919
Add awareness of an IPv6.
...
MFC after: 1 week
2002-04-15 18:45:20 +00:00
Jacques Vidrine
9368e99f25
Quoting log message for OpenBSD rev 1.7:
...
``Tack on MagniComp (BSD) license since this originally came from rdist.''
Obtained from: OpenBSD
2002-04-15 12:46:07 +00:00
Dag-Erling Smørgrav
00d9b6b8d6
Missed a spot in previous commit.
...
Sponsored by: DARPA, NAI Labs
2002-04-15 00:21:25 +00:00
Dag-Erling Smørgrav
e479b601dd
(ab)use unused bits in the pw_fields member of struct passwd to record
...
the source of the data contained in the structure.
Sponsored by: DARPA, NAI Labs
2002-04-14 22:24:55 +00:00
Jeroen Ruigrok van der Werven
eb12e52a25
Remove the hard-coded limit of 3 bytes for EUC encodings.
...
Satoshi NIIMI-san kindly explained that EUC does not limit the byte length to
any arbitrary number.
We now set the limit to the maximum octet length of the codeset and it is
locale-specific.
Submitted by: Yong-Jhen Hong <winard@ms11.url.com.tw>
2002-04-14 10:55:42 +00:00
Dima Dorfman
5041f86c28
Correct markup.
2002-04-14 02:29:20 +00:00
Dag-Erling Smørgrav
0b759b867a
Install digittoint.3 (forgotten in rev 1.21)
...
PR: docs/26451
Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
2002-04-13 22:32:33 +00:00
Jeroen Ruigrok van der Werven
bcbf4411d6
Use the correct macros for F_SETFD/F_GETFD instead of magic numbers.
...
Reflect that fact in the manual page.
PR: 12723
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Approved by: bde
MFC after: 2 weeks
2002-04-13 10:16:53 +00:00
Dima Dorfman
62538f5a03
This was recently MFC'd, so it will appear in 4.6.
...
PR: 37018
2002-04-13 04:25:56 +00:00
Marcel Moolenaar
2d631dd6fa
Implement _Unwind_FindTableEntry(). This function is part of GCC
...
for some configurations, but not for FreeBSD (yet?). Have one in
libc in the mean time.
2002-04-13 04:06:34 +00:00
Tom Rhodes
7d358b9a2a
scanf.3 has an obsolete ``this release''.
...
PR: 35610
MFC after: 2 days
2002-04-10 20:52:49 +00:00
Ruslan Ermilov
c3e3cbe16e
No longer needed to #ifdef __FBSDID, this is now handled by Makefile.inc1.
2002-04-09 11:39:05 +00:00
Jake Burkholder
82436f1067
Rename some fields in struct frame to be compatible with NetBSD/OpenBSD,
...
and add some compatibility defines. Add fields for ins and locals to
struct reg also for the same reason; these aren't filled in yet because
getting at those registers sucks and I'd rather not save them in the
trapframe just for this. Reorder struct reg to be ABI compatible as
well. Add needed include of machine/emul.h.
This gets pmdb (poor man's debugger) from OpenBSD mostly compiling but it
doesn't work yet :(
2002-04-09 00:57:23 +00:00
Poul-Henning Kamp
674a5ae34f
Catch up with const'ification of <sys/disklabel.h> and quelch warnings.
2002-04-08 08:57:21 +00:00
Ruslan Ermilov
7c1d25d6c2
Fix style of ether_ntoa().
2002-04-08 07:51:10 +00:00
Jeroen Ruigrok van der Werven
a243e676fe
Fix EUC encoding conversion for codeset 3 and 4 to comply to the specification.
...
PR: 28552
Submitted by: NIIMI Satoshi <sa2c@and.or.jp>
2002-04-07 16:37:15 +00:00
Ruslan Ermilov
dab8ffaac3
Polish previous revision.
2002-04-06 09:54:17 +00:00
Matthew Dillon
87bd4d6ceb
Fix ether_ntoa() to generate the %02x format people expect, instead of %x,
...
for the ethernet address.
MFC after: 1 day
2002-04-06 05:21:57 +00:00
Thomas Moestl
ca31253aa8
htonl() and ntohl() operate on unsinged types, so they must zero-extend,
...
not sign-extend. Fix a comment in the former to that effect, and change
the latter over to do the right conversion.
2002-04-06 00:07:15 +00:00
Poul-Henning Kamp
6a263fa41d
Initial deorbit burn for the undocumented and unused d_boot[01]
...
fields of struct disklabel.
Sponsored by: DARPA and NAI Labs.
2002-04-03 15:44:53 +00:00
Hajimu UMEMOTO
3d246faa5a
When _kevent() returns with errno = EINTR and timeout is not
...
exceeded, it should be falldown to next_ns.
MFC after: 1 week
2002-04-01 16:09:45 +00:00
Mark Murray
4cd0119367
Do not use __progname directly (except in [gs]etprogname(3)).
...
Also, make an internal _getprogname() that is used only inside
libc. For libc, getprogname(3) is a weak symbol in case a
function of the same name is defined in userland.
2002-03-29 22:43:43 +00:00
David E. O'Brien
57f8b17ed0
Embellish more.
2002-03-26 23:09:34 +00:00
David E. O'Brien
54a5fb6c94
Embellish the comment.
2002-03-26 23:08:42 +00:00
Bruce Evans
514a0ae7d2
Fixed some style bugs in the removal of __P(()). Some function parameter
...
lists were outdented to column 0.
2002-03-26 01:35:05 +00:00
Dima Dorfman
e10bdff354
A break after a return is useless.
2002-03-24 08:38:21 +00:00
Dima Dorfman
3afe2c7806
Fix braino.
2002-03-24 06:30:28 +00:00
David E. O'Brien
ecaaecd7a4
Update comments. We uniformly use __FBSDID in libc now.
2002-03-23 20:08:00 +00:00
David E. O'Brien
15164b99cc
W/o __P, the internal declarations will all fit on one line.
2002-03-23 18:22:40 +00:00
David E. O'Brien
d9c0a739c5
Remove these abortive MIPS bits.
2002-03-23 17:55:32 +00:00
Warner Losh
bb28f3c29b
Breath deep and take __P out of the system include files.
...
# This appears to not break X11, but I'm having problems compiling the
# glide part of the server with or without this patch, so I can't tell
# for sure.
2002-03-23 17:24:55 +00:00
David E. O'Brien
c04447ba03
Standardize on our SCM ID style.
2002-03-23 02:44:19 +00:00
David E. O'Brien
0f4f02856d
Restore CSRG ID's lost in January 1995.
2002-03-23 02:10:28 +00:00
David E. O'Brien
1114a754ed
Fix the style of the SCM ID's.
...
I believe have made all of libc .h's as consistent as possible.
2002-03-22 23:42:05 +00:00
David E. O'Brien
d3d20c8267
Fix the style of the SCM ID's.
...
I believe have made all of libc .c's as consistent as possible.
2002-03-22 23:18:37 +00:00
David E. O'Brien
74fd44fc19
Fix the style of the SCM ID's.
...
I believe have made all of libc .h's as consistent as possible.
2002-03-22 23:18:17 +00:00
David E. O'Brien
333fc21e3c
Fix the style of the SCM ID's.
...
I believe have made all of libc .c's as consistent as possible.
2002-03-22 21:53:29 +00:00
David E. O'Brien
4b74b09895
Back out last commit (rev 1.2). I thought I caught this file in time
...
when deP'ing. But I guess not.
2002-03-22 19:45:43 +00:00
Alfred Perlstein
b275d8fe48
Constify the first arg to callrpc(3).
2002-03-22 19:19:32 +00:00
David E. O'Brien
078c6f985a
SCM ID tweak.
2002-03-22 09:27:59 +00:00
David E. O'Brien
1372519b15
Remove multi-line __P() usage.
2002-03-22 09:22:15 +00:00
Warner Losh
80578e902c
const poison just like NetBSD.
2002-03-22 02:43:01 +00:00
Warner Losh
ae10a3fcce
Make user_from_uid and group_from_gid return const char *, just like
...
NetBSD. Update man page to reflect this.
2002-03-22 02:35:47 +00:00
David E. O'Brien
c05ac53b8b
Remove __P() usage.
2002-03-21 22:49:10 +00:00
David E. O'Brien
8fb3f3f682
Remove 'register' keyword.
2002-03-21 18:49:23 +00:00
Peter Wemm
cc2dbb21e5
Move swapcontext.c to the ${MACHINE_ARCH}/gen/Makefile.inc area, otherwise
...
it causes undefined references to getcontext() and setcontext() on
platforms other than i386 and alpha.
2002-03-21 06:45:32 +00:00
Ruslan Ermilov
6dd2704c7a
mdoc(7) police: Fixed the spammage of this file with trailing whitespaces
...
in revisions 1.26-1.28. Fixed two bugs in punctuation cleanup in rev. 1.27.
Removed hard sentence break not killed by rev. 1.26.
2002-03-20 13:40:08 +00:00
Ruslan Ermilov
c8c5079d10
mdoc(7) police: tidy up.
2002-03-18 15:44:27 +00:00
Dima Dorfman
1dd9f42a29
mdoc(7) police: bump document date to the date of the last interface
...
change (revision 1.2 of devname.c on 1999/07/18), don't put quotes
around a path, and use .Dv where appropriate.
2002-03-18 02:36:43 +00:00
Dima Dorfman
f04938aa8e
Update to reflect reality; devname(3) hasn't returned NULL on failure
...
since revision 1.2 of devname.c (1999/07/18). While I'm here, note,
in the BUGS section, that the returned pointer is to a static buffer.
2002-03-18 02:32:53 +00:00
Dima Dorfman
8c237a536c
Features are deprecated, not depreciated.
...
PR: 35987
Submitted by: shill@free.fr
2002-03-18 01:52:19 +00:00
Dag-Erling Smørgrav
042df45ade
Document PT_IO, and move the comment about machine-dependent requests
...
below PT_[GS]ET_{,DB,FP}REGS.
2002-03-16 03:50:32 +00:00
Dag-Erling Smørgrav
8bd8a375a4
Further cleanup (punctuation, genitive)
2002-03-16 03:26:32 +00:00
Dag-Erling Smørgrav
c2912c0369
Insert newlines between sentences and rewrap paragraphs. No changes to
...
the actual text or markup.
2002-03-16 02:54:17 +00:00
Ruslan Ermilov
d78dca323f
mdoc(7) police: hard sentence breaks, whitespace at EOL, contractions.
2002-03-15 18:04:00 +00:00
Ruslan Ermilov
ba8bcff1e8
mdoc(7) police: Fix xref to timeradd(3).
2002-03-15 17:59:46 +00:00
Ruslan Ermilov
d7396394e7
mdoc(7) police: punctuation nit.
2002-03-15 17:57:41 +00:00
Ruslan Ermilov
dab055db89
bde got caught by mdoc(7) police. :-)
2002-03-15 17:53:20 +00:00
Ruslan Ermilov
9a04350e3d
mdoc(7) police: don't you notice the warnings?
2002-03-15 17:50:21 +00:00
Ruslan Ermilov
f3a90e8782
Come on guys, you can't just take OpenBSD manpage and commit it
...
over someone else's fixes; this is at least offensive. If you
have problems doing a proper merge, we are here, your fellow
committers. :-(
Reapply markup fixes from revision 1.2 and fix some more. Also
fix the $OpenBSD$ tag.
2002-03-15 17:46:53 +00:00
David E. O'Brien
68a6b5e1ba
Remove trailing characters from #endif.
...
Actually this #endif is not needed, so remove leading characters also.
2002-03-15 09:58:45 +00:00
Maxim Konovalov
999ad26edb
Clarify fcntl(2) and flock(2) interoperability.
...
PR: docs/23353
Reviewed by: ru, dillon
Approved by: ru
MFC after: 3 days
2002-03-14 11:02:35 +00:00
Thomas Moestl
d095bc220d
Fix some bugs that would prevent %fsr to be set correctly, and add
...
support for fcmp and fcmpe instructions with a condition code
specification other than %fcc0.
This (primarily the first part) seems to fix a lot of problems that
people were seeing, e.g. perl and gawk failures.
Reported and analyzed by: wollman
2002-03-11 03:18:17 +00:00
Thomas Moestl
61de6bb54c
Account for <machine/fsr.h> no longer being usable for assembler code.
2002-03-11 03:13:02 +00:00
Thomas Moestl
57f31f4714
Fix __dtoul to work on sparc64 (it used a half-way v8 stack layout),
...
and make it PIC-aware.
2002-03-11 03:10:55 +00:00
Thomas Moestl
9300cb7db7
Save/restore the %y register around calls to the C user trap handler;
...
gcc emits the deprecated sparc v8 instructions that use this register
when optimizing for UltraSparc machines because they are apparetly
faster then their v9 counterpars there.
2002-03-11 02:53:03 +00:00
Bill Fumerola
29ec623730
cosmetic: spell 'cashe' as 'cache'
2002-03-10 12:08:28 +00:00
Dima Dorfman
38261ac8d6
Don't refer the reader to look for a word that doesn't exist anywhere
...
else in the page.
PR: 35623
Submitted by: Gary W. Swearingen <swear@blarg.net>
2002-03-10 09:20:28 +00:00
David Malone
94998878b7
If syslog fails to talk to syslogd, then it tries to write a message
...
to the console in a final attempt to log something. Make this final
attempt non-blocking so that a blocking console doesn't end up
blocking process which attempt to syslog something.
In particular, this means you should be able to su and fix the
problem if the console becomes blocking.
MFC after: 3 weeks
2002-03-09 11:38:01 +00:00
Dima Dorfman
6b663fd674
Correct a typo.
...
Submitted by: peter.kusenda@accenture.com
2002-03-09 07:05:22 +00:00
Dima Dorfman
ca4b6b3910
This API will appear in FreeBSD 4.6.
2002-03-09 05:19:21 +00:00
Dima Dorfman
235d6772d5
Bring a comment in line with the code, and fix some spelling errors
...
while I'm here.
PR: 35394
Submitted by: andrew@ugh.net.au
2002-03-09 04:00:53 +00:00
Brian Feldman
44f7d6af24
Fix build. I commented out getpass() in readpassphrase.c because the
...
implementation did not match our manpage description (i.e., it could
return NULL). I mistakenly thought we were still using getpass.c
because, for some reason, CVS never removed it from the tree.
Pointy hat received from: alfred
Kick in the groin to: CVS
2002-03-09 03:16:41 +00:00
Brian Feldman
a7a8a766e7
Update readpassphrase(3)to the latest revisions. Changes are mainly due
...
to return value constraints now changing as well as more intelligent
handling of signals.
Obtained from: OpenBSD
2002-03-08 21:14:00 +00:00