aboutsummaryrefslogtreecommitdiffstats
path: root/src/xrdb.c
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF's address in the preamble.Erik Naggum1996-01-151-4/+7
|
* Don't include sys/param.h.Richard M. Stallman1995-01-181-8/+0
| | | | (MAXPATHLEN): Definition deleted.
* (getpwuid, getpwnam): Test just DECLARE_GETPWUID_WITH_UID_T, not __bsdi__.Richard M. Stallman1994-09-161-1/+1
|
* [USG5] (SYSV): Don't define if already defined.Richard M. Stallman1994-07-201-0/+2
|
* (x_load_resources) [USE_X_TOOLKIT]: Don't call XrmInitialize.Richard M. Stallman1994-05-051-0/+4
|
* Update copyright.Karl Heuer1994-05-041-1/+1
|
* (gethomedir): Look at LOGNAME before USER.Karl Heuer1994-02-121-6/+3
|
* (x_get_customization_string): Use get_system_name instead of gethostname.Karl Heuer1994-02-021-17/+4
|
* (S_ISDIR): Define if not defined.Richard M. Stallman1994-01-211-13/+12
| | | | | | (file_p): Use S_ISDIR. (search_magic_path): Fix logic testing for empty path element.
* (search_magic_path): Fix colon-colon case.Richard M. Stallman1993-11-231-1/+2
|
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (x_get_customization_string): Don't use value of strcpy.Richard M. Stallman1993-08-101-1/+5
|
* * config.h.in (HAVE_XSCREENRESOURCESTRING): New #undef forJim Blandy1993-07-311-3/+1
| | | | | | configure to edit. * xrdb.c (get_user_db): Test it to decide whether or not to try to retrieve the screen-dependent resources.
* (getpwuid): Test DECLARE_GETPWUID_WITH_UID_T.Richard M. Stallman1993-07-221-1/+1
|
* Implement search for app-defaults directory andJim Blandy1993-07-221-162/+371
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | localized default databases, along with some other functionality provided by Xt. #include <stdio.h>, since we call sprintf. [emacs] (malloc, realloc, free): #define these to xmalloc, xrealloc, and xfree. (x_get_string_resource, file_p): Add forward declarations for these. (x_customization_string): New variable. (x_get_customization_string): New function. (gethomedir): Return malloc'ed space of the right size, instead of writing into a fixed-size buffer; this means that our callers do not impose an arbitrary limit on file name length. (magic_file_p): Rewrite of decode_magic; actually do the substitutions, instead of expanding all %-escapes to "". Support the customization string. Return 0 or the expanded file name, instead of just zero or one. Allocate the space for the expanded file name ourselves, instead of writing into a fixed-size buffer passed to us; this removes an arbitrary limit. (search_magic_path): Rewrite of magic_searchpath_decoder. Return 0 or the expanded file name, instead of just zero or one. Allocate the space for the expanded file name ourselves, instead of writing into a fixed-size buffer passed to us; this means that our callers do not impose an arbitrary limit on file name length. (get_system_app): Changed to work with search_magic_path. (get_user_app): Rewritten to work with search_magic_path, and not to assume that the values of XAPPLRESDIR is a single directory. (get_user_db): Properly use the new version of gethomedir. (get_environ_db): Remove arbitrary limit on length of host name. (x_load_resources): Take a new argument, myname. Call get_user_db early to obtain the customization string. Changes to stand-alone testing code.
* * xrdb.c (get_user_db): Remember to free the screen-local resourceJim Blandy1993-06-221-1/+4
| | | | string after we've merged its data into db.
* * xrdb.c (get_user_db): Get the screen-specific database too.Jim Blandy1993-06-111-0/+9
|
* [__bsdi__]: Alternate decls of getpwuid and getpwnam.Richard M. Stallman1993-05-311-0/+5
|
* (magic_searchpath_decoder): Fix typos.Richard M. Stallman1993-05-261-2/+2
|
* Updated copyright years.Jim Blandy1993-05-221-1/+1
|
* * xrdb.c (get_user_db): Since xrdb.c doesn't #include xterm.h,Jim Blandy1993-03-111-1/+1
| | | | | we can't test HAVE_X11R4 to see how we should get the resource manager string; cheat.
* * xrdb.c (getuid): Remove declaration.Jim Blandy1993-02-221-0/+6
|
* * xterm.c, xrdb.c: #include <stdio.h> before "xterm.h", to avoidJim Blandy1992-10-111-2/+5
| | | | warnings about redefining NULL under GCC 2.2.2.
* * xrdb.c (x_get_resource): Cast the value being assigned toJim Blandy1992-09-221-1/+1
| | | | | ret_value->addr, rather than ret_value->addr itself; only GCC allows you to cast lvalues.
* * xrdb.c: Don't include <X11/Xos.h>. Under R4, it stupidlyJim Blandy1992-09-131-2/+6
| | | | | | | | | | insists on defining SIGCHLD, even if it already has a definition. (file_p): Use the constant 4 instead of R_OK; empirically, the number is more portable than the symbol if you count the #include hair you have to go through to get R_OK defined. Ffile_readable_p does this too. * xrdb.c (getuid): Declare this to return short.
* * xrdb.c (get_user_db): Use XResourceManagerString when availableJim Blandy1992-08-291-2/+5
| | | | [HAVE_X11R4].
* * xrdb.c [USG5]: Define SYSV, and then include <unistd.h>. IJim Blandy1992-08-191-5/+19
| | | | | | | | | | | wish I knew why. Don't include <sys/types.h>; just declare getuid to return an int. Big deal. (MAXPATHLEN): If this is not defined by the system's include files, give it a value of 256. (get_user_db): Fetch the defaults directly from the display structure, rather than using XResourceManagerString; that function doesn't exist in the older versions of X.
* entered into RCSJim Blandy1992-04-241-3/+12
|
* *** empty log message ***Jim Blandy1992-02-211-0/+4
|
* *** empty log message ***Jim Blandy1992-01-131-1/+2
|
* Initial revisionJim Blandy1991-01-051-0/+477