Commit Graph

22 Commits

Author SHA1 Message Date
thorpej
38ba03f125 Allow the old-name functions to be compiled from the same source file as
the renamed functions, and add some #error directives to force the
issue with weak symbols for renamed functions when we support weak
symbols in the C library.
1997-10-22 06:37:42 +00:00
fvdl
21e1e24df3 New hacks to make libc work painlessly without bumping the major number:
use type func(arg1s) asm("emitted_name") gcc mechanism.
Suggested by Bill Sommerfeld.
1997-10-22 00:51:45 +00:00
fvdl
d6b51107ce Hacks to enable libc to work without bumping the major. 1997-10-21 00:55:10 +00:00
christos
525e2bc598 Revert all slash removing changes; it is not worth it...
The latest one broke "ls foo.c/". Sync with Lite-2.
1997-10-09 22:59:18 +00:00
pk
98cfb5140f Restore the NAPPEND macro, as it existed until revision 1.13, that deals
with roots consisting of a single slash. This special case of special
cases cannot be dealt with in fts_open() by simply chopping of a
trailing slash.

All this to avoid the occasional doubling of slashes. Oh well..
1997-10-08 19:56:59 +00:00
pk
3beb1a70cf In fts_alloc() copy the trailing 0 character explicitly, instead of
relying on the passed input string having a 0 character at the right spot.
Takes care of PR#4234.
1997-10-07 23:02:17 +00:00
pk
4c956be8c9 The change in revision 1.13 to avoid doubling slashes in path names
messes up the internal administrations of the fts engine.

Do this differently by simply stripping one trailing slash (if any)
from root paths passed to fts_open().
1997-09-27 22:53:07 +00:00
jtc
43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
christos
282afa2f88 Fix RCSID's
Add missing prototypes.
Fix rest of gcc warnings.
1997-07-13 18:59:02 +00:00
phil
e9044db523 Fix it so fts_* never adds a / to a path name when there is
already a trailing /.  Fixes PR 1495.
1997-07-10 22:12:08 +00:00
cgd
72c46b1cdc merge with Lite, keeping local changes. Also use new Id format. 1995-02-27 03:42:42 +00:00
mycroft
05fe3ff1f7 Mostly sync with CSRG. 1994-12-28 03:06:05 +00:00
mycroft
18ff56020d Avoid extra stat()s if a link count of 1 is returned for directories but the
d_type field is filled in.
1994-10-26 20:25:50 +00:00
cgd
bbec950385 POSIXification and bostic's official fix for the missing relative path problem 1994-04-17 02:21:02 +00:00
cgd
d7bb411a87 re-POSIXIFICATION. should have been punted back to bostic... 1994-04-12 04:41:17 +00:00
cgd
1bf99f645f oops, restore bug fix that wasn't fed back to bostic... 1994-04-12 04:35:04 +00:00
cgd
92bb6b9feb minor fixes 1994-04-12 03:21:35 +00:00
jtc
02ae14d50f Fix obscure bug where the working directory would not be restored to its
proper place (occurs if one of fts_open()'s arguments is a relative path
to a empty directory).
1994-01-14 01:53:57 +00:00
jtc
9bd83209f0 Change C library functions to use strchr() and strrchr() instead of index()
and rindex().  This will allow (strict {ANSI, POSIX, XOPEN}) applications
to redefine index() and rindex() without effecting the library internals.
1993-11-24 19:43:49 +00:00
jtc
9c20f740a3 Declare rcsid strings so they are stored in text segment. 1993-08-26 00:43:03 +00:00
mycroft
e7ae1531d5 Latest versions from uunet. 1993-07-30 07:57:48 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00