-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose functionality as a re-usable library - Part 3 (#285)
* Do not check Fsize & Foffsete in lib * Do not check Fnlink in lib * Do not check Ftcptpi in lib * Do not check Fsv in lib * Convert Lf->access to enum * Add missing lib/print.c to Makefile.am * Rename print_access to access_to_char
- Loading branch information
Showing
45 changed files
with
1,176 additions
and
1,361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** @file | ||
* lsof.h - header file for lsof | ||
*/ | ||
|
||
/* | ||
* Copyright 1994 Purdue Research Foundation, West Lafayette, Indiana | ||
* 47907. All rights reserved. | ||
* | ||
* Written by Victor A. Abell | ||
* | ||
* This software is not subject to any license of the American Telephone | ||
* and Telegraph Company or the Regents of the University of California. | ||
* | ||
* Permission is granted to anyone to use this software for any purpose on | ||
* any computer system, and to alter it and redistribute it freely, subject | ||
* to the following restrictions: | ||
* | ||
* 1. Neither the authors nor Purdue University are responsible for any | ||
* consequences of the use of this software. | ||
* | ||
* 2. The origin of this software must not be misrepresented, either by | ||
* explicit claim or by omission. Credit to the authors and Purdue | ||
* University must appear in documentation and sources. | ||
* | ||
* 3. Altered versions must be plainly marked as such, and must not be | ||
* misrepresented as being the original software. | ||
* | ||
* 4. This notice may not be removed or altered. | ||
*/ | ||
|
||
/* | ||
* $Id: lsof.h,v 1.70 2018/03/26 21:50:45 abe Exp $ | ||
*/ | ||
|
||
#if !defined(LSOF_H) | ||
# define LSOF_H 1 | ||
|
||
/** File access mode */ | ||
enum lsof_file_access_mode { | ||
LSOF_FILE_ACCESS_NONE = 0, /**< None */ | ||
LSOF_FILE_ACCESS_READ = 1, /**< Read */ | ||
LSOF_FILE_ACCESS_WRITE = 2, /**< Write */ | ||
LSOF_FILE_ACCESS_READ_WRITE = | ||
LSOF_FILE_ACCESS_READ | LSOF_FILE_ACCESS_WRITE, /**< Read and write */ | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.