Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #787
Difficulty: Medium
In early 2019, Bill Gates responded to the public backlash against billionaires by demanding a lower estate tax.
True or False?
Linux & Unix Commands - Search Man Pages

getosreldate(3) [freebsd man page]

GETOSRELDATE(3) 					   BSD Library Functions Manual 					   GETOSRELDATE(3)

NAME
getosreldate -- get the value of __FreeBSD_version LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <unistd.h> int getosreldate(void); DESCRIPTION
The getosreldate() function returns an integer showing the version of the currently running FreeBSD kernel. Definitions of the values can be found in The Porter's Handbook which is usually installed at /usr/share/doc/en_US.ISO8859-1/books/porters-handbook/. RETURN VALUES
Upon successful completion, getosreldate() returns the value requested; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ENVIRONMENT
OSVERSION If the environment variable OSVERSION is set, it will override the getosreldate() return value. EXAMPLES
An example can be found in /usr/share/examples/FreeBSD_version. ERRORS
The getosreldate() function may fail and set errno for any of the errors specified for the library function sysctl(3). SEE ALSO
The Porter's Handbook, /usr/share/doc/en_US.ISO8859-1/books/porters-handbook/. HISTORY
The getosreldate() function appeared in FreeBSD 2.0. BSD
September 30, 2008 BSD

Check Out this Related Man Page

GETVFSBYNAME(3) 					   BSD Library Functions Manual 					   GETVFSBYNAME(3)

NAME
getvfsbyname -- get information about a filesystem LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/param.h> #include <sys/mount.h> int getvfsbyname(const char *name, struct vfsconf *vfc); DESCRIPTION
The getvfsbyname() function provides access to information about a filesystem module that is configured in the kernel. If successful, the requested filesystem vfsconf is returned in the location pointed to by vfc. The fields in a ``struct vfsconf'' are defined as follows: vfc_name the name of the filesystem vfc_typenum the filesystem type number assigned by the kernel vfc_refcount the number of active mount points using the filesystem RETURN VALUES
The getvfsbyname() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS
The following errors may be reported: [EFAULT] The vfc pointer contains an invalid address. [ENOENT] The name specifies a filesystem that is unknown or not configured in the kernel. SEE ALSO
mount(2), sysctl(3), mount(8), sysctl(8) HISTORY
A variant of the getvfsbyname() function first appeared in FreeBSD 2.0. BSD
May 4, 1995 BSD

14 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

little help needed with my awk

i got a file (books.txt) 12 A 15 B And i want to output: Group allocation Group A: 12 books Group B: 15 books .. End List i know how to reverse the two fields by using awk {print $2,$1} books.txt Im having problems outputting what i wanted using awk so far i got: {print... (5 Replies)
Discussion started by: thewizard
5 Replies

2. Programming

books for pro c,c++

Hi i have to work with pro c,c++ , can any body help me or that which are the best books for that,and some web address where i can get suitable information, :( (4 Replies)
Discussion started by: kapilnagda
4 Replies

3. UNIX for Dummies Questions & Answers

list of books I have access to

I have another question. I have access to the books listed below, however I know that not all of them are the lates and greatest and some are over 10 years old. So the question is are most of these books still a good idea to read. Or should I try and pick up the latest and greatest editions? ... (5 Replies)
Discussion started by: bru
5 Replies

4. UNIX for Dummies Questions & Answers

What would happen if. . .

Hi, Could someone please tell me what would happen if the following were entered into the command line: rm -i /books/*.* rm /books/* Many thanks! (3 Replies)
Discussion started by: crispy
3 Replies

5. UNIX for Dummies Questions & Answers

Unix books from O'Relly

If there is anybody who doesn't know this old but useful books, I recommend it: url deleted (3 Replies)
Discussion started by: xramm
3 Replies

6. UNIX for Dummies Questions & Answers

Getting Started with Unix

I am new to Unix and want to learn it thoroughly. From where can I download books/e-books and tutorials for free of charge:confused: (2 Replies)
Discussion started by: indiansoil
2 Replies

7. AIX

books & documents

can someone tell me the name of the books for aix it is better if some one provide me links to any useful document (2 Replies)
Discussion started by: alokjyotibal
2 Replies

8. BSD

Jumping from Solaris to BSD?

Hi all, I currently run an OpenSolaris (b134) server at home for share media between a few computers (all Macs at the moment). I use ZFS to mirror a couple of disks and have a couple of SMF manifests. My background is as a user of OS X and as a user of (Open)Solaris with formal training in... (7 Replies)
Discussion started by: forquare
7 Replies

9. Red Hat

RHCSA books

hi, can any one tell me how can i find RHCSA books , as i try to search online but i didn't found the books (2 Replies)
Discussion started by: linux_land
2 Replies

10. Red Hat

Recommended Linux books

Hi All, What books do you recomend to have for quick reference in regarding to Linux administration and performance monitoring? Thanks for your insight. (2 Replies)
Discussion started by: Beginer0705
2 Replies

11. Red Hat

RHCE Materials

I'd like to get RHCE certification but I can't find the books which get me for doing such , could someone guide me where can i find the books ?:wall: (4 Replies)
Discussion started by: arm
4 Replies

12. Hardware

Trying to find a compatible OS for an old computer

Hello A friend and I recently got our hands on an old computer (a rainbow '83 I think), cleaned it, etc... And now we're trying to get the thing running. The problem is that the included OS is badly documented, so I thought of installing an old version of UNIX on it. So the questions are: Is that... (8 Replies)
Discussion started by: ijiboom
8 Replies

13. What is on Your Mind?

How do you prefer to read books?

Time for a new poll. Just wondering how members in this forum prefer to read books. Paper E-reader Tablet Laptop/Desktop Smartphone Audiobook Not much of a reader Other A poll is added. If you select option: Other, please specify what it is. :b: (14 Replies)
Discussion started by: Yoda
14 Replies

14. Homework & Coursework Questions

Help on Reading UNIX Programming Books.

I've purchased few unix/linux programming books and also planning to buy couple of books in future. I've got the following books; Advanced Unix Programming(2nd ed) -- M. Rochkind. Advanced Programming on Unix Environment(3rd ed) -- Late Rick Stevens & Rago. Unix Systems Programming -... (8 Replies)
Discussion started by: vectrum
8 Replies

Featured Tech Videos