freebsd-dev/lib/libc/gen
John Polstra cfa4d73988 Add a new library function getobjformat(). It checks all the
standard places ("/etc/objformat", ${OBJFORMAT}, argv) for an
indication of the user's preferred object file format.  This
consolidates some code that was starting to be duplicated in more
and more places.

Use the new function in ldconfig.

Note: I don't think that gcc should use getobjformat(), even though
it could.  The compiler should limit itself to functions that are
widespread, to ease porting and cross-compilation.
1998-09-09 01:21:25 +00:00
..
__xuname.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
_rand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
_spinlock_stub.c Implement compile time debug mode for thread locks. 1998-06-09 08:32:23 +00:00
alarm.3 Describe upper limit based on itimerfix restriction 1997-08-14 07:44:57 +00:00
alarm.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
arc4random.3 Change u_char which require special include to unsigned char 1997-06-14 01:28:59 +00:00
arc4random.c Add arc4random() functions from OpenBSD. They are almost same as our 1997-06-14 01:15:41 +00:00
assert.c Don't include <sys/types.h> when it isn't used. 1996-04-19 18:40:25 +00:00
clock.3 Removed bogus includes of <sys/types.h> from synopses. 1996-04-19 19:00:26 +00:00
clock.c Change CLK_TCK to CLOCKS_PER_SEC. (CLK_TCK is a deprecated POSIX feature 1995-02-03 21:59:45 +00:00
closedir.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
confstr.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
confstr.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
crypt.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:16:20 +00:00
crypt.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
ctermid.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
ctermid.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
daemon.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
daemon.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
devname.3 Merge from Lite2: man page updates 1997-03-11 11:47:52 +00:00
devname.c Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch 1997-03-11 11:29:42 +00:00
directory.3 Correct wrong claim about `telldir()' cookie lifetimes. 1998-06-03 06:54:24 +00:00
disklabel.c Merge from Lite2: 1997-03-11 11:52:33 +00:00
dladdr.3 Sort cross references. 1998-08-31 16:41:09 +00:00
dlfcn.c Add support for ELF. 1998-03-07 19:57:05 +00:00
dlopen.3 Move the trampolines for dlopen and related functions from crt0.o 1998-02-09 06:05:25 +00:00
drand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
erand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
err.3 Improve description. 1998-04-22 19:59:55 +00:00
err.c Don't use __dead or __pure in user code. They were obfuscations 1996-09-14 03:00:32 +00:00
errlst.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
exec.3 Fixed searching of $PATH in execvp(). Do what sh(1) should do according 1997-10-14 07:23:16 +00:00
exec.c stat() the correct file in execvp() so that the fine tuned errno handling 1997-11-20 15:09:38 +00:00
fnmatch.3 Merge from Lite2: man page updates 1997-03-11 11:47:52 +00:00
fnmatch.c Style optimization in newly added POSIX range []] conformance, redo 1997-06-07 01:33:10 +00:00
frexp.3 Sort cross references. 1997-01-20 23:23:22 +00:00
fstab.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
ftok.3 This is a null commit to log the fact that I have done a repository 1998-06-10 04:24:21 +00:00
ftok.c This is a null commit to log the fact that I have done a repository 1998-06-10 04:24:21 +00:00
fts-compat.c fts_close calls free(sp), the ISSET(FTS_NOCHDIR) which is a macro that 1998-07-03 08:21:05 +00:00
fts-compat.h Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
fts.3 Strings are terminated by NUL, not NULL. 1998-02-28 18:05:42 +00:00
fts.c fts_close calls free(sp), the ISSET(FTS_NOCHDIR) which is a macro that 1998-07-03 08:21:05 +00:00
getbootfile.3 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
getbootfile.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
getbsize.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
getbsize.c Fixed printf format errors. 1998-08-02 14:41:34 +00:00
getcap.3 Show the real revision date and not the date that this 1997-06-23 04:03:49 +00:00
getcap.c Change L_SET to SEEK_SET for POSIX compliance. 1997-10-26 00:41:51 +00:00
getcwd.3 Fixed spelling of EACCES. 1997-11-23 17:58:55 +00:00
getcwd.c NetBSD doesn't have a __getcwd syscall, so set have__getcwd to `no' 1998-05-15 11:59:00 +00:00
getdiskbyname.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getdomainname.3 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
getdomainname.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
getfsent.3 Update to reflect current include files. 1997-01-30 23:01:49 +00:00
getgrent.3 Correct the xref section - it was incorrectly using .Fn instead 1997-02-28 05:46:19 +00:00
getgrent.c Allow comments in group database. 1997-03-08 16:21:40 +00:00
getgrouplist.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
getgrouplist.c Fixed merging error. Lite2 fixed premature failure and didn't 1997-03-12 14:54:22 +00:00
gethostname.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
gethostname.c gethostname() returns int, not long. Answered my own question by 1996-12-05 18:14:56 +00:00
getloadavg.3 Fixed missing function types in synopsis. 1997-03-19 00:32:42 +00:00
getloadavg.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getlogin.c The NetBSD getlogin syscall has a different name. 1998-02-20 08:07:40 +00:00
getmntinfo.3 Sort cross references. 1997-01-20 23:23:22 +00:00
getmntinfo.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getnetgrent.3 FIxed arg types (mostly missing consts) in synopsis. 1997-03-19 00:52:58 +00:00
getnetgrent.c Replace previous commit with a check disallowing ptr from running 1998-03-01 18:49:37 +00:00
getobjformat.3 Add a new library function getobjformat(). It checks all the 1998-09-09 01:21:25 +00:00
getobjformat.c Add a new library function getobjformat(). It checks all the 1998-09-09 01:21:25 +00:00
getosreldate.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
getpagesize.3 Sort cross references. 1997-01-20 23:23:22 +00:00
getpagesize.c Cache the result of getpagesize() so we only make one syscall. 1996-05-02 08:43:05 +00:00
getpass.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
getpass.c Do signal handlig he Posix way 1998-02-10 20:05:15 +00:00
getpwent.3 Cleanup the manpage now that setpwent has a void return type. 1998-02-01 17:13:12 +00:00
getpwent.c XOpen says the void setpwent(void) is correct. Also call setpassent(0) 1998-02-01 06:16:08 +00:00
getttyent.3 isnetworktty -> isnettty. ttyent.h has already gone through 3 1998-08-03 15:35:41 +00:00
getttyent.c Fix typo. 1997-04-13 16:55:56 +00:00
getusershell.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:16:20 +00:00
getusershell.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
getvfsbyname.3 More cleanup - I didn't realize that this was a new man page 1997-03-12 15:21:57 +00:00
getvfsbyname.c getvfsbyname() doesn't existing NetBSD, so return ENOSYS if compiled 1998-03-09 04:36:07 +00:00
getvfsent.3 Remove references to getvfsbytype. Also remove getvfsbyname 1998-05-30 18:20:37 +00:00
getvfsent.c Moved most of the (source-level) compatibility hacks for the vfsconf 1998-01-20 10:36:24 +00:00
glob.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:16:20 +00:00
glob.c NetBSD kernels don't have issetugid(), so #ifdef this out when 1998-02-20 07:54:56 +00:00
initgroups.3 Typo police. Part of PR# 3242. 1997-04-09 23:05:04 +00:00
initgroups.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
isatty.c Implement compile time debug mode for thread locks. 1998-06-09 08:32:23 +00:00
isinf.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
jrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
lcong48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
ldexp.3 Sort cross references. 1997-01-20 23:23:22 +00:00
lockf.3 An implementation of lockf() function call. 1998-07-08 15:28:56 +00:00
lockf.c Make this look more FreeBSDish. 1998-07-08 15:38:06 +00:00
lrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
Makefile.inc Add a new library function getobjformat(). It checks all the 1998-09-09 01:21:25 +00:00
modf.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
mrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
msgctl.3 Fixed spelling of EACCES. 1997-11-23 17:58:55 +00:00
msgctl.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgget.3 Mdoc cleanup. 1997-03-21 20:46:30 +00:00
msgget.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgrcv.3 Fixed spelling of EACCES. 1997-11-23 17:58:55 +00:00
msgrcv.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgsnd.3 Fixed spelling of EACCES. 1997-11-23 17:58:55 +00:00
msgsnd.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
nice.3 Need to #include <unistd.h> for nice(3). 1998-02-18 18:34:17 +00:00
nice.c Remove extern int errno and #include <errno.h> to get the proper definition. 1998-05-05 22:04:13 +00:00
nlist.3 Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
nlist.c Update to use the new elf headers. 1998-08-17 08:47:19 +00:00
nrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
ntp_gettime.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
opendir.c Cast pointer to a long instead of an int to keep a 64-bit compiler 1998-03-09 04:29:00 +00:00
pause.3 Pause() is made obsolete by sigsuspend(2), not sigpause(3). 1997-03-09 00:42:46 +00:00
pause.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
popen.3 Mention when bidirectional features first appeared. 1998-02-17 16:36:48 +00:00
popen.c FIxed the cleanup. I forgot to leave stdin alone in the usual (!twoway) 1997-04-22 09:44:06 +00:00
psignal.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:16:20 +00:00
psignal.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
pw_scan.c Staticize usage(). Cosmetics. 1997-10-10 06:27:07 +00:00
pw_scan.h BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00
pwcache.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:16:20 +00:00
pwcache.c Honor the nouser/nogroup flag when determing if NULL should 1997-04-03 01:51:34 +00:00
raise.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
raise.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
rand48.3 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq 1998-03-19 07:34:22 +00:00
rand48.h Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
readdir.c Fix a bogus cast for a bogus pointer check. This only checks if the 1998-02-20 08:00:01 +00:00
rewinddir.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
scandir.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
scandir.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
seed48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
seekdir.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
semconfig.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
semctl.c Fix this so that it compiles in the !__STDC__ case. 1998-06-06 18:52:43 +00:00
semget.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
semop.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
setdomainname.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
setflags.c Make a couple of the stat flags dependent on the sys/stat.h header file 1998-01-09 06:14:59 +00:00
setflagsbyname.c Make a couple of the stat flags dependent on the sys/stat.h header file 1998-01-09 06:14:59 +00:00
sethostname.c sethostname() returns int, not long. I could get used to having this 1996-12-05 18:27:20 +00:00
setjmp.3 Fixed a bunch of man page cross references that were 1996-02-15 20:07:05 +00:00
setjmperr.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
setmode.3 Merge from Lite2: man page updates 1997-03-11 11:47:52 +00:00
setmode.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
setproctitle.3 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq 1998-03-19 07:34:22 +00:00
setproctitle.c Oops, revert part of a diff that wasn't supposed to have been committed. 1998-04-28 07:02:33 +00:00
shmat.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
shmctl.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
shmdt.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
shmget.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
siginterrupt.3 Sort cross refereces in section SEE ALSO. 1997-09-29 19:11:55 +00:00
siginterrupt.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
siglist.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
signal.3 signal() returns SIG_ERR, not just -1. The sys/signal.h header file 1998-02-15 00:46:47 +00:00
signal.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sigsetops.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:16:20 +00:00
sigsetops.c Fix bit-twiddling in sigismember(3). 1997-11-21 23:18:05 +00:00
sleep.3 Describe signal handling. Don't describe the old implementation. Cleaned 1998-02-13 03:34:11 +00:00
sleep.c restore rev 1.23 to give clear SIGALRM handling example, 68 years 1998-09-08 09:44:46 +00:00
srand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
stringlist.3 Add stringlist functions from NetBSD. (required for the new ftp(1) 1997-06-25 08:05:03 +00:00
stringlist.c _err() -> err(). 1997-06-29 00:33:17 +00:00
strtofflags.c Make a couple of the stat flags dependent on the sys/stat.h header file 1998-01-09 06:14:59 +00:00
sysconf.3 Make a note in the standards section that sysconf isn't completely 1996-12-27 03:39:03 +00:00
sysconf.c Add a trivial mechanism for returning a useful default value if one is 1998-06-01 20:58:03 +00:00
sysctl.3 Cross-reference to sysconf(3). 1998-06-30 22:56:39 +00:00
sysctl.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
sysctlbyname.c Change a variable to type size_t to suit the sysctl prototype. 1998-03-09 04:34:16 +00:00
syslog.3 Mention that tftpd(8) also uses syslog(3). 1998-06-05 09:20:19 +00:00
syslog.c Go back to version 1.16 - it was correct the way it was. 1998-05-01 19:41:12 +00:00
tcgetpgrp.3 Show the real revision date and not the date that this 1997-06-23 04:03:49 +00:00
tcsendbreak.3 Show the real revision date and not the date that this 1997-06-23 04:03:49 +00:00
tcsetattr.3 Show the real revision date and not the date that this 1997-06-23 04:03:49 +00:00
tcsetpgrp.3 Typo police 1998-04-17 00:59:15 +00:00
telldir.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
termios.c Back out one of my previous changes: don't clear PARODD, 1996-03-28 13:33:18 +00:00
time.3 Removed bogus includes of <sys/types.h> from synopses. 1996-04-19 19:00:26 +00:00
time.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
times.3 Xref clocks(7). 1996-04-05 08:53:38 +00:00
times.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
timezone.3 Show the real revision date and not the date that this 1997-06-23 04:03:49 +00:00
timezone.c Eliminate sprintf 1998-01-21 21:46:36 +00:00
ttyname.3 Fixed inclomplete function type in synopsis. 1997-08-31 21:54:10 +00:00
ttyname.c Implement compile time debug mode for thread locks. 1998-06-09 08:32:23 +00:00
ttyslot.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
tzset.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
ualarm.3 Sort cross refereces in section SEE ALSO. 1997-09-29 19:11:55 +00:00
ualarm.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
uname.3 Show the real revision date and not the date that this 1997-06-23 04:03:49 +00:00
uname.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
unvis.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:16:20 +00:00
unvis.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
usleep.3 Describe signal handling. Don't describe the old implementation. Don't 1998-02-13 04:44:49 +00:00
usleep.c Don't check for the unlikely case of useconds == 0 here. The kernel 1997-11-20 15:13:20 +00:00
utime.3 Sort cross references. 1997-01-20 23:23:22 +00:00
utime.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
valloc.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-19 15:57:20 +00:00
valloc.c Fix a cast from a pointer to a long instead of an int which was enough 1998-01-24 20:57:38 +00:00
vis.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:16:20 +00:00
vis.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
wait3.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
wait.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
waitpid.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00