Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

explain_creat_or_die(3) [debian man page]

explain_creat_or_die(3) 				     Library Functions Manual					   explain_creat_or_die(3)

NAME
explain_creat_or_die - create and open a file creat and report errors SYNOPSIS
#include <libexplain/creat.h> void explain_creat_or_die(const char *pathname, int mode); DESCRIPTION
The explain_creat_or_die function is used to call the creat(2) system call. On failure an explanation will be printed to stderr, obtained from explain_creat(3), and then the process terminates by calling exit(EXIT_FAILURE). This function is intended to be used in a fashion similar to the following example: explain_creat_or_die(pathname, mode); pathname The pathname, exactly as to be passed to the creat(2) system call. mode The mode, exactly as to be passed to the creat(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
creat(2) open and possibly create a file or device explain_creat(3) explain creat(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_creat_or_die(3)

Check Out this Related Man Page

explain_opendir_or_die(3)				     Library Functions Manual					 explain_opendir_or_die(3)

NAME
explain_opendir_or_die - open a directory and report errors SYNOPSIS
#include <libexplain/opendir.h> DIR *explain_opendir_or_die(const char *pathname); DESCRIPTION
The explain_opendir_or_die function is used to call the opendir(3) system call. On failure an explanation will be printed to stderr, obtained from explain_opendir(3), and then the process terminates by calling exit(EXIT_FAILURE). This function is intended to be used in a fashion similar to the following example: DIR *dir = explain_opendir_or_die(pathname); pathname The pathname, exactly as to be passed to the opendir(3) system call. Returns: On success, a pointer to the directory stream. On failure, prints an explanation and exits, does not return. SEE ALSO
opendir(3) open a directory explain_opendir(3) explain opendir(3) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_opendir_or_die(3)
Man Page

14 More Discussions You Might Find Interesting

1. Programming

help<newbie>

i am new to the programing enviroment i know html and some of cgi i would like to know how to creat programs i know nothing!!!!!!!!!!!!! what do i need to get started where can i learn the language what language do i need to learn i tried scheme http://www.htdp.com it did not work out well... (9 Replies)
Discussion started by: skistar
9 Replies

2. UNIX for Dummies Questions & Answers

Two Files Created For Every One?

Hello, my linux box is, for some reason, creating two files when I creat one. For example, if I create a file via the VI editor called TestFile, the box will create: TestFile TestFile~ Does anyone have any ideas as to why I'm getting that second file with the ~ at the end of it? ... (1 Reply)
Discussion started by: Atama
1 Replies

3. UNIX for Dummies Questions & Answers

ksh script

Hello all I'm writing a ksh script in which I'm stuck. I'm reading from a file whith the following information: 23 0001 0003 0004 0006 4 0000 0004 0005 0006 3 0000 0006 0008 0009 0011 0100 (10 Replies)
Discussion started by: larry
10 Replies

4. UNIX for Dummies Questions & Answers

System calls?

open, creat, read, write, lseek and close Are they all primitive? :confused: *Another Question: is there a different between a system call, and an i/o system call? (2 Replies)
Discussion started by: PlunderBunny
2 Replies

5. UNIX for Dummies Questions & Answers

New At This

ok, i am extremly new at this. i am trying to creat a web page, and in a set od directions it says "If you have a UNIX account, you can create your web page(s) online. You first need to get a program that can access your UNIX account. I recommend Telnet for the Mac or Ewan for Windows 95/98". :mad:... (3 Replies)
Discussion started by: dancr_freak
3 Replies

6. Shell Programming and Scripting

How to create file execution in KSH shell

Dear all, I'm new in Unix system, I need help about how to create execution file. for example in my system i have file fg* when i open fg file i get : cmd='basename$0' $cmd "$@" how to create file like that (execution file) in KSH shell thank you for your help heru (4 Replies)
Discussion started by: heru_90
4 Replies

7. UNIX for Dummies Questions & Answers

How to create a directory?

how can i creat a directory? (1 Reply)
Discussion started by: o5m2a8r
1 Replies

8. Shell Programming and Scripting

vi question

hello! i am very new to this, so please bear with me. i used red hat linux to creat a little two page website for school, which was really just an exercise in absolute and relative paths. so, now, its all done, and i want to play with it some more, but i think there may be a problem with vi. i... (3 Replies)
Discussion started by: jojodancer
3 Replies

9. Shell Programming and Scripting

select particular column and creat a new file with comma

Hi all, I am very new in programming. Can anyone please help me in the matter below? I have one raw file like: gi|77|ref|NC_002971.3| Coxiella burnetii RSA 493, complete genome 6371 ATCGTGGTTGTGGTTCAT 5032 P 2 12 gi|71|ref|NC_005773.3| Pseudomonas syringae pv.... (4 Replies)
Discussion started by: iammitra
4 Replies

10. Shell Programming and Scripting

inserting a string to a text file

Hello Can somebody please help me with the following script? I'm trying to create a text file with 20 blank lines and then insert a string in line 2 but nothing is printed in the itxtfile. I can create the file with 20 blank lines but when I "tell" it to print something on the second line, it... (4 Replies)
Discussion started by: goude
4 Replies

11. Shell Programming and Scripting

create a basic script

Hi everybody :( :confused: :D, I need someone to help me! I have a file with 4 colunms and I would like to transform only the 4th colunm by multiplying this by a constant value (i.e 0.3047). I'm a new one using/creating basic scripts and I'm using linux redhat. The file has the following... (1 Reply)
Discussion started by: Estanislau
1 Replies

12. Shell Programming and Scripting

create a basic script

Hi everybody :( :confused: :D, I need someone to help me! I have a file with 4 colunms and I would like to transform only the 4th colunm by multiplying this by a constant value (i.e 0.3047). I'm a new one using/creating basic scripts and I'm using linux redhat. The file has the following... (1 Reply)
Discussion started by: Estanislau
1 Replies

13. Shell Programming and Scripting

creat file in HP

(10 Replies)
Discussion started by: rocky1954
10 Replies

14. Shell Programming and Scripting

How to read a dynamically changing file

I want to read a constantly changing file and do some operation on text found in that file. Actually that is log file of linux system and whenever i find a matching string in that file i want to create a text file with timestamp. is it possible to read that file? here is sample output of log... (7 Replies)
Discussion started by: kashif.live
7 Replies