The Open Source Swiss Army Knife

/code/c/unix_c/unbufferedIO/
/code/c/unix_c/unbufferedIO/ + sub-categories
http://www.sirfsup.com/
web directory content
    
      

Not logged in
Chat Register Login
return to:  http:/www.sirfsup.com      /code   /c   /unix_c   /unbufferedIO 
sub-categories and articles

                                                  
   --->create new sub-category


copyfile.c
copyfile function takes 2 filedescriptors as arguments args copies from one other

/* source: http://vip.cs.utsa.edu/usp/  */

makefile


# makefile for assignment 1 CC = gcc CFLAGS = -Wall -g COMPILE = $(CC) $(CFLAGS) -c SRCS := $(wildcard *.c)

opnnred.c
file descriptor open/read of argv

#include<assert.h>

r_read.c
the r_read is similar to read except that it restarts itself if interrupted by a signal

/* http://vip.cs.utsa.edu/usp/ dr.robbins utsa computer science */

r_write.c
the r_read is similar to read except that it restarts itself if interrupted by a signal

/* http://vip.cs.utsa.edu/usp/ dr.robbins utsa computer science */

read_rite
add

ELF 4$4 ("444,8 /lib/ld-linux.so.2GNU    L+\<$l|8D =F{i1̄U܄Zl48< libc.so.6stdoutvsprintfstrerrorfflushwritestrcatreadstderr__errno_locationexit_IO_stdin_used__libc_start_mainstrlenfputs__gmon_start__GLIBC_2.0ii     U[5%%h%h%h%h%h %h(%h0%h8p%h@`%hHP%hP@%hX01^PTRhLh$QVhUSP[B<tЋ]ÐU=Ęu)tҡuĘÉUxtt hxKzÐUE Euuj jUSEuu P=}t8uV PhpPkPhuPh 55P j]U )ăh Pj1E}.uPjo;Et hw뮃}y h jUSRhht ЋuX[USR[&]: %s write errorread errort $ L(Ȃ |`ăooojRbr„҄GCC: (GNU) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)GCC: (GNU) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)GCC: (GNU) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)GCC: (GNU) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)GCC: (GNU) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)GCC: (GNU) 3.2 20020903 (Red Hat Linux 8.0 3.2-7), L$ 0#$. c:! _IO_stdin_used 00o# <NM<#LSLintuEFS#w#RS#0$*+S#,S#-Z#.S# /S#&00#N1S#27#30# _ ^ <:u#M;d#

read_rite.c
stevens typesafe read function

#include "read_rite.h" 

read_rite.h
add

#include <unistd.h>   /* for STDIN_FILENO and STDOUT_FILENO   */

read_terminator.c
read does not append any kind of line terminator

#include <fcntl.h> // O_RDONLY

readblock.c
a function that repeatably calls read and gets up to a specific number of bytes

/* http://vip.cs.utsa.edu/usp/  dr.robbins utsa computer science */

readblock_c_gcc-E.txt
macro preprocessed stop there show inclusion from headers

# 1 "readblock.c" # 1 "" # 1 "" # 1 "readblock.c"

readblock_test1.c
add

/* http://vip.cs.utsa.edu/usp/  */

readblock_test2.c
add

#include <fcntl.h> // O_RDONLY

send_nonblocking.c
a non-blocking send function

/*

unbufferedIO.htm
add

file descriptor I/O routines
  1. read
  2. write
   --->upload your article


User submitted category site links


(None)

-->submit a page from your site dealing with unbufferedIO to the sirfsup! web directory for listing

return to top