Commit Graph

9804 Commits

Author SHA1 Message Date
lukem
c873ad0d2e Use the common __nsdefaultFOO rather than private defaultFOO duplicates. 2004-11-10 12:57:32 +00:00
lukem
5994f053ec * Improve the comments in <nsswitch.h>
* Provide some more useful default ns_src arrays.
2004-11-10 07:23:32 +00:00
lukem
2ffe6b72ba Use _GETGR_R_SIZE_MAX from <limits.h> rather than defining a private version. 2004-11-10 06:10:03 +00:00
lukem
cdfecd6b76 whitespace cleanup 2004-11-10 04:57:17 +00:00
lukem
9c82800a69 Add: getgrgid_r(3) getgrnam_r(3) getpwnam_r(3) getpwuid_r(3) 2004-11-10 04:52:30 +00:00
lukem
364ede827b need <limits.h> for _SC_GET{GR,PW}_SIZE_MAX 2004-11-10 04:46:01 +00:00
lukem
97dddd4f3a Document _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX 2004-11-10 04:21:25 +00:00
lukem
663b3e58e0 Use _GETPW_R_SIZE_MAX from <limits.h> rather than defining a private version. 2004-11-10 04:11:34 +00:00
lukem
246f6fd919 Implement sysconf(3) _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX for
the 1003.1-2001 Thread Safe Functions (TSF) getgrnam_r(3) and getpwnam_r(3).

These are not implemented in sysctl(3) "user.*", since that adds a lot
of complexity in the implementation for no real benefit.
2004-11-10 04:02:52 +00:00
kent
63a8cde231 save&restore %fs and %gs registers for USER_LDT applications.
PR#26900
2004-11-10 01:12:57 +00:00
wiz
3f1cd2faeb Bump date for FIONWRITE and FIONSPACE. 2004-11-08 16:15:42 +00:00
christos
0766545fc7 resolve conflicts. 2004-11-07 02:25:01 +00:00
christos
cd4012e9b2 Merge conflicts 2004-11-07 02:19:49 +00:00
wrstuden
16029d56b5 Add support for FIONWRITE and FIONSPACE ioctls. FIONWRITE reports
the number of bytes in the send queue, and FIONSPACE reports the
number of free bytes in the send queue. These ioctls permit applications
to monitor file descriptor transmission dynamics.

In examining prior art, FIONWRITE exists with the semantics given
here. FIONSPACE is provided so that programs may easily determine how
much space is left in the send queue; they do not need to know the
send queue size.

The fact that a write may block even if there is enough space in the
send queue for it is noted in the documentation.

FIONWRITE functionality may be used to implement TIOCOUTQ for Linux
emulation - Linux extended this ioctl to sockets, even though they are
not ttys.
2004-11-06 02:03:20 +00:00
christos
defca69e1a Make EM_DELETE_PREV_CHAR behave like ED_DELETE_PREV_CHAR in incremental
search. From Gerry Swislow.
2004-11-04 01:16:03 +00:00
jmmv
fda2840eea Add missing colon symbol after sentence. 2004-11-03 13:11:41 +00:00
lukem
103626c6a0 default to "compat" not "files" 2004-11-01 08:21:34 +00:00
lukem
c49e808721 #include "reentrant.h" instead of <threadlib.h> 2004-10-29 06:32:08 +00:00
dsl
1793b7dd69 Use (unsigned char) cast to sanitise arguments to ctype functions. 2004-10-28 21:14:52 +00:00
dsl
d349cd6749 Fix a load of international alphabet problems with isxxx() and toupper()
Change isspace(*char_ptr) to isspace(*char_ptr & 0xff) so that the correct
piece of memory is looked at for the bit mask.
gcc optimises out the '& 0xff' (on i386 at least).
Fixes problems found by gcc when the splurious (int) cast is removed
from the #defines in ctype.h
2004-10-27 19:59:24 +00:00
dsl
d6329c55cd Implement strtok() in terms of strtok_r() 2004-10-27 19:12:31 +00:00
lukem
feb92219d9 Protect access to all public functions via a mutex as some of the backends are
not reentrant (such as compat getgr*_r, because it uses the non reentrant
_{dns,nis}_getgrent() backends to implement `+group').
2004-10-24 14:52:46 +00:00
lukem
a48f586379 Protect access to all public functions via a mutex as some of the backends are
not reentrant (such as compat, because it uses the non reentrant getnetgrent(3)
to implement `+@netgrp' & `-@netgrp').
2004-10-24 14:46:23 +00:00
jmc
693535a5d9 Spelling errors 'dependant' vs 'dependent' from PR#27345 2004-10-22 18:35:41 +00:00
fvdl
5febc5eef5 Fix thread context switching to take the stack ABI into account.
From Wolfgang Solfrank.
2004-10-21 16:49:47 +00:00
lukem
893983131b minor KNF, making it easier to find where fork() is implemented 2004-10-21 06:46:36 +00:00
christos
366176888a PR/27283: Onno van der Linden: incorrect check for mmap return value
While I am here, clean up the error path, KNF and use the proper stat
macro.
2004-10-17 22:21:43 +00:00
enami
461001f32f Fix some typos. 2004-10-15 15:19:02 +00:00
enami
b07577d748 Don't break line at the space since it is not a word separator but
an example of space character.
2004-10-15 15:07:54 +00:00
daniel
84a34aedec Add vm.bufcache, vm.bufmem, vm.bufmem_lowater, m.bufmem_hiwater (PR misc/27247, misc/27233). 2004-10-15 08:47:16 +00:00
abs
ea19f3b80d I'm not sure what the comment is trying to say, but it can say it with
'making' at least as well as 'makeing'.
2004-10-13 23:46:46 +00:00
drochner
b774d2ae7d add licenses 2004-10-13 15:18:31 +00:00
mycroft
2b4ccae3e9 Remove pt_blockuc. If the debugger attempts to muck with the state of a
blocked thread, return an error; this should be done through ptrace(2).
2004-10-12 22:17:56 +00:00
dsl
04e7fe1971 Remove sentence about the inability to simultaenously tokenise multiple
strings - should have been removes then strtok_r() was added.
2004-10-11 14:22:04 +00:00
lukem
b7fcf76aa6 Fix MKYP=no MKHESIOD=no build.
Rename an internal function to a more appropriate name.
2004-10-11 09:42:06 +00:00
lukem
dd9512e81e Ensure that _nis_start(&state) has been called before using PASSWD_BYNAME()
or PASSWD_BYUID(), otherwise state.maptype won't be correct and the wrong
map may be selected (e.g., "passwd.by*" instead of "master.passwd.by*").

Set _PASSWORD_NOWARN in flags to __pw_scan(), so libc won't display parse
errors to stderr.  (This was the behaviour before my recent rototill.)

Fixes PR 27168 from Markus W Kilbinger.
2004-10-07 06:11:24 +00:00
snj
7f9afb684d Bring over the changes from revision 1.7 of
lib/libarch/x86_64/x86_64_get_mtrr.2 (grammar fixes).  Requested by
Nicolas Joly in PR lib/27172.
2004-10-07 01:47:11 +00:00
wiz
f74a3e4c4e Add missing function types for getpwnam_r and getpwuid_r. 2004-10-05 13:52:09 +00:00
lukem
0a87664e7c Use PASSWD_BYxxx(state) macros instead of "passwd.byxxx" to refer to
the NIS "passwd.by*" maps.
Fixes problem with "passwd_compat: nis" noted by Matthias Scheler.
2004-10-05 12:09:23 +00:00
lukem
45a7a69275 Overhaul the use of nsdispatch(3) by public APIs so that the back-end
methods use va_list in a manner that is directly related to the public API.
This makes it much easier to write dynamic nsswitch backends for getpwent(3).
Per my proposal on tech-userlevel.

Implement getpwgid_r() and getpwnam_r() APIs per the POSIX 1003.1, 2004 Ed.
These aren't fully reentrant or threadsafe yet, because the compat stuff
currently uses non-reentrant data sources (getnetgrent(3), getpwent(3)),
and there is probably some locking to be improved in the backends.
This will be fixed in the near future.
We also need to add _SC_GETPW_R_SIZE_MAX to sysconf(3).

Fix the compat `+' prototype override so getpwnam(3) and getpwuid(3) DTRT.

Improve the description of pw_class and pw_gecos.
2004-10-05 04:45:54 +00:00
lukem
a18b46b6e9 Correct order of description of getgr{nam,gid}{,_r}() functions. 2004-10-05 03:03:24 +00:00
perry
653de456c5 Note that MAP_ANON memory is zero filled. 2004-10-04 18:14:48 +00:00
lukem
71532e5cb8 crank copyright 2004-10-04 04:16:26 +00:00
lukem
c54f283e46 Overhaul the use of nsdispatch(3) by public APIs so that the back-end
methods use va_list in a manner that is directly related to the public API.
This makes it much easier to write dynamic nsswitch backends for getgrent(3).
Per my proposal on tech-userlevel.

Implement getgrgid_r() and getgrnam_r() APIs per the POSIX 1003.1, 2004 Ed.
These aren't fully reentrant or threadsafe yet, because the compat stuff
currently uses non-reentrant data sources (getnetgrent(3), getgrent(3)),
and there is probably some locking to be improved in the backends.
This will be fixed in the near future.
We also need to add _SC_GETGR_R_SIZE_MAX to sysconf(3).
2004-10-04 04:11:33 +00:00
lukem
25d91a60fb * Re-number NS_FORCEALL from 1<<7 to 1<<8, moving it out of the "public"
bitrange for nsdispatch(3) return values.
* Tweak documentation comments in nsswitch.h
* Ensure the result from the back-end method is masked with
  NS_STATUSMASK before nsdispatch(3) returns it.
2004-10-04 04:02:27 +00:00
he
1aba91b7c0 Move the conditional definition of offsetof() till after all the
headers have been included.  Fixes compile problem for vax.
2004-10-01 20:46:15 +00:00
wiz
29ac95abc3 Fix a typo, fix an xref, an drop a space at EOL. 2004-09-29 09:20:19 +00:00
lukem
e775b9e35a Implement NS_FORCEALL, which may be set in defaults[0].flags by a caller of
nsdispatch(3) to indicate that all available database methods for a source
will be invoked.  This is useful for functions such as endgrent(3).
2004-09-29 02:47:32 +00:00
lukem
22e72f089d slight formatting tweaks 2004-09-28 14:44:05 +00:00
wiz
b772ed97cf Drop space at EOL and dot at end of SEE ALSO. 2004-09-28 13:59:48 +00:00
lukem
3d2c2adc4d also ensure defaults != NULL 2004-09-28 11:51:42 +00:00
lukem
adea87aed9 s/foe/for/ 2004-09-28 11:37:26 +00:00
lukem
159aa790f6 Expand description of return value.
Remove bug about incorrect sizing calculation; it seems to DTRT for me.
Also reference group(5).
2004-09-28 10:49:22 +00:00
lukem
3608f5c3e9 'gid_t *groups' may be NULL if we're just sizing the list by calling
getgrouplist(3) with *grpcnt==0, so don't _DIAGASSERT(groups != NULL).

Tweak API used between getgrouplist(3) and the back-end nsswitch methods;
move the public return value to the start of the va_list and reserve the
'void *retval' for "internal use" (e.g, errno passing or some other need).
2004-09-28 10:46:19 +00:00
wiz
ab8bec093c Another formatting fix. 2004-09-28 09:36:14 +00:00
wiz
4f07b22d09 Some formatting fixes, and s/OpenBSD/.Ox/ s/FreeBSD/.Fx/. 2004-09-28 09:33:53 +00:00
wiz
867837f34d Remove trailing whitespace. 2004-09-28 09:31:13 +00:00
dyoung
4776f99384 Make newchunk() prototype match definition. 2004-09-28 06:35:38 +00:00
dyoung
9a9445f102 Commit stragglers. 2004-09-27 23:03:15 +00:00
dyoung
c14b894413 Resolve conflicts in libpcap-0.8.3 import.
Remove some extraneous files.
2004-09-27 23:02:53 +00:00
he
9ac3a85e48 Only compile the floatx80-using functions if the arch in question
defines the FLOATX80 macro.  Fixes build problem for arm ports.
2004-09-27 10:16:24 +00:00
yamt
f659b39d81 correct a function prototype. 2004-09-27 07:07:04 +00:00
lukem
115b984fd6 correct the va_list arg for nss_method 2004-09-27 07:00:52 +00:00
jmmv
8a1eb34d66 Add support to build the mac68k port with soft-float enabled (i.e., setting
MKSOFTFLOAT=yes).  The main purpose of this feature is to let NetBSD work
in machines with the 68040LC chip (those that have the FPU bug).

All the work has been done by Bruce O'Neel <edoneel AT sdf.lonestar.org>,
with some very minor changes by me; the patches were being posted to the
port-mac68k mailing list.  It has been tested for a long time by several
users, including me.

I have just verified that regular releases, as well as soft-float ones,
continue to build.

There have been no objections to this patch since I asked for them in July
in the port-mac68k list.
2004-09-26 21:13:27 +00:00
yamt
d94faebdc7 wctomb isn't supposed to set errno. 2004-09-26 00:51:39 +00:00
soda
89d5b6ffb2 forgot to replace #else with #endif, thanks yamt again. 2004-09-26 00:35:51 +00:00
yamt
8eaa138d56 _FUNCNAME(ctype_wcrtomb):
set *nresult on error rather than using stack garbage.
2004-09-26 00:17:15 +00:00
soda
63504487d1 oops, forgot to add "else" 2004-09-25 23:56:44 +00:00
soda
879ba02666 corrent an error in previous commit:
don't corrupt return value on error case, pointed out by yamt
2004-09-25 23:51:31 +00:00
soda
bb8f03e106 correct the return values of wcrtomb(3) and wctomb(3).
These return values should include the length of shift sequence
to restore the initial shift state.
2004-09-25 22:53:46 +00:00
lukem
7184648d82 Try nsdispatch "getgrouplist" before iterating the getgrent() list.
Implement a dns (hesiod) backend which tries a grplist hesiod lookup.
Convert back to using getgrent() similar to rev 1.15, instead of
using the private _getgrent_user() from getgrent.c.
2004-09-25 12:27:35 +00:00
christos
f42653853a Put back issetugid() check for hostaliases.
XXX: this is suboptimal, It would be better if we propelry checked
for access.
2004-09-25 05:33:01 +00:00
lukem
0b757c12fd ANSI KNF 2004-09-25 02:55:25 +00:00
tshiozak
922c0d0065 add system dependent strings support.
this hopefully allows to use .mo files generated by gettext-0.12 or later.
2004-09-23 21:35:27 +00:00
tshiozak
29be49b448 - add hash table support.
- make use of __UNCONST() instead of LINTED.
2004-09-23 16:44:26 +00:00
dyoung
6c7d5c9634 Process the new files in libpcap 0.8.3.
Match the end-of-line after file extensions, so that *.[ch] files
with version numbers in their pathnames (e.g., libpcap-0.8.3/gencode.c)
do not match the manual-page regular expression.
2004-09-22 19:35:47 +00:00
dyoung
5c852952b0 Import libpcap 0.8.3 from tcpdump.org---getting it right this time, I hope. 2004-09-19 21:57:48 +00:00
dyoung
7e3909436f Import libpcap 0.8.3 from tcpdump.org 2004-09-19 21:31:39 +00:00
christos
2611d5a68f KNF; Simplify some logic, so that lines don't wrap. Explain why we
break, continue, or return from the tty scanning loops.
2004-09-18 20:14:22 +00:00
yamt
2936303c19 openpty: just check errors of syscalls,
instead of checking permission beforehand in userland.
2004-09-18 16:44:38 +00:00
jdolecek
62b15febd3 make othercase() return int rather than char, to avoid sign extension
bug with character codes >= 128

fixes PR lib/26986 by Alexander Becher
2004-09-18 11:47:37 +00:00
hubertf
2fa09966de Change copyright to 2-clause BSD-copyright.
Changed with explicit permission of Thorsten Lockert (tholo sigmasoft com)
2004-09-15 19:45:17 +00:00
thorpej
60fd0955b1 Un-comment-out Xr to uuidgen(1). 2004-09-13 23:36:25 +00:00
thorpej
523777c603 Add HISTORY section. 2004-09-13 23:24:15 +00:00
wiz
a1c60f9187 New sentence, new line. -1 needs a backslash. Fix a typo.
Fix an article. Comment out Xr to uuidgen(1), since we do not have that.
2004-09-13 22:52:39 +00:00
thorpej
de1dfb1250 DCE 1.1 RPC compatible UUID routines for libc, adapted from FreeBSD.
Encode/decode to big/little endian binary blob routines adapted from
kernel.

PR 23470.
2004-09-13 21:44:54 +00:00
christos
0d0ad08914 cut out the middle-man and use el_insertstr() directly. 2004-09-08 18:15:57 +00:00
christos
742c0a6b61 make rl_inhibit_completion visible. 2004-09-08 18:15:37 +00:00
simonb
965b11f656 Fix non-ELF case in _nsloadmod(). 2004-09-08 10:52:56 +00:00
jrf
190b2e4c51 Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
2004-09-07 13:20:39 +00:00
jmmv
eb6866861c s/password databases/group databases/ 2004-09-02 11:43:18 +00:00
uwe
e8d7ac57c1 Add missing .Ed reported by new mdoc. 2004-08-31 17:11:33 +00:00
thorpej
70638a64cb Error out if we try to build with GCC 3.3 or later; we should be using
the GCC-supplied crtbegin / crtend in the GCC 3.3 or later case.
2004-08-28 00:19:22 +00:00
thorpej
8d13a4aafe Switch to using GCC's supplied crtbegin / crtend files. 2004-08-28 00:18:38 +00:00
wiz
484705032c Bump date for removal of net.key.random_int. 2004-08-27 14:35:11 +00:00
itojun
8ba8c58e74 remove net.key.random_int 2004-08-27 04:58:10 +00:00
thorpej
cf21167821 pdtpaddr -> pdppaddr 2004-08-27 01:13:31 +00:00
thorpej
08456b0802 Use ANSI function decls. 2004-08-26 21:23:06 +00:00
thorpej
5c50ce218e Remove the "allows linking without crtbegin / crtend" hack. 2004-08-26 21:21:33 +00:00
thorpej
b979dc154e Use ANSI function decls. 2004-08-26 21:21:05 +00:00
thorpej
54fe33a634 Use ANSI function decls. 2004-08-26 21:09:52 +00:00
thorpej
a41fd2dbc8 - Use ANSI function decls.
- Use __used__, not __unused__ attribute for ___start().
2004-08-26 21:07:14 +00:00
thorpej
68e26dcdb6 _strrchr()'s second argument is actually an int. 2004-08-26 21:01:12 +00:00
thorpej
352bb3a6aa Use ANSI function decls. 2004-08-26 20:57:47 +00:00
thorpej
11b5ec27b8 Remove sysident.h-related comment; that stuff is handled by crti.c these
days.
2004-08-26 20:51:27 +00:00
pooka
f213e15f84 The values for the parameter "how" are defined in sys/signal.h, not signal.h 2004-08-25 11:56:50 +00:00
christos
9b6268f92e make sure that we round up to 1K. 2004-08-24 12:41:06 +00:00
nathanw
7c7a36f21d In nanosleep(), loop until the timer fires or a signal is taken; other
spurious wakeups (such as those caused by gdb) should not cause
nanosleep to return prematurely.
2004-08-24 02:08:08 +00:00
nathanw
f83d3766b4 Mark when a thread has taken a signal. 2004-08-24 01:46:30 +00:00
nathanw
3f53b40ca7 Local whitespace police. 2004-08-24 01:45:54 +00:00
nathanw
15c2d9148c Add a flag that indicates that a thread took a signal. 2004-08-24 01:44:08 +00:00
ginsbach
3cb63a0abe Add MLINK for gethostent as suggested by Matthias Drochner. 2004-08-24 01:41:51 +00:00
rearnsha
54f20047f5 Add missing new line. 2004-08-21 13:08:29 +00:00
rearnsha
29efdff284 Temporary hack to work around ld problems when linking Thumb
applications where the linker does not correctly insert an
interworking veneer.
2004-08-21 12:12:28 +00:00
rearnsha
cd8021f51e Use RET macro for returning. 2004-08-21 11:31:44 +00:00
rearnsha
ed6e0e9e42 Use RET and RETc for returning. 2004-08-21 11:30:17 +00:00
rearnsha
145b31af81 Use RETc for returning. When v4T or later use BX for calling the target. 2004-08-21 11:29:51 +00:00
rearnsha
017d1fb251 Use RET and RETc for returning. 2004-08-21 11:25:17 +00:00
rearnsha
84104f4511 Use RET to return.
If ARMv5 or later then use CLZ rather than long-winded tale-lookup.
2004-08-21 11:24:28 +00:00
rearnsha
d4072e3a7c Always use bx for returning (this code is always ARMv5TE. 2004-08-21 11:22:33 +00:00
rearnsha
d6621260dc Use RET and RETc macros for returning. 2004-08-21 11:20:10 +00:00
rearnsha
85647ccc31 Use RET macro for returning from PSEUDO & PSEUDO_NOERROR 2004-08-21 11:18:40 +00:00
christos
848a98512e PR/26725: Sergey S. Kostyliov: Typo in libedit, possible buffer overflow in src/lib/libedit/history.c:history_save() 2004-08-20 12:54:05 +00:00
dogcow
96178d4078 insert a missing quotation mark. 2004-08-20 04:44:11 +00:00
christos
ea369b9669 Deal with RESCUEDIR 2004-08-19 22:25:49 +00:00
chs
c6736a59b3 redo the fix for PR 26392 differently: instead of changing the stack bounds
for the initial stack, just change the initial thread's pt_uc to point to
the opposite end of the stack (away from the argv, environment, etc).
2004-08-17 14:16:00 +00:00
ginsbach
f56858739a namespace protection for gethostent() 2004-08-17 14:10:06 +00:00
wiz
11a3ae1c04 Add commas in enumerations; drop trailing whitespace; bump date for previous. 2004-08-17 13:45:14 +00:00
ginsbach
ab52fcd2c6 endhostent() and sethostent() should actaully do something now that
gethostent() has been restored to libc.  Reviewed by <christos>.
2004-08-17 02:40:05 +00:00
ginsbach
30ef75e3f4 Restore gethostent() as a supported interface. Yes, it maybe obsolete
but it is specified by IEEE Std 1003.1, 2004 Edition (POSIX) and
the X/Open standards (Issue 6 and XNS 5.2).

* revert change removing gethostent() from gethostbyname(3) man page
* delete kruft from gethnamaddr.c leaving only gethostent() as a
  wrapper around _gethtent().
* revert recent changes to <netdb.h>
  + restore gethostent() prototype
  + restore freehostent() prototype; handle similar to non-shipped
    getipnodby*() prototypes
  + use correct XOPEN_SOURCE version (520 not 500) for freeaddrinfo()
    prototype; interface specified by XNS5.2 not XNS5

Reviewd by <christos> and <drochner>.
2004-08-17 02:29:56 +00:00
wiz
8a066267fb Bump date for const change. 2004-08-16 10:18:27 +00:00
ginsbach
ebcc92c100 * add const qualifier making getrpcbyname() and getrpcbyname_r()
prototypes match those used in latest Sun RPC code (TI-RPC 2.3)
* modify function getrpcbyname() definition as appropriate
2004-08-16 02:47:54 +00:00
wiz
5bf3687024 Add an article. 2004-08-14 11:04:29 +00:00
jdolecek
64fbdbbf78 document timeradd() and timersub() too, as e.g. select(2) points
to getitimer(2) for timersub() description

use .Fn rather than .Fa for the macro names

bump date
2004-08-14 10:03:30 +00:00
mycroft
6360c4b0f8 Delete-previous-char and delete-next-char without an argument are not supposed
to modify the yank buffer in Emacs.  Make it so.
2004-08-13 12:10:38 +00:00
yamt
6b2b9c625f - fix pthread_detach with an already exit'ed thread.
namely, put the thread to deadqueue rather than just leaking it.
- fix a race between pthread_detach/join and pthread_exit,
  which also causes dead thread leaks.
2004-08-12 10:54:13 +00:00
wiz
55fbd8d415 Remove some unnecessary double quotes, and fix some macro usage. 2004-08-08 14:48:47 +00:00
chs
ddc1ca7bcb map the data segment with PROT_EXEC since the PLT lives there. 2004-08-07 21:33:04 +00:00
provos
e128f30ca9 support for bufferevents; fix signal race; faster timeout insertion;
update man page and regression tests - this is a sync to libevent 0.9
2004-08-07 21:09:47 +00:00
ginsbach
ca4f974ad7 Use ANSI function decls. 2004-08-05 03:06:37 +00:00
lukem
0632d7cdd0 Need to prefix relative directories with `${.CURDIR}/' so that
objdir builds in the src tree (i.e, without MAKEOBJDIR{,PREFIX}) work.
Fixes problem noted by Hisashi T Fujinaka.
2004-08-05 01:24:02 +00:00
yamt
91ee88d04d actually add _Exit. 2004-08-05 00:17:02 +00:00
wiz
245c7e5202 New sentence, new line. 2004-08-04 15:07:37 +00:00
lukem
cd54219242 Convert from the src/lib -specific DEPLIBS to using LIBDPLIBS from <bsd.lib.mk> 2004-08-04 08:04:25 +00:00
thorpej
7c161da819 - Rename pw_copy() to pw_copyx(), make it return a success/failure code,
and add "errbuf" and "errbufsz" parameters so that errors can be handled
  gracefully, rather than simply exiting the process.
- Add a pw_copy() wrapper around pw_copyx() to preserve old behavior for
  apps that use it.
- Bump shlib version to 7.4.
2004-08-03 23:29:04 +00:00
yamt
129567b88f pthread_rwlock_timedrdlock/pthread_rwlock_timedwrlock:
fix lock/unlock inversions in ERRORCHECK.
2004-08-03 11:50:45 +00:00
yamt
5fc4e57d71 pthread_rwlock_timedwrlock: return ETIMEDOUT appropriately. 2004-08-03 11:40:24 +00:00
mycroft
42a0ee466b Modify prototype for pci_findvendor() and add pci_findproduct(). 2004-08-03 03:32:43 +00:00
ginsbach
9af61ddeaf Fix getrpcbyname() alias lookups. Closes PR lib/23294; reviewed by <christos>. 2004-08-02 18:59:09 +00:00
dsl
75c6c76be7 Fix (I hope) the bounding checks against the source window. 2004-08-02 18:47:52 +00:00
tshiozak
f7d656a488 revert the last all changes related to iconv(3). 2004-08-02 13:38:21 +00:00
yamt
dc8be105a2 follow the recent iconv(3) prototype change. 2004-08-02 03:15:33 +00:00
thorpej
a2bbd45143 Prevent a deadlock that could occur if we try to update the configuration
data structures during a recursive call to nsdispatch() by keeping a record
of which threads are inside nsdispatch() at any given time.
2004-08-02 00:19:34 +00:00
dsl
9214d0d9c1 overwrite() wasn't copying enough lines or columns.
copywin() couldn't seem to decide whether it should work in window or
screen coordinates - and managed to do neither.
Change copywin() to use window relative coords (as ncurses and solaris do),
and change overwrite() and overlay() to use the modified interface.
It is now possible to use overwrite() to save part of curscr while a
temporary window is drawn.
Fixes PR/26506
2004-08-01 21:48:24 +00:00
wiz
50779db1e3 Bump date for previous. 2004-08-01 19:24:47 +00:00
tshiozak
2edebf3ee0 sync with the current iconv() prototype. 2004-08-01 17:07:15 +00:00
tshiozak
ab8d4be7c6 make sure that the iconv(3) follows the POSIX specification;
change the 2nd argument from "const char ** restrict" to "char ** restrict".
2004-08-01 16:40:58 +00:00
lukem
934fa4ac14 support MAKEVERBOSE in tags: 2004-07-31 14:13:05 +00:00
lukem
124613b27e Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).
2004-07-30 07:02:53 +00:00
lukem
e1d3cfe331 LDADD libcrypto libasn1 libcom_err libroken 2004-07-30 06:13:00 +00:00
lukem
ebad1d2bfc LDADD libcurses 2004-07-30 04:44:54 +00:00
lukem
005a51cac0 LDADD libcrypto 2004-07-30 04:22:33 +00:00
nathanw
8bf7374bcf In cond_wait() and cond_timedwait(), do the ERRORCHECK testing of the
waiters list in all cases, not just on cancellation; there are other
sources of spurious wakeups, such as single-stepping in the debugger.

regress/lib/libpthread/conddestroy1 now passes.
2004-07-27 21:44:48 +00:00
wiz
e9abe80526 Use \*[Lt]\*[Gt] or Aq instead of <>; sort SEE ALSO. 2004-07-27 14:35:56 +00:00
enami
0520e17087 - Honor the HN_NOSPACE flag (i.e., don't put a space if specified,
and put space if not specified).
- There was a test which didn't count the suffixlen.  Fix it.
- Make the code a bit easier to read.
2004-07-27 01:56:24 +00:00
drochner
0ca4ad479d fix alignment check for source
should fix PR port-amd64/26416 by Nicolas Joly
2004-07-26 18:51:21 +00:00
chs
503ca60040 in pthread__initmain(), don't reuse the part of the initial stack that
is occupied by the argv and environment (and MD stuff like the page-table
mapping on x86).  fixes PR 26392.
2004-07-25 23:22:43 +00:00
chs
95a63d48f2 add missing FP functions, from openbsd. 2004-07-24 19:09:29 +00:00
thorpej
43d6d8d887 Add support for dynamically loading nsswitch modules on ELF platforms.
Adapted from FreeBSD.  Maintains full backward API / ABI compatbility
with built-in-only nsdispatch().

While here, also make nsdispatch() itself thread-safe.
2004-07-24 18:42:51 +00:00
blymn
6b3a44ef27 Remove _cursesi_genbuf, it was not being set and caused a SIGSEGV
in getcap().  Fixed getcap() to use screen->cursesi_genbuf.
Thanks to Peter Bex for spotting this.  This closes pr lib/26404.
2004-07-24 13:10:47 +00:00
wiz
a24a61f205 getcurx, getcury, getparx, and getpary also seem to be extensions. 2004-07-23 13:42:16 +00:00
wiz
f849435424 Note that getbegx, getbegy, getmaxx, and getmaxy are extensions
to X/Open Curses. From Peter Bex in PR 26352.
2004-07-23 13:38:48 +00:00
drochner
458288a626 pull in an accuracy fix for corner cases from FDLIBM 5.3
(affects large arguments which are close to N*Pi+Pi/2):
    2. k_tan.c error was > 1 ulp target for FDLIBM
        5.2: Worst error at least 1.45 ulp at
        tan(1.7765241907548024E+269) = 1.7733884462610958E+16
        5.3: Worst error 0.96 ulp
2004-07-22 18:24:09 +00:00
tshiozak
09e09c2c2c make sure CITRUS=no to work. 2004-07-21 20:27:46 +00:00
tshiozak
f1849eeaba - add support for "/force" symbol on locale.alias.
- a bit clean-up.
2004-07-21 18:51:30 +00:00
tshiozak
7b7f96b642 add prototype for load_locale_sub(). 2004-07-21 17:49:49 +00:00
tshiozak
335bc6323f add support for locale.alias file. 2004-07-21 14:18:16 +00:00
tshiozak
8ad8061809 use _citrus_lookup_alias() instead of __unalias(). 2004-07-21 14:17:22 +00:00
tshiozak
23affd3c41 make sure that _citrus_lookup family functions can be specified their case
sensitivity.
2004-07-21 14:16:34 +00:00
itojun
588f60ad8b now that e.f.f.3.ip6.arpa is ready, we no longer need to query ip6.int 2004-07-21 03:16:29 +00:00
he
b17ac49bb1 Cast result of pthread__uc_pc() via intptr_t before using as a pointer.
Fixes compile problem for evbsh5.
2004-07-20 12:40:53 +00:00
chs
6c4049f2ff fix some stack-pointer math in the previous revision. 2004-07-20 01:51:49 +00:00
drochner
07d87c5c6e replace the str*() functions by speed optimized versions, submitted by
J.T. Conklin per PR port-amd64/25411
2004-07-19 20:04:41 +00:00
chs
e348d7e175 add hppa MD libpthread bits. translated from MIPS. 2004-07-19 03:39:02 +00:00
chs
c27bdd3547 added new files for context, LWP and siginfo support. 2004-07-18 22:41:23 +00:00
chs
1e1499c776 split __longjmp14() into a separate file and make it use setcontext()
instead of __sigreturn14().  translated from MIPS.
2004-07-18 22:38:33 +00:00
chs
61b506f0a2 add a siginfo signal trampoline and always use it. 2004-07-18 22:38:07 +00:00
chs
56371a56c7 add *context and LWP support for hppa. translated from MIPS. 2004-07-18 22:37:32 +00:00
chs
94a458cedd enhance MI pthreads code to support hppa:
- statically initialize all global spin locks.  on hppa, 0 means
   the lock is held, so leaving them with the default value doesn't work.
 - compare functions pointers using a function-pointer type rather than
   an integral type.  on hppa, function pointers may be indirect,
   so we need to trigger gcc to emit calls to the function-pointer
   canonicalization routines in the millicode.
 - on hppa the stack grows up, so handle that using the STACK_* macros.
2004-07-18 21:24:52 +00:00
chs
32c9e25b89 call abort() if longjmperror() returns. 2004-07-18 20:51:24 +00:00
chs
2f80fec241 replace these placeholders with real implementations.
translated from the mips version.
2004-07-18 20:48:04 +00:00
chs
c2f33bd76d save and restore %t1 around calling __errno, it's a caller-saved register. 2004-07-18 20:44:05 +00:00
chs
7d976824e9 add a missing return instruction. 2004-07-18 20:30:04 +00:00
thorpej
2a63e04007 - Change the strong dlfcn names in libc to ___name, and make the __name
versions used by others in libc weak, so that we have:
	name: weak
	__name: weak
	___name: strong
- Add __name strong aliases of the dlfcn names in ld.elf_so, so that we have:
	name: strong
	__name: strong

This allows ld.elf_so to self-resolve both the name and __name variants
of the dlfcn functions, the former being required for dlfcn support in
applications, the latter being required for dlfcn support in libc.

Fixes the problem described in:

    http://mail-index.netbsd.org/tech-toolchain/2004/07/17/0000.html

Reviewed by Nick.
2004-07-18 17:26:19 +00:00
drochner
c351eda960 amd64: stack sanity, leave the return PC alone 2004-07-16 18:40:24 +00:00
thorpej
b8b64b05f9 Use ANSI function decls. 2004-07-16 16:11:43 +00:00
skrll
7bdf35d6e3 Add a copyright message. 2004-07-15 19:58:00 +00:00
junyoung
ffb3101064 round(3) and roundf(3) appeared in 2.0.
Bump date.
2004-07-15 12:12:39 +00:00
wiz
5102b97303 Bump date for previous. 2004-07-14 20:10:14 +00:00
kleink
ea50e13fa9 Add a STANDARDS section; noted by Peter Bex in PR standards/25957. 2004-07-14 19:12:26 +00:00