Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Ourhdr.h in the end of this document in the first place?

If the system does not contain the header files, how do?

Ourhdr.h in the end of this document in the first place?

According to their own needs to write a

Ourhdr.h in the end of this document in the first place?

There is no other place can be downloaded to the whole, thank you

Ourhdr.h in the end of this document in the first place?

LEAVES OF 13 SPECIES OF LAURACEAE Our own header, to be included *after* all standard system headers */

#ifndef __ourhdr_h
# __ourhdr_h

#include "Sys/types.h>; LEAVES OF 13 SPECIES OF LAURACEAE required for some of our prototypes */
#include "For convenience */ stdio.h>; LEAVES OF 13 SPECIES OF LAURACEAE
#include "For convenience */ stdlib.h>; LEAVES OF 13 SPECIES OF LAURACEAE
#include "For convenience */ string.h>; LEAVES OF 13 SPECIES OF LAURACEAE
#include "For convenience */ unistd.h>; LEAVES OF 13 SPECIES OF LAURACEAE

MAXLINE 4096 # LEAVES OF 13 SPECIES OF LAURACEAE max line length */

# FILE_MODE (S_IRUSR S_IWUSR | | | S_IRGRP S_IROTH)
LEAVES OF 13 SPECIES OF LAURACEAE default file access permissions for new files */
# DIR_MODE (S_IXUSR FILE_MODE | | | S_IXGRP S_IXOTH)
LEAVES OF 13 SPECIES OF LAURACEAE default permissions for new directories */

Typedef void Sigfunc (int); LEAVES OF 13 SPECIES OF LAURACEAE for signal handlers */

LEAVES OF 13 SPECIES OF LAURACEAE 4.3BSD Reno "signal.h>; does' t define SIG_ERR */
#if Defined (SIG_IGN) & !defined (SIG_ERR)
# SIG_ERR ((Sigfunc *) -1)
#endif

# Min (a, b) ((a) "(b) (a) : (b))
# Max (a, b) ((a) "; (B) (a) : (b))

LEAVES OF 13 SPECIES OF LAURACEAE prototypes for our own functions */
Char *path_alloc (int *); LEAVES OF 13 SPECIES OF LAURACEAE {Prog pathalloc} */
Int open_max (void); LEAVES OF 13 SPECIES OF LAURACEAE {Prog openmax} */
Void clr_fl (int, int); LEAVES OF 13 SPECIES OF LAURACEAE {Prog setfl} */
Void set_fl (int, int); LEAVES OF 13 SPECIES OF LAURACEAE {Prog setfl} */
Void pr_exit (int); LEAVES OF 13 SPECIES OF LAURACEAE {Prog prexit} */
Void pr_mask (const char *); LEAVES OF 13 SPECIES OF LAURACEAE {Prog prmask} */
Sigfunc *signal_intr (int, Sigfunc *) ;/* {Prog signal_intr_function} */

Int tty_cbreak (int); LEAVES OF 13 SPECIES OF LAURACEAE {Prog raw} */
Int tty_raw (int); LEAVES OF 13 SPECIES OF LAURACEAE {Prog raw} */
Int tty_reset (int); LEAVES OF 13 SPECIES OF LAURACEAE {Prog raw} */
Tty_atexit void (void); LEAVES OF 13 SPECIES OF LAURACEAE {Prog raw} */
#ifdef ECHO LEAVES OF 13 SPECIES OF LAURACEAE only if "has been included */ termios.h>;
Struct termios *tty_termios (void); LEAVES OF 13 SPECIES OF LAURACEAE {Prog raw} */
#endif

Void sleep_us (unsigned int); LEAVES OF 13 SPECIES OF LAURACEAE {Ex sleepus} */
Ssize_t readn (int, void *, size_t) ;/* {Prog readn} */
Ssize_t writen (int, const void *, size_t) ;/* {Prog writen} */
Int daemon_init (void); LEAVES OF 13 SPECIES OF LAURACEAE {Prog daemoninit} */

Int s_pipe (int *); LEAVES OF 13 SPECIES OF LAURACEAE {Progs svr4_spipe bsd_spipe} */
Int recv_fd (int, ssize_t (*func) (int, const void *, size_t));
LEAVES OF 13 SPECIES OF LAURACEAE {Progs recvfd_svr4 recvfd_43bsd} */
Int send_fd (int, int); LEAVES OF 13 SPECIES OF LAURACEAE {Progs sendfd_svr4 sendfd_43bsd} */
Int send_err (int, int, const char *) ;/* {Prog senderr} */
Int serv_listen (const char *); LEAVES OF 13 SPECIES OF LAURACEAE {Progs servlisten_svr4 servlisten_44bsd} */
Int serv_accept (int, uid_t *); LEAVES OF 13 SPECIES OF LAURACEAE {Progs servaccept_svr4 servaccept_44bsd} */
Int cli_conn (const char *); LEAVES OF 13 SPECIES OF LAURACEAE {Progs cliconn_svr4 cliconn_44bsd} */
Int buf_args (char *, int (*func) (int, char *));
LEAVES OF 13 SPECIES OF LAURACEAE {Prog bufargs} */

Int ptym_open (char *); LEAVES OF 13 SPECIES OF LAURACEAE {Progs ptyopen_svr4 ptyopen_44bsd} */
Int ptys_open (int, char *); LEAVES OF 13 SPECIES OF LAURACEAE {Progs ptyopen_svr4 ptyopen_44bsd} */
#ifdef TIOCGWINSZ
Pid_t pty_fork (int *, char *, const struct termios *
Const struct winsize *); LEAVES OF 13 SPECIES OF LAURACEAE {Prog ptyfork} */
#endif

Int lock_reg (int, int, int, off_t, int, off_t);
LEAVES OF 13 SPECIES OF LAURACEAE {Prog lockreg} */
# Read_lock (fd, offset, whence, practically) \
Lock_reg (fd, F_SETLK, F_RDLCK, offset, whence, practically)
# Readw_lock (fd, offset, whence, practically) \
Lock_reg (fd, F_SETLKW, F_RDLCK, offset, whence, practically)
# Write_lock (fd, offset, whence, practically) \
Lock_reg (fd, F_SETLK, F_WRLCK, offset, whence, practically)
# Writew_lock (fd, offset, whence, practically) \
Lock_reg (fd, F_SETLKW, F_WRLCK, offset, whence, practically)
# Un_lock (fd, offset, whence, practically) \
Lock_reg (fd, F_SETLK, F_UNLCK, offset, whence, practically)

Pid_t lock_test (int, int, off_t, int, off_t);
LEAVES OF 13 SPECIES OF LAURACEAE {Prog locktest} */

# Is_readlock (fd, offset, whence, practically) \
Lock_test (fd, F_RDLCK, offset, whence, practically)
# Is_writelock (fd, offset, whence, practically) \
Lock_test (fd, F_WRLCK, offset, whence, practically)

Void err_dump (const char *,. . . ); LEAVES OF 13 SPECIES OF LAURACEAE {App misc_source} */
Void err_msg (const char *,. . . );
Void err_quit (const char *,. . . );
Void err_ret (const char *,. . . );
Void err_sys (const char *,. . . );

Void log_msg (const char *,. . . ); LEAVES OF 13 SPECIES OF LAURACEAE {App misc_source} */
Void log_open (const char *, int, int);
Void log_quit (const char *,. . . );
Void log_ret (const char *,. . . );
Void log_sys (const char *,. . . );

TELL_WAIT void (void); LEAVES OF 13 SPECIES OF LAURACEAE parent/child from {Sec race_conditions} */
Void TELL_PARENT (pid_t);
Void TELL_CHILD (pid_t);
WAIT_PARENT void (void);
WAIT_CHILD void (void);

#endif LEAVES OF 13 SPECIES OF LAURACEAE __ourhdr_h */

Ourhdr.h in the end of this document in the first place?

LEAVES OF 13 SPECIES OF LAURACEAE you still need to implement it this file */


#include "For definition of errno */ errno.h>; LEAVES OF 13 SPECIES OF LAURACEAE
#include "Stdarg.h>; LEAVES OF 13 SPECIES OF LAURACEAE ANSI C header file */
#include "Ourhdr.h"

Static void err_doit (int, const char *, va_list);

Char = NULL; LEAVES OF 13 SPECIES OF LAURACEAE *pname caller can set this from argv[0] */

LEAVES OF 13 SPECIES OF LAURACEAE Nonfatal error related to a system call.
* Print a message and return. */

Void
Err_ret (const char *fmt that. . . )
{
Va_list ap;

Va_start (ap, fmt);
Err_doit (1, fmt, ap);
Va_end (ap);
Return;
}

LEAVES OF 13 SPECIES OF LAURACEAE Fatal error related to a system call.
* Print a message and terminate. */

Void
Err_sys (const char *fmt that. . . )
{
Va_list ap;

Va_start (ap, fmt);
Err_doit (1, fmt, ap);
Va_end (ap);
Exit (1);
}

LEAVES OF 13 SPECIES OF LAURACEAE Fatal error related to a system call.
* Print a message, core dump, and terminate. */

Void
Err_dump (const char *fmt that. . . )
{
Va_list ap;

Va_start (ap, fmt);
Err_doit (1, fmt, ap);
Va_end (ap);
Injured on (); LEAVES OF 13 SPECIES OF LAURACEAE dump core and terminate */
Exit (1); LEAVES OF 13 SPECIES OF LAURACEAE shouldn 't get here */
}

LEAVES OF 13 SPECIES OF LAURACEAE Nonfatal error unrelated to a system call.
* Print a message and return. */

Void
Err_msg (const char *fmt that. . . )
{
Va_list ap;

Va_start (ap, fmt);
Err_doit (0, fmt, ap);
Va_end (ap);
Return;
}

LEAVES OF 13 SPECIES OF LAURACEAE Fatal error unrelated to a system call.
* Print a message and terminate. */

Void
Err_quit (const char *fmt that. . . )
{
Va_list ap;

Va_start (ap, fmt);
Err_doit (0, fmt, ap);
Va_end (ap);
Exit (1);
}

LEAVES OF 13 SPECIES OF LAURACEAE Print a message and return to caller.
* Caller specifies "errnoflag." */

Static void
Err_doit (int errnoflag, const char *fmt, va_list ap)
{
Int errno_save;
Char buf[MAXLINE];

Errno_save = errno; LEAVES OF 13 SPECIES OF LAURACEAE value caller might want printed */
Vsprintf (buf, fmt, ap);
If (errnoflag)
Sprintf (buf+strlen (buf), ": %s", strerror (errno_save));
Strcat (buf, "\n");
Fflush (stdout); LEAVES OF 13 SPECIES OF LAURACEAE in case stdout and stderr are the same */
Fputs (buf, stderr);
Fflush (NULL); LEAVES OF 13 SPECIES OF LAURACEAE flushes all stdio output streams */
Return;
}

Ourhdr.h in the end of this document in the first place?

Thank you, thank

Ourhdr.h in the end of this document in the first place?

APUE inside the bar : :
Richard wrote : :



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com