UNIX Command $ls -l –author Cairo-0.2.0.tgz -rw-r–r– 1 jeffrin jeffrin jeffrin 164022 Oct 20 21:05 Cairo-0.2.0.tgz $ls -l Cairo-0.2.0.tgz -rw-r–r– 1 jeffrin jeffrin 164022 Oct 20 21:05 Cairo-0.2.0.tgz $ UNIX Explanation –author with -l, print the author of each file
Daily Archives: December 12, 2011
__generic_file_aio_write – write data to a file
1. __generic_file_aio_write – write data to a file ssize_t __generic_file_aio_write(struct kiocb * iocb, const struct iovec * iov, unsigned long nr_segs, loff_t * ppos); iocb IO state structure (file, offset, etc.) iov vector with data to write nr_segs number of segments in the vector ppos position where to write 2. Classroom Asynchronous I/O, or non-blocking …
Continue reading “__generic_file_aio_write – write data to a file”
readelf (-a option) Displays information about ELF files
UNIX Command $cat hello.c #include main() { int d; scanf(“%d”,d); printf(“%d”,d); } $gcc hello.c $ulimit -c unlimited $./a.out 3 Segmentation fault (core dumped) $readelf -s core $readelf -a core ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2’s complement, little endian …
Continue reading “readelf (-a option) Displays information about ELF files”