summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Formatting fix.Alexander Langer1998-01-111-1/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32438
* Added EMFILE and ENFILE to errors section.Alexander Langer1998-01-111-0/+5
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32437
* .Xr sigvec --> sigactionAlexander Langer1998-01-111-2/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32436
* Add <sys/types.h> to synopsis.Alexander Langer1998-01-111-1/+4
| | | | | | | | | | Correct a grammatical error. Add cross-reference to setrlimit(2). Obtained from: OpenBSD Notes: svn path=/head/; revision=32435
* CSU source for Alpha obtained from NetBSD. The makefile will requireJohn Birrell1998-01-114-0/+419
| | | | | | | more work when we get a half-way usable libc (which is next). Notes: svn path=/head/; revision=32417
* We can now build libm on Alpha. There is very little MD alpha code.John Birrell1998-01-101-3/+0
| | | | Notes: svn path=/head/; revision=32408
* This is the only alpha math source that NetBSD has.John Birrell1998-01-102-0/+90
| | | | Notes: svn path=/head/; revision=32405
* Put back __libalias_version so ppp(8) build again.Steve Price1998-01-101-0/+3
| | | | Notes: svn path=/head/; revision=32398
* Sync with ipfw interface change: fw_pts is now part of a union (aAlexander Langer1998-01-101-5/+5
| | | | | | | necessary evil due to the 108 byte setsockopt() limit). Notes: svn path=/head/; revision=32396
* include <net/if.h> and restore this to sanity.Jordan K. Hubbard1998-01-101-0/+1
| | | | Notes: svn path=/head/; revision=32392
* Bruce says that ${.CURDIR}/csu/${MACHINE} will prevent finding aJohn Birrell1998-01-101-2/+6
| | | | | | | | | | | stale obj directory and we wouldn't want to do that! I trust he knows what he's talking about. 8-) Also avoid building libm at all until the NetBSD asm code is imported. I wrongly commented this out last time. Oops. Notes: svn path=/head/; revision=32386
* Allow this to compile with NetBSD tools.John Birrell1998-01-091-1/+1
| | | | Notes: svn path=/head/; revision=32378
* Teach libalias to work with IPFW firewalls (controlled by a flag).Eivind Eklund1998-01-099-93/+475
| | | | | | | | Obtained from: Yes development tree (+ 10 lines of patches from Charles Mott, original libalias author) Notes: svn path=/head/; revision=32377
* Don't build libc, libc_r or libm on Alpha yet. We'll do the otherJohn Birrell1998-01-091-3/+7
| | | | | | | libraries first and use NetBSD's libc/libm for now. Notes: svn path=/head/; revision=32375
* Make a couple of the stat flags dependent on the sys/stat.h header fileJohn Birrell1998-01-094-4/+36
| | | | | | | | | | | | | | that this source is compiled against. This source is referenced by install which is needed as a build tool and must be able to compile against NetBSD headers and libraries if we have a hope of supporting another architecture. With this change, that's two working programs down and 3945 (?) to go. The other one was make, but that didn't need any changes to work under FreeBSD/Alpha. 8-) Notes: svn path=/head/; revision=32361
* Build lib/csu/${MACHINE} only if it exists so that when porting FreeBSDJohn Birrell1998-01-091-1/+1
| | | | | | | | | to another architecture (in this case the Alpha) we can continue to use the host csu objects (from NetBSD). This should be a non-function change to FreeBSD/i386. Notes: svn path=/head/; revision=32359
* handle long usernames more carefullyWarner Losh1998-01-071-5/+8
| | | | | | | | Reviewed by: guido Obtained from: OpenBSD (Theo de Raadt) Notes: svn path=/head/; revision=32299
* Convert to mdoc format.Philippe Charnier1998-01-051-248/+146
| | | | Notes: svn path=/head/; revision=32271
* size_t -> unsignedAndrey A. Chernov1998-01-041-3/+3
| | | | | | | | in arguments length INT_MAX overflow check Suggested-by: bde Notes: svn path=/head/; revision=32253
* Expanded cross references.Alexander Langer1998-01-029-8/+20
| | | | Notes: svn path=/head/; revision=32193
* Remove unneeded code left from testingAndrey A. Chernov1998-01-021-13/+2
| | | | Notes: svn path=/head/; revision=32174
* 1) Redo internal interface to be more latest ncurses-likeAndrey A. Chernov1998-01-023-73/+82
| | | | | | | | | 2) Fix winsdel called in last line of the window (nothing happens in old variant) 3) Add range checks to wscrl() and internal soft scroll function Notes: svn path=/head/; revision=32172
* Fix another problem with clearing the last line of theSteve Price1998-01-011-1/+1
| | | | | | | | | display. Submitted by: Kouichi Hirabayashi <kh@mogami-wire.co.jp> Notes: svn path=/head/; revision=32171
* 1. EOF was returned when the buffer size was larger than INT_MAX. ThisAndrey A. Chernov1998-01-012-10/+10
| | | | | | | | | | | | | case has very little to do with the output size being larger than INT_MAX. 2. The new #include of <limits.h> was disordered. 3. The new declaration of `on' was disordered (integer types go together). 4. Testing an unsigned value for > 0 was fishy. Submitted by: bde Notes: svn path=/head/; revision=32168
* Drop the use of caddr_t in conjunction with mmap(2).Alexander Langer1997-12-311-4/+4
| | | | Notes: svn path=/head/; revision=32133
* Convert caddr_t --> void * for sys/mman.h functions.Alexander Langer1997-12-319-16/+16
| | | | | | | | | | | | | | | | | | | mlock, mmap, mprotect, msync, munlock, and munmap are defined by POSIX as taking void *. The const modifier has been added to mlock, munlock, and mprotect as the standard dictates. minherit comes from OpenBSD and has been updated to conform with their recent change to void *. madvise and mincore are not defined by POSIX, but their arguments have been modified to be consistent with the POSIX-defined functions. mincore takes a const pointer, but madvise does not due to the MADV_FREE case. Discussed with: bde Notes: svn path=/head/; revision=32131
* Fixed formatting of the MADV_FREE flag description.Alexander Langer1997-12-301-3/+3
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=32118
* Typo fix.Alexander Langer1997-12-301-2/+2
| | | | Notes: svn path=/head/; revision=32114
* Document MS_SYNC.Alexander Langer1997-12-301-0/+1
| | | | Notes: svn path=/head/; revision=32112
* Handle the condition where BS is typed while the cursor isSteve Price1997-12-291-1/+3
| | | | | | | | | | | | at the first position on either of the last two lines of the screen. Ie. append contents of current line to the previous line and scroll the next line's contents up. PR: 5392 Submitted by: Kouichi Hirabayashi <kh@mogami-wire.co.jp> Notes: svn path=/head/; revision=32073
* The terminating character in strings is `NUL', not `NULL'.Wolfram Schneider1997-12-282-2/+2
| | | | Notes: svn path=/head/; revision=32051
* fork() checks RLIMIT_NPROC, not RLIMIT_NOFILE.Tim Vanderhoek1997-12-261-1/+1
| | | | | | | | pr: docs/5260 submitted-by: Niall Smart [3]njs3@doc.ic.ac.uk Notes: svn path=/head/; revision=32001
* Changed pthread_detach to conform to POSIX, i.e. the single argumentAlexander Langer1997-12-253-30/+9
| | | | | | | | | | | | provided is of type pthread_t instead of pthread_t *. PR: 4320 Return EINVAL instead of ESRCH if attempting to detach an already detached thread. Notes: svn path=/head/; revision=31985
* Removed unnecessary initialization of hp in gethostbyaddr_r.Alexander Langer1997-12-251-3/+3
| | | | Notes: svn path=/head/; revision=31984
* Add overflow checks: if output size becomes bigger than INT_MAX,Andrey A. Chernov1997-12-251-2/+13
| | | | | | | just return EOF Notes: svn path=/head/; revision=31983
* Correct type of stored argument place (from previous fix)Andrey A. Chernov1997-12-242-4/+4
| | | | Notes: svn path=/head/; revision=31982
* 1) Restore back comment about snprintf()Andrey A. Chernov1997-12-241-7/+10
| | | | | | | | 2) Optimize string buffer copy to call memcpy() and update pointers only for count > 0, it makes snprintf(NULL, 0, ...) more efficient Notes: svn path=/head/; revision=31981
* Return back to BSD snprintf semantics which recent C9x standard adoptsAndrey A. Chernov1997-12-243-21/+23
| | | | | | | | | | | | | instead of Singe Unix, thanx Bruce for explaining, I am not realize standards war was there. But now, fix n == 0 case to not return error and fix check for too big n. Things left to do: check for overflow in arguments. Notes: svn path=/head/; revision=31980
* 1) Oops! Insert again if (n == 0) return 0.Andrey A. Chernov1997-12-242-10/+10
| | | | | | | | | | | | | | | | | | | | | | Final word is Bruce's quote: C9x specifies the BSD4.4-Lite behaviour: [#3] ... Thus, the null-terminated output has been completely written if and only if the returned value is less than n. It means that if we not have any null-terminated output as for n == 0 we can't return value less than n, so we forced to return value equal to n i.e. 0 The next good thing is glibc compatibility, of course. 2) Do check for too big n in machine-independent way. 3) Minor optimization assuming EOF is < 0 Notes: svn path=/head/; revision=31979
* Back out part related to "return 0 if n == 0" and return EOF as before.Andrey A. Chernov1997-12-242-6/+2
| | | | | | | | | | | | | | The main argument is that it is impossible to determine if %n evaluated or not when snprintf return 0, because it can happens for both n == 0 and n == 1. Although EOF here is good indication of the end of process, if n is decreased in the loop... Since it is already supposed in many places that EOF *is* negative, f.e. from Single Unix specs for snprintf "return ... a negative value if an output error was encountered" this not makes situation worse. Notes: svn path=/head/; revision=31969
* Fix snprintf(...%n...)Andrey A. Chernov1997-12-241-5/+9
| | | | | | | | | to pass not more than buffer size to %n agrument, old variant always assume infinite buffer. %n is for actually transmitted characters, not for planned ones. Notes: svn path=/head/; revision=31968
* Remove wrong comment about snprintf:Andrey A. Chernov1997-12-241-5/+4
| | | | | | | | | | | | "return the number of bytes needed, rather the number used" According to Single Unix specs: Upon successful completion, these functions return the number of bytes transmitted excluding the terminating null Notes: svn path=/head/; revision=31967
* snprintf return value fixes to conform Single Unix specs:Andrey A. Chernov1997-12-242-6/+16
| | | | | | | | | | | | | | | | | | | | | | | 1) if buffer size is smaller than arguments size, return buffer size, not arguments size as before. 2) if buffer size is 0, return 0, not EOF as before. (now it is compatible with Linux and Apache implementations too). NOTE: Single Unix specs says: If the value of n {buffer size} is zero on a call to snprintf(), an unspecified value less than 1 is returned. It means we can't return EOF since EOF can take *any* value in general not especially < 1. Better variant will be return -1 (it is less then 1 and different with n == 1 case) but -1 value is already occuped by EOF in our implementation, so we can't distinguish true IO error in that case. So 0 here is only possible case still conforming to Single Unix specs. Notes: svn path=/head/; revision=31966
* Change errno usage as a field in a structure and as an argument to aJohn Birrell1997-12-202-28/+28
| | | | | | | | function from 'errno' to 'error' so that there is no conflict with the thread-safe definition of errno in errno.h. Notes: svn path=/head/; revision=31892
* Fixed the termcap 3.0 hacks. They were very broken in my configurationBruce Evans1997-12-191-10/+11
| | | | | | | | | | where shared libraries are in /lib and almost everything is linked shared. First, they removed the old shared library before installing the new one. Second, they attemped a cross-device link from /lib to /usr/lib/compat. Notes: svn path=/head/; revision=31873
* Comment that long double is poorly implemented, not that it is unimplemented.Bruce Evans1997-12-191-2/+3
| | | | Notes: svn path=/head/; revision=31871
* Put the .PATH statement first as in all other libc Makefile.inc's.Bruce Evans1997-12-191-3/+2
| | | | Notes: svn path=/head/; revision=31870
* Format the MLINKS statement the same as in most other libc Makefile.inc's.Bruce Evans1997-12-191-2/+3
| | | | Notes: svn path=/head/; revision=31869
* Fix recursion problem which occurs when a signal is received duringJohn Birrell1997-12-151-3/+12
| | | | | | | | | | a malloc. The signal handler creates a thread which requires a malloc... For now, the only thing to do is to block signals. When we move user pthreads to use the kernel threads, mutexes will be implemented in kernel space and then malloc can revert. Notes: svn path=/head/; revision=31722
* Delete "typedef ... date" (see style(9)).Wolfgang Helbig1997-12-134-43/+51
| | | | | | | | | | In the man page Use ".Pp" instead of blank lines, adopt English and stress that the Julian->Gregorian switch took place at different dates in different countries. Suggested by: Garrett. Notes: svn path=/head/; revision=31698