Sponsored Content
Full Discussion: Suggest books
Top Forums UNIX for Dummies Questions & Answers Suggest books Post 302913445 by Don Cragun on Sunday 17th of August 2014 02:02:35 AM
Old 08-17-2014
It sounds to me like this user is trying to learn how to write C programs. Assuming nerdbee has access to a system with a C compiler, the differences between Linux and UNIX should not be an issue at this stage. A good book on C is what is needed (not a book on the Linux or UNIX operating system). Of course the man pages on the system in use will be important if the user is trying to write code optimized for a particular system. But, in my opinion, nerdbee should start by learning to write portable C code that can be compiled and run on any system long before worrying about the differences between the UNIX and Linux operating systems.
This User Gave Thanks to Don Cragun For This Post:
 

9 More Discussions You Might Find Interesting

1. AIX

Look into this and suggest if any changes needed

Hi, I am new script programming, I have written a script shown velow to read username and passwd from /etc/security/passwd, i am able to read username, but unable to grep lastupdate. please look into the code and suggest if any changes need. #!/bin/ksh USERNAME="" fname=/usr/bin/lastupdate... (1 Reply)
Discussion started by: me_haroon
1 Replies

2. Shell Programming and Scripting

Can you suggest a more efficient way for this?

Hi I have the following at the end of a service shutdown script used in part of an active-passive failover setup: ### # Shutdown all primary Network Interfaces # associated with failover ### # get interface names based on IP's # and shut them down to simulate loss of # heartbeatd ... (1 Reply)
Discussion started by: mikie
1 Replies

3. UNIX for Advanced & Expert Users

suggest book

Hi I am new to Unix/Linux I know commands and shell scripts which are useful for my project. But i need to know the basics and commands and shell scripts in detail and easy guide. Please refer a book. Thanks Haripatn (6 Replies)
Discussion started by: haripatn
6 Replies

4. Shell Programming and Scripting

Please suggest some changes in my code

Hi All, I have made the following code which is taking 10-15 mins to execute completely. Here the file am using is very big( around 1050993843). Can any one make some changes in my code which reduces the time it takes to execute as am very much new to Unix(learner). One more thing, i have... (10 Replies)
Discussion started by: madhavsunduru
10 Replies

5. Shell Programming and Scripting

Can yum be used. If not please suggest.

Hi! I need to install a application from one server to several other servers. My script would copy the install-script to other machines and run it.Since it has to be non-interactive , just wondering if yum can be used for the same. Please let me know , if you guys are aware of other... (1 Reply)
Discussion started by: nua7
1 Replies

6. Shell Programming and Scripting

please suggest me a site

hi i need to get the values from an xml file like the <TAG> values and write to a file please suggest me the commands and some good reading material sites so that i can implement (1 Reply)
Discussion started by: perlamohan
1 Replies

7. What is on Your Mind?

suggest me books/courses

I am new to unix world. I just know some basic commands only and some basics knowledge about unix. Anyone please suggest me from where should I start. Suggest me some book that could help me from the beginning. Presently I am working in php in a company and I want to move in unix. Please suggest me... (1 Reply)
Discussion started by: UNITRIX
1 Replies

8. Shell Programming and Scripting

Any body suggest me.........!!!!

i am jaswanth, i am very new to unix/linux, upto now i worked in windows only., but i took coatching for unix.., and my sir teached all my classes in red hat linux and told me that all are same...!!! I know shall programming in red hat linux.., but now i installed opensloaris but the... (5 Replies)
Discussion started by: strgraphics
5 Replies

9. Ubuntu

Suggest books for understanding Ubuntu Linux

recommend books to understand ubuntu ...... (14 Replies)
Discussion started by: vyom
14 Replies
CACHEFLUSH(2)						     Linux Programmer's Manual						     CACHEFLUSH(2)

NAME
cacheflush - flush contents of instruction and/or data cache SYNOPSIS
#include <asm/cachectl.h> int cacheflush(char *addr, int nbytes, int cache); DESCRIPTION
cacheflush() flushes the contents of the indicated cache(s) for the user addresses in the range addr to (addr+nbytes-1). cache may be one of: ICACHE Flush the instruction cache. DCACHE Write back to memory and invalidate the affected valid cache lines. BCACHE Same as (ICACHE|DCACHE). RETURN VALUE
cacheflush() returns 0 on success or -1 on error. If errors are detected, errno will indicate the error. ERRORS
EFAULT Some or all of the address range addr to (addr+nbytes-1) is not accessible. EINVAL cache is not one of ICACHE, DCACHE, or BCACHE (but see BUGS). CONFORMING TO
Historically, this system call was available on all MIPS UNIX variants including RISC/os, IRIX, Ultrix, NetBSD, OpenBSD, and FreeBSD (and also on some non-UNIX MIPS operating systems), so that the existence of this call in MIPS operating systems is a de-facto standard. Caveat cacheflush() should not be used in programs intended to be portable. On Linux, this call first appeared on the MIPS architecture, but nowadays, Linux provides a cacheflush() system call on some other architectures, but with different arguments. BUGS
Linux kernels older than version 2.6.11 ignore the addr and nbytes arguments, making this function fairly expensive. Therefore, the whole cache is always flushed. This function always behaves as if BCACHE has been passed for the cache argument and does not do any error checking on the cache argument. COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2017-09-15 CACHEFLUSH(2)
All times are GMT -4. The time now is 01:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy