/usr/include/xview/expandname.h is in xviewg-dev 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | /* @(#)expandname.h 20.14 93/06/28 SMI */
/*
* (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents
* pending in the U.S. and foreign countries. See LEGAL NOTICE
* file for terms of the license.
*/
#ifndef xview_expand_name_DEFINED
#define xview_expand_name_DEFINED
#include <xview/xv_c_types.h>
/*
***********************************************************************
* Definitions and Macros
***********************************************************************
*/
/*
* PUBLIC #defines
*/
#define NONAMES ((struct namelist*) 0)
/*
***********************************************************************
* Typedefs, enumerations, and structs
***********************************************************************
*/
struct namelist {
unsigned count;
char *names[1]; /* LIE --it's actually names[count]
* followed by the strings themselves
*/
};
/*
***********************************************************************
* Globals
***********************************************************************
*/
/*
* Public Functions
*
* struct namelist *
* xv_expand_name(str)
* char *str;
*
* void
* free_namelist(nl)
* struct namelist *nl;
*
* xv_expand_name returns a pointer to a struct namelist containing
* the client's shell's idea of what its argument expands to.
* If str contains no shell metacharacters, the shell is never
* consulted, and the argument string is simply returned
* in a singleton namelist.
*
* In case of errors, xv_expand_name() writes an error message to
* stderr, and returns NONAMES.
*
* free_namelist
* The struct namelist is dynamically allocated, and should be
* freed after use by a call to free_namelist().
*/
EXTERN_FUNCTION (struct namelist *xv_expand_name, (char *str));
EXTERN_FUNCTION (void free_namelist, (struct namelist *nl));
#endif /* ~xview_expand_name_DEFINED */
|