Under /home/brad/runksh I have a file called test.funcs
under /home/brad/runksh/lib I have a file called runksh.funcs
under /home/brad/scratch I have sc.funcs: -
To exclude lib: -
You do need the print although I don't know why: -
I have a directory named https-abcd
Under that I have some directories, files and links.
One of those directories is with name logs and the logs directory has lot of files in it.
I need to tar the whole https-abcd directory excluding the logs directory only, I should get all the links, files and... (2 Replies)
Hi,
I am using a find command like below in my script:
find /outfiles -type f -name cat -o -name vi -o -name grep 2>/dev/null
Which will search for files like "cat" , "vi" or "grep" in the "/outfiles" and subdirectories.
I want to ignore a particular subdirectory from the search. I... (4 Replies)
Hi,
I want to list files only from the current dir and its child dir (not from child's child dir).
i have the following files,
./ABC/1.log
./ABC/2.log
./ABC/ABC1/A.log
./ABC/ABC1/B.log
./ABC/ABC1/XYZ/A1.log
./ABC/ABC1/XYZ/A2.log
Here i want to list only the log file from current... (1 Reply)
Hi,
i try to catch all files in a dir ,without going down in subdir , which don't have file extension and older than 10 days for example:
my dir :
drwxr-xr-x 7 notes01 notes 4096 Mar 8 14:11 .
drwxr-xr-x 116 root system 4096 Mar 9 11:17 ..
-rw-r----- 1 notes01... (4 Replies)
How do I run a find without is looking in ./Trash
gregg@gregg-desktop:/media/Audio$ find . -type f ! -name '*.jpg' -size 1M -print |head
find: `./.Trash-1000/expunged/2781324553/mp3-to-m4b-batch': Input/output error
find:... (0 Replies)
Hi
I am trying to list all files in every subdirectory from a given location. However, I realise that 1 folder will have files that I am not interested in. This is using a .csh file to execute
I have tried different scripts but to no avail. My current incarnation is below. Would someone be... (4 Replies)
I am trying to find all .rhosts files on some unix systems. I tried just -name ".rhosts" but we have a lot of really large NFS and MVFS systems that I do not want to crawl and I am having a hard time excluding them. I also need to scan more than just /root /home and /users, so I really need to scan... (1 Reply)
I am into
cd /home/work/amey/history-*/
Under amey I have directories
history, history-1, history-2 and under history-2 I have got 2 files 3 and 2.
When I run the find command I get the below o/p.
find /home/work/amey/history-*/. -name . -o -prune -type f
/home/work/amey/history-1/.... (1 Reply)
Hi,
I have two files under two separate directories as in:
find . -name test.sh
./test.sh
./abc/test.sh
I want my find to only look for the file test.sh that is under the current directory and not one under /abc
How do I use prune to achieve this? I am on AIX (3 Replies)
These three finds worked as expected:
$ find . -iname "*.PDF"
$ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \)
$ find . -path "*_nobackup*" -prune -iname "*.PDF"
They all returned the match:
./folder/file.pdf
:b:
This find returned no matches:
$ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies
LEARN ABOUT FREEBSD
dwarf_func_cu_offset
DWARF_GET_FUNCS(3) BSD Library Functions Manual DWARF_GET_FUNCS(3)NAME
dwarf_get_funcs, dwarf_func_cu_offset, dwarf_func_die_offset, dwarf_func_name_offsets, dwarf_funcname -- retrieve information about static
functions
LIBRARY
DWARF Access Library (libdwarf, -ldwarf)
SYNOPSIS
#include <libdwarf.h>
int
dwarf_get_funcs(Dwarf_Debug dbg, Dwarf_Func **funcs, Dwarf_Signed *nfuncs, Dwarf_Error *err);
int
dwarf_func_cu_offset(Dwarf_Func func, Dwarf_Off *cu_offset, Dwarf_Error *err);
int
dwarf_func_die_offset(Dwarf_Func func, Dwarf_Off *die_offset, Dwarf_Error *err);
int
dwarf_func_name_offsets(Dwarf_Func func, char **name, Dwarf_Off *die_offset, Dwarf_Off *cu_die_offset, Dwarf_Error *err);
int
dwarf_funcname(Dwarf_Func func, char **name, Dwarf_Error *err);
DESCRIPTION
These functions retrieve information about static functions from the lookup tables in the (SGI-specific) ``.debug_funcnames'' section.
Information about these functions is returned using opaque descriptors of type Dwarf_Func. Applications need to use the functions described
below to retrieve the name and offset information contained in these descriptors.
Function dwarf_get_funcs() retrieves descriptors for all the static functions associated with the DWARF debug context specified by argument
dbg. The argument funcs should point to a location that will be set to a pointer to an array of Dwarf_Func descriptors. The argument nfuncs
should point to a location that will be set to the number of descriptors returned.
Function dwarf_func_cu_offset() returns the offset, relative to the ``.debug_info'' section, of the compilation unit that contains the debug-
ging information entry associated with the argument func. Argument cu_offset should point to a location that will hold the returned offset.
Function dwarf_func_die_offset() retrieves the offset, relative to the ``.debug_info'' section, of the debugging information entry associated
with the argument func, and stores it into the location pointed to by the argument die_offset.
Function dwarf_func_name_offsets() retrieves the name and offsets for the debugging information entry for argument func. Argument name
should point to a location which will be set to a pointer to a NUL-terminated string containing the name of the associated debugging informa-
tion entry. Argument die_offset should point to a location which will be set to the offset, relative to the ``.debug_info'' section, of the
associated debugging information entry. Argument cu_die_offset should point to a location which will be set to the offset, relative to the
``.debug_info'' section, of the first debugging information entry in the compilation unit associated with argument func.
Function dwarf_funcname() sets the location pointed to by argument name to a pointer to a NUL-terminated string holding the name of the
debugging information entry associated with the argument func.
Memory Management
The memory area used for the array of Dwarf_Func descriptors returned in argument funcs by function dwarf_get_funcs() is owned by the DWARF
Access Library (libdwarf, -ldwarf). Application code should not attempt to directly free this pointer. Portable code should instead use the
function dwarf_funcs_dealloc(3) to indicate that the memory area may be freed.
The memory area used for the string returned in the name argument to functions dwarf_func_name_offsets() and dwarf_funcname() is owned by the
DWARF Access Library (libdwarf, -ldwarf). Portable code should indicate that the memory area can be freed using the dwarf_dealloc(3) func-
tion.
Error Returns
If argument err is not NULL, these functions will use it to store error information, in case of an error.
RETURN VALUES
On success, these functions returns DW_DLV_OK. In case of an error, they return DW_DLV_ERROR and set the argument err.
ERRORS
These functions may fail with the following errors:
[DW_DLE_ARGUMENT] One of the arguments cu_die_offset, cu_offset, dbg, die_offset, func, funcs, name, or nfuncs was NULL.
[DW_DLE_NO_ENTRY] The DWARF debugging context referenced by argument dbg did not contain information about static functions.
SEE ALSO dwarf(3), dwarf_get_cu_die_offset_given_cu_header_offset(3), dwarf_funcs_dealloc(3)BSD April 10, 2011 BSD